@code.store/arcxp-sdk-ts 4.3.0 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,7 @@
1
1
  import { ArcAbstractAPI, ArcAPIOptions } from '../abstract-api';
2
+ import { AuthorANS } from '../migration-center/types';
2
3
  export declare class ArcAuthor extends ArcAbstractAPI {
3
4
  constructor(options: ArcAPIOptions);
5
+ listAuthors(): Promise<AuthorANS[]>;
4
6
  delete(userId: string): Promise<void>;
5
7
  }
@@ -6,6 +6,10 @@ class ArcAuthor extends abstract_api_1.ArcAbstractAPI {
6
6
  constructor(options) {
7
7
  super({ ...options, apiPath: 'author' });
8
8
  }
9
+ async listAuthors() {
10
+ const { data } = await this.client.get(`/v2/author-service`);
11
+ return data.authors;
12
+ }
9
13
  async delete(userId) {
10
14
  const { data } = await this.client.delete(`/v2/author-service/${userId}`);
11
15
  return data;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/author/index.ts"],"names":[],"mappings":";;;AAAA,kDAAgE;AAEhE,MAAa,SAAU,SAAQ,6BAAc;IAC3C,YAAY,OAAsB;QAChC,KAAK,CAAC,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,MAAc;QACzB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,sBAAsB,MAAM,EAAE,CAAC,CAAC;QAE1E,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAVD,8BAUC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/author/index.ts"],"names":[],"mappings":";;;AAAA,kDAAgE;AAGhE,MAAa,SAAU,SAAQ,6BAAc;IAC3C,YAAY,OAAsB;QAChC,KAAK,CAAC,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED,KAAK,CAAC,WAAW;QACf,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;QAE7D,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,MAAc;QACzB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,sBAAsB,MAAM,EAAE,CAAC,CAAC;QAE1E,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAhBD,8BAgBC"}
@@ -1,7 +1,8 @@
1
- import { GetStoryParams } from './types';
1
+ import { GetStoryParams, SearchParams, SearchResponse } from './types';
2
2
  import { ArcAbstractAPI, ArcAPIOptions } from '../abstract-api';
3
3
  import { AStory } from '../../types/story';
4
4
  export declare class ArcContent extends ArcAbstractAPI {
5
5
  constructor(options: ArcAPIOptions);
6
6
  getStory(params: GetStoryParams): Promise<AStory>;
7
+ search(params: SearchParams): Promise<SearchResponse>;
7
8
  }
@@ -2,15 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ArcContent = void 0;
4
4
  const abstract_api_1 = require("../abstract-api");
5
+ const querystring_1 = require("querystring");
5
6
  class ArcContent extends abstract_api_1.ArcAbstractAPI {
6
7
  constructor(options) {
7
8
  super({ ...options, apiPath: 'content/v4' });
8
9
  }
9
10
  async getStory(params) {
10
- const search = new URLSearchParams({ ...params, published: params.published.toString() }).toString();
11
+ const search = (0, querystring_1.stringify)(params);
11
12
  const { data } = await this.client.get(`/stories?${search}`);
12
13
  return data;
13
14
  }
15
+ async search(params) {
16
+ const search = (0, querystring_1.stringify)(params);
17
+ const { data } = await this.client.get(`/search?${search}`);
18
+ return data;
19
+ }
14
20
  }
15
21
  exports.ArcContent = ArcContent;
16
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/content/index.ts"],"names":[],"mappings":";;;AACA,kDAAgE;AAGhE,MAAa,UAAW,SAAQ,6BAAc;IAC5C,YAAY,OAAsB;QAChC,KAAK,CAAC,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,MAAsB;QACnC,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,EAAE,GAAG,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;QAErG,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,YAAY,MAAM,EAAE,CAAC,CAAC;QAC7D,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAXD,gCAWC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/content/index.ts"],"names":[],"mappings":";;;AACA,kDAAgE;AAEhE,6CAAwC;AAExC,MAAa,UAAW,SAAQ,6BAAc;IAC5C,YAAY,OAAsB;QAChC,KAAK,CAAC,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,MAAsB;QACnC,MAAM,MAAM,GAAG,IAAA,uBAAS,EAAC,MAAM,CAAC,CAAC;QAEjC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,YAAY,MAAM,EAAE,CAAC,CAAC;QAC7D,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,MAAoB;QAC/B,MAAM,MAAM,GAAG,IAAA,uBAAS,EAAC,MAAM,CAAC,CAAC;QAEjC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,MAAM,EAAE,CAAC,CAAC;QAC5D,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAlBD,gCAkBC"}
@@ -1,5 +1,26 @@
1
+ import { AGallery } from '../../types/gallery';
2
+ import { ARedirectObject, AStory } from '../../types/story';
1
3
  export type GetStoryParams = {
2
4
  _id: string;
3
5
  published: boolean;
4
6
  website: string;
5
7
  };
8
+ export type SearchParams = {
9
+ website: string;
10
+ q?: string;
11
+ body?: string;
12
+ sort?: string;
13
+ from?: number;
14
+ size?: number;
15
+ single?: boolean;
16
+ _sourceInclude?: string;
17
+ _sourceExclude?: string;
18
+ include_distributor_name?: string;
19
+ exclude_distributor_name?: string;
20
+ include_distributor_category?: string;
21
+ exclude_distributor_category?: string;
22
+ };
23
+ export type SearchResponse = {
24
+ type: 'results';
25
+ content_elements: (AStory | AGallery | ARedirectObject)[];
26
+ };
@@ -1,7 +1,9 @@
1
1
  import { ArcAbstractAPI, ArcAPIOptions } from '../abstract-api';
2
- import { CreateDocumentRedirectPayload, CreateExternalRedirectPayload, CreateRedirectPayload, DocumentRedirect, ExternalRedirect } from './types';
2
+ import { CreateDocumentRedirectPayload, CreateExternalRedirectPayload, CreateRedirectPayload, DocumentRedirect, ExternalRedirect, Revision, Document } from './types';
3
3
  export declare class ArcDraft extends ArcAbstractAPI {
4
4
  constructor(options: ArcAPIOptions);
5
5
  generateId(id: string): Promise<string>;
6
+ unpublishDocument(id: string, type?: string): Promise<Revision>;
7
+ deleteDocument(id: string, type?: string): Promise<Document>;
6
8
  createRedirect<P extends CreateRedirectPayload, R = P extends CreateExternalRedirectPayload ? ExternalRedirect : P extends CreateDocumentRedirectPayload ? DocumentRedirect : never>(website: string, websiteUrl: string, payload: P): Promise<R>;
7
9
  }
@@ -10,6 +10,14 @@ class ArcDraft extends abstract_api_1.ArcAbstractAPI {
10
10
  const { data } = await this.client.get('/arcuuid', { params: { id } });
11
11
  return data.id;
12
12
  }
13
+ async unpublishDocument(id, type = 'story') {
14
+ const { data } = await this.client.delete(`/${type}/${id}/revision/published`);
15
+ return data;
16
+ }
17
+ async deleteDocument(id, type = 'story') {
18
+ const { data } = await this.client.delete(`/${type}/${id}`);
19
+ return data;
20
+ }
13
21
  async createRedirect(website, websiteUrl, payload) {
14
22
  const { data } = await this.client.post(`/redirect/${website}/${websiteUrl}`, payload);
15
23
  return data;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/draft/index.ts"],"names":[],"mappings":";;;AAAA,kDAAgE;AAShE,MAAa,QAAS,SAAQ,6BAAc;IAC1C,YAAY,OAAsB;QAChC,KAAK,CAAC,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;IAC7C,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,EAAU;QACzB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAiB,UAAU,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QACvF,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,cAAc,CAOlB,OAAe,EAAE,UAAkB,EAAE,OAAU;QAC/C,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAI,aAAa,OAAO,IAAI,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;QAC1F,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AArBD,4BAqBC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/draft/index.ts"],"names":[],"mappings":";;;AAAA,kDAAgE;AAWhE,MAAa,QAAS,SAAQ,6BAAc;IAC1C,YAAY,OAAsB;QAChC,KAAK,CAAC,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;IAC7C,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,EAAU;QACzB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAiB,UAAU,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QACvF,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,EAAU,EAAE,IAAI,GAAG,OAAO;QAChD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAW,IAAI,IAAI,IAAI,EAAE,qBAAqB,CAAC,CAAC;QACzF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,EAAU,EAAE,IAAI,GAAG,OAAO;QAC7C,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAW,IAAI,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC;QACtE,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,cAAc,CAOlB,OAAe,EAAE,UAAkB,EAAE,OAAU;QAC/C,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAI,aAAa,OAAO,IAAI,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;QAC1F,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AA/BD,4BA+BC"}
@@ -1,3 +1,4 @@
1
+ import { AStory } from '../../types/story';
1
2
  export type CreateExternalRedirectPayload = {
2
3
  redirect_to: string;
3
4
  document_id?: undefined;
@@ -19,4 +20,23 @@ export type DocumentRedirect = {
19
20
  export type ExternalRedirect = {
20
21
  redirect_to: string;
21
22
  } & BaseRedirectData;
23
+ export type Revision = {
24
+ id: string;
25
+ document_id: string;
26
+ created_at: string;
27
+ type: string;
28
+ user_id?: string;
29
+ ans: AStory;
30
+ };
31
+ export type Document = {
32
+ id: string;
33
+ type: 'STORY';
34
+ created_at: string;
35
+ draft_revision_id: string;
36
+ published_revision_id?: string;
37
+ first_published_at?: string;
38
+ last_published_at?: string;
39
+ first_unpublished_at?: string;
40
+ last_unpublished_at?: string;
41
+ };
22
42
  export {};
@@ -20,12 +20,12 @@ class ArcMigrationCenter extends abstract_api_1.ArcAbstractAPI {
20
20
  return data;
21
21
  }
22
22
  async postAns(params, payload) {
23
- const search = new URLSearchParams(params).toString();
23
+ const search = (0, querystring_1.stringify)(params);
24
24
  const { data } = await this.client.post(`/content/ans?${search}`, payload);
25
25
  return data;
26
26
  }
27
27
  async getAns(params) {
28
- const search = new URLSearchParams(params).toString();
28
+ const search = (0, querystring_1.stringify)(params);
29
29
  const { data } = await this.client.get(`/content/ans?${search}`);
30
30
  return data;
31
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/migration-center/index.ts"],"names":[],"mappings":";;;AAUA,kDAAgE;AAChE,6CAAwC;AAExC,MAAa,kBAAmB,SAAQ,6BAAc;IACpD,YAAY,OAAsB;QAChC,KAAK,CAAC,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,MAA6B;QACzC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAU,mBAAmB,IAAA,uBAAS,EAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACxF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,MAA4B;QACzC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAe,kBAAkB,IAAA,uBAAS,EAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC5F,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,KAAK;QACT,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAQ,sBAAsB,CAAC,CAAC;QACtE,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,MAAqB,EAAE,OAAuB;QAC1D,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC;QAEtD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,MAAoB;QAC/B,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC;QAEtD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,MAAM,EAAE,CAAC,CAAC;QACjE,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAjCD,gDAiCC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/migration-center/index.ts"],"names":[],"mappings":";;;AAUA,kDAAgE;AAChE,6CAAwC;AAExC,MAAa,kBAAmB,SAAQ,6BAAc;IACpD,YAAY,OAAsB;QAChC,KAAK,CAAC,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,MAA6B;QACzC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAU,mBAAmB,IAAA,uBAAS,EAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACxF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,MAA4B;QACzC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAe,kBAAkB,IAAA,uBAAS,EAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC5F,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,KAAK;QACT,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAQ,sBAAsB,CAAC,CAAC;QACtE,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,MAAqB,EAAE,OAAuB;QAC1D,MAAM,MAAM,GAAG,IAAA,uBAAS,EAAC,MAAM,CAAC,CAAC;QAEjC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,MAAoB;QAC/B,MAAM,MAAM,GAAG,IAAA,uBAAS,EAAC,MAAM,CAAC,CAAC;QAEjC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,MAAM,EAAE,CAAC,CAAC;QACjE,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAjCD,gDAiCC"}
@@ -3,7 +3,7 @@ import { AStory, AnImage, Tag } from '../../types/story';
3
3
  type TagANS = Tag & {
4
4
  name: string;
5
5
  };
6
- type AuthorANS = {
6
+ export type AuthorANS = {
7
7
  type: 'author';
8
8
  _id: string;
9
9
  firstName: string;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const fs_1 = require("fs");
4
+ const json_schema_to_typescript_1 = require("json-schema-to-typescript");
5
+ const input = './input.json';
6
+ const output = './output.ts';
7
+ (0, json_schema_to_typescript_1.compileFromFile)(input).then((ts) => (0, fs_1.writeFileSync)(output, ts));
8
+ //# sourceMappingURL=json-schema-to-ts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-schema-to-ts.js","sourceRoot":"","sources":["../../src/scripts/json-schema-to-ts.ts"],"names":[],"mappings":";;AAAA,2BAAmC;AACnC,yEAA4D;AAE5D,MAAM,KAAK,GAAG,cAAc,CAAC;AAC7B,MAAM,MAAM,GAAG,aAAa,CAAC;AAE7B,IAAA,2CAAe,EAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAA,kBAAa,EAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { GloballyUniqueIDTrait, DescribesTheANSVersionOfThisObject, SubtypeOrTemplate, ChannelTrait, Alignment, Locale, CopyrightInformation, CanonicalURL, CanonicalWebsite, Website, WebsiteURL, Short_Url, CreatedDate, LastUpdatedDate, Publish_Date, FirstPublishDate, Display_Date, LocationRelatedTrait, Geo, Address, Editor_Note, Status, Headlines, SubHeadlines, Description, CreditTrait, VanityCreditsTrait, Taxonomy, PromoItems, Related_Content, OwnerInformation, SchedulingInformation, WorkflowInformation, Pitches, Revision, Syndication, Source, Distributor, Tracking, Comments, Label, Slug, ContentRestrictions, HasAdditionalProperties, AliasesTrait, ACollectionOfContent, WebsitesInput, Contributors } from './story';
2
+ export interface AGallery {
3
+ type: 'gallery';
4
+ _id?: GloballyUniqueIDTrait;
5
+ version: DescribesTheANSVersionOfThisObject;
6
+ subtype?: SubtypeOrTemplate;
7
+ channels?: ChannelTrait;
8
+ alignment?: Alignment;
9
+ language?: Locale;
10
+ copyright?: CopyrightInformation;
11
+ canonical_url?: CanonicalURL;
12
+ canonical_website?: CanonicalWebsite;
13
+ website?: Website;
14
+ website_url?: WebsiteURL;
15
+ short_url?: Short_Url;
16
+ created_date?: CreatedDate;
17
+ last_updated_date?: LastUpdatedDate;
18
+ publish_date?: Publish_Date;
19
+ first_publish_date?: FirstPublishDate;
20
+ display_date?: Display_Date;
21
+ location?: LocationRelatedTrait;
22
+ geo?: Geo;
23
+ address?: Address;
24
+ editor_note?: Editor_Note;
25
+ status?: Status;
26
+ headlines?: Headlines;
27
+ subheadlines?: SubHeadlines;
28
+ description?: Description;
29
+ credits?: CreditTrait;
30
+ vanity_credits?: VanityCreditsTrait;
31
+ taxonomy?: Taxonomy;
32
+ promo_items?: PromoItems;
33
+ related_content?: Related_Content;
34
+ owner?: OwnerInformation;
35
+ planning?: SchedulingInformation;
36
+ workflow?: WorkflowInformation;
37
+ pitches?: Pitches;
38
+ revision?: Revision;
39
+ syndication?: Syndication;
40
+ source?: Source;
41
+ distributor?: Distributor;
42
+ tracking?: Tracking;
43
+ comments?: Comments;
44
+ label?: Label;
45
+ slug?: Slug;
46
+ content_restrictions?: ContentRestrictions;
47
+ additional_properties?: HasAdditionalProperties;
48
+ content_aliases?: AliasesTrait;
49
+ content_elements?: ACollectionOfContent;
50
+ websites?: WebsitesInput;
51
+ contributors?: Contributors;
52
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=gallery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gallery.js","sourceRoot":"","sources":["../../src/types/gallery.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
1
  export * as Author from './author';
2
2
  export * as Story from './story';
3
3
  export * as Section from './section';
4
+ export * as Gallery from './gallery';
@@ -23,8 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.Section = exports.Story = exports.Author = void 0;
26
+ exports.Gallery = exports.Section = exports.Story = exports.Author = void 0;
27
27
  exports.Author = __importStar(require("./author"));
28
28
  exports.Story = __importStar(require("./story"));
29
29
  exports.Section = __importStar(require("./section"));
30
+ exports.Gallery = __importStar(require("./gallery"));
30
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAmC;AACnC,iDAAiC;AACjC,qDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAmC;AACnC,iDAAiC;AACjC,qDAAqC;AACrC,qDAAqC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code.store/arcxp-sdk-ts",
3
- "version": "4.3.0",
3
+ "version": "4.5.0",
4
4
  "description": "",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",
@@ -16,6 +16,7 @@
16
16
  "build": "tsc",
17
17
  "lint": "tsc --noEmit && TIMING=1 eslint \"src/**/*.ts*\"",
18
18
  "test": "vitest",
19
+ "gen:ts": "npx ts-node-dev ./src/scripts/json-schema-to-ts.ts",
19
20
  "cs": "npx changeset && npx changeset version"
20
21
  },
21
22
  "keywords": [
@@ -43,6 +44,7 @@
43
44
  "eslint": "^8.31.0",
44
45
  "eslint-config-custom-server": "*",
45
46
  "openapi-typescript": "^6.2.7",
47
+ "json-schema-to-typescript": "13.1.1",
46
48
  "tap": "^16.3.4",
47
49
  "ts-node-dev": "^2.0.0",
48
50
  "vitest": "^0.33.0"