Skip to content

Commit 5acc658

Browse files
committed
add syndication and owner information
1 parent 9928659 commit 5acc658

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @code.store/arcxp-sdk-ts
22

3+
## 4.44.0
4+
5+
### Minor Changes
6+
7+
- add syndication and owner information
8+
39
## 4.43.1
410

511
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code.store/arcxp-sdk-ts",
3-
"version": "4.43.1",
3+
"version": "4.44.0",
44
"description": "A strongly typed set of ArcXP API's and utilities reduce the amount of work required to develop with ArcXP, starting with reducing the boilerplate code you have to write.",
55
"type": "commonjs",
66
"main": "./dist/index.js",

src/mapper/doc.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,14 @@ export abstract class Document<ANS extends ANSContent> {
173173
return;
174174
}
175175

176+
protected getOwnerInformation(): MaybePromise<Optional<ArcTypes.Story.OwnerInformation>> {
177+
return;
178+
}
179+
180+
protected getSyndication(): MaybePromise<Optional<ArcTypes.Story.Syndication>> {
181+
return;
182+
}
183+
176184
protected getSchedulingInformation(): MaybePromise<Optional<ArcTypes.Story.SchedulingInformation>> {
177185
return;
178186
}

src/mapper/story.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ export abstract class Story<ANS extends ANSContent = Types.Story.AStory> extends
4747
const source = await this.getSource();
4848
const comments = await this.getComments();
4949
const legacyUrl = await this.legacyUrl();
50+
const owner = await this.getOwnerInformation();
51+
const syndication = await this.getSyndication();
5052
const contentRestrictions = await this.getContentRestrictions();
5153
const planning = await this.getSchedulingInformation();
5254
const taxonomy = await this.getTaxonomy();
@@ -79,6 +81,8 @@ export abstract class Story<ANS extends ANSContent = Types.Story.AStory> extends
7981
display_date: this.formatDate(this.getDisplayDate()),
8082
source,
8183
comments,
84+
owner,
85+
syndication,
8286
taxonomy: {
8387
...taxonomy,
8488
tags,

0 commit comments

Comments
 (0)