oneentry 1.0.71 → 1.0.72

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,5 @@
1
1
  import AsyncModules from "../base/asyncModules";
2
- import { IAuthProvider, ISignUpData, ISignUpEntity, IAuthEntity, IAuthProvidersEntity, IAuthPostBody } from "./authProvidersInterfaces";
2
+ import { IAuthProvider, ISignUpData, ISignUpEntity, ICode, IAuthEntity, IAuthProvidersEntity, IAuthPostBody } from "./authProvidersInterfaces";
3
3
  import StateModule from "../base/stateModule";
4
4
  /**
5
5
  * Controllers for working with auth services.
@@ -46,8 +46,9 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
46
46
  * Getting a user activation code. The code is returned via the appropriate user notification method
47
47
  * @param {string} marker - The text identifier of the authorization provider. Example - email
48
48
  * @param {string} userIdentifier - The text identifier of the user's object (user login)
49
+ * @param {string} eventIdentifier - Text identifier of the event object for which the code is generated
49
50
  */
50
- generateCode(marker: string, userIdentifier: string): Promise<void>;
51
+ generateCode(marker: string, userIdentifier: string, eventIdentifier: string): Promise<ICode>;
51
52
  /**
52
53
  * User activation code verification. Returns true (if the code is correct) or false (if it is incorrect).
53
54
  * @param {string} marker - The text identifier of the authorization provider. Example - email
@@ -52,12 +52,15 @@ class AuthProviderApi extends asyncModules_1.default {
52
52
  * Getting a user activation code. The code is returned via the appropriate user notification method
53
53
  * @param {string} marker - The text identifier of the authorization provider. Example - email
54
54
  * @param {string} userIdentifier - The text identifier of the user's object (user login)
55
+ * @param {string} eventIdentifier - Text identifier of the event object for which the code is generated
55
56
  */
56
- async generateCode(marker, userIdentifier) {
57
+ async generateCode(marker, userIdentifier, eventIdentifier) {
57
58
  const data = {
58
- "userIdentifier": userIdentifier
59
+ "userIdentifier": userIdentifier,
60
+ "eventIdentifier": eventIdentifier
59
61
  };
60
62
  const result = await this._fetchPost(`/marker/${marker}/users/generate-code`, data);
63
+ return result;
61
64
  }
62
65
  /**
63
66
  * User activation code verification. Returns true (if the code is correct) or false (if it is incorrect).
@@ -15,7 +15,7 @@ import { ILocalizeInfo } from "../base/utils";
15
15
  */
16
16
  interface IAuthProvider {
17
17
  signUp(marker: string, data: ISignUpData, langCode?: string): Promise<ISignUpEntity>;
18
- generateCode(marker: string, userIdentifier: string): Promise<void>;
18
+ generateCode(marker: string, userIdentifier: string, eventIdentifier: string): Promise<ICode>;
19
19
  checkCode(marker: string, userIdentifier: string, code: string): Promise<boolean>;
20
20
  activateUser(marker: string, userIdentifier: string, code: string): Promise<boolean>;
21
21
  auth(marker: string, data: IAuthPostBody): Promise<IAuthEntity>;
@@ -80,7 +80,7 @@ interface IAuthProvidersEntity {
80
80
  isCheckCode: boolean;
81
81
  type: string;
82
82
  formIdentifier: string | null;
83
- position: number | null;
83
+ config: Record<string, any>;
84
84
  }
85
85
  interface IAuthPostBody {
86
86
  authData: Array<{
@@ -88,4 +88,8 @@ interface IAuthPostBody {
88
88
  value: string | number;
89
89
  }>;
90
90
  }
91
- export { IAuthProvider, IAuthFormData, ISignUpData, ISignUpEntity, ICodeEntity, IAuthEntity, IAuthProvidersEntity, IAuthPostBody };
91
+ interface ICode {
92
+ "code": string;
93
+ "expiredDate": string;
94
+ }
95
+ export { IAuthProvider, IAuthFormData, ISignUpData, ISignUpEntity, ICodeEntity, IAuthEntity, IAuthProvidersEntity, IAuthPostBody, ICode };
@@ -12,18 +12,18 @@ export default class BlocksApi extends AsyncModules implements IBlocks {
12
12
  /**
13
13
  * Get blocks by parameters.
14
14
  *
15
- * @param {BlockType} [type] - Available values : forCatalogProducts, forBasketPage, forErrorPage, forCatalogPages, forProductPreview, forProductPage, forSimilarProductBlock, forStatisticProductBlock, forProductBlock, forForm, forFormField, forNewsPage, forNewsBlock, forNewsPreview, forOneNewsPage, forUsualPage, forTextBlock, forSlider, forOrder, service
15
+ * @param {BlockType} type - Available values : forCatalogProducts, forBasketPage, forErrorPage, forCatalogPages, forProductPreview, forProductPage, forSimilarProductBlock, forStatisticProductBlock, forProductBlock, forForm, forFormField, forNewsPage, forNewsBlock, forNewsPreview, forOneNewsPage, forUsualPage, forTextBlock, forSlider, forOrder, service
16
16
  * @param {string} [langCode] - Language code. Default "en_US"
17
17
  * @param {number} [offset] - Parameter for pagination. Default 0
18
18
  * @param {number} [limit] - Parameter for pagination. Default 30
19
19
  *
20
20
  * @returns Return array of BlocksEntity object.
21
21
  */
22
- getBlocks(type?: BlockType, langCode?: string, offset?: number, limit?: number): Promise<Array<IBlockEntity | IBlocksResponse>>;
22
+ getBlocks(type: BlockType, langCode?: string, offset?: number, limit?: number): Promise<Array<IBlockEntity | IBlocksResponse>>;
23
23
  /**
24
24
  * Get block by marker.
25
25
  *
26
- * @param {string} [marker] - Marker of Block.
26
+ * @param {string} marker - Marker of Block.
27
27
  * @param {string} [langCode] - Language code. Default "en_US"
28
28
  *
29
29
  * @returns Return BlocksEntity object.
@@ -12,14 +12,14 @@ class BlocksApi extends asyncModules_1.default {
12
12
  /**
13
13
  * Get blocks by parameters.
14
14
  *
15
- * @param {BlockType} [type] - Available values : forCatalogProducts, forBasketPage, forErrorPage, forCatalogPages, forProductPreview, forProductPage, forSimilarProductBlock, forStatisticProductBlock, forProductBlock, forForm, forFormField, forNewsPage, forNewsBlock, forNewsPreview, forOneNewsPage, forUsualPage, forTextBlock, forSlider, forOrder, service
15
+ * @param {BlockType} type - Available values : forCatalogProducts, forBasketPage, forErrorPage, forCatalogPages, forProductPreview, forProductPage, forSimilarProductBlock, forStatisticProductBlock, forProductBlock, forForm, forFormField, forNewsPage, forNewsBlock, forNewsPreview, forOneNewsPage, forUsualPage, forTextBlock, forSlider, forOrder, service
16
16
  * @param {string} [langCode] - Language code. Default "en_US"
17
17
  * @param {number} [offset] - Parameter for pagination. Default 0
18
18
  * @param {number} [limit] - Parameter for pagination. Default 30
19
19
  *
20
20
  * @returns Return array of BlocksEntity object.
21
21
  */
22
- async getBlocks(type = 'none', langCode = this.state.lang, offset = 0, limit = 30) {
22
+ async getBlocks(type, langCode = this.state.lang, offset = 0, limit = 30) {
23
23
  const response = await this._fetchGet(`?langCode=${langCode}&type=${type}&offset=${offset}&limit=${limit}`);
24
24
  if (this.state.multipleResponse) {
25
25
  const normalizeResponse = this._normalizeData(response.items);
@@ -32,7 +32,7 @@ class BlocksApi extends asyncModules_1.default {
32
32
  block.countElementsPerRow = 0;
33
33
  }
34
34
  delete block.customSettings;
35
- delete block.attributeSetId;
35
+ delete block.attributesSetIdentifier;
36
36
  delete block.productPageUrls;
37
37
  if (block.type === 'forSimilarProductBlock') {
38
38
  try {
@@ -62,14 +62,14 @@ class BlocksApi extends asyncModules_1.default {
62
62
  /**
63
63
  * Get block by marker.
64
64
  *
65
- * @param {string} [marker] - Marker of Block.
65
+ * @param {string} marker - Marker of Block.
66
66
  * @param {string} [langCode] - Language code. Default "en_US"
67
67
  *
68
68
  * @returns Return BlocksEntity object.
69
69
  */
70
70
  async getBlockByMarker(marker, langCode = this.state.lang) {
71
71
  const response = await this._fetchGet(`/marker/${marker}?langCode=${langCode}`);
72
- const normalizeResponse = this._normalizeData(response.items);
72
+ const normalizeResponse = this._normalizeData(response);
73
73
  const customSettings = normalizeResponse.customSettings;
74
74
  if (customSettings && customSettings.hasOwnProperty('productConfig')) {
75
75
  normalizeResponse.countElementsPerRow = customSettings.productConfig.countElementsPerRow ? (+customSettings.productConfig.countElementsPerRow) : 0;
@@ -78,7 +78,7 @@ class BlocksApi extends asyncModules_1.default {
78
78
  normalizeResponse.countElementsPerRow = 0;
79
79
  }
80
80
  delete normalizeResponse.customSettings;
81
- delete normalizeResponse.attributeSetId;
81
+ delete normalizeResponse.attributesSetIdentifier;
82
82
  delete normalizeResponse.productPageUrls;
83
83
  if (this.state.multipleResponse) {
84
84
  if (normalizeResponse.type === 'forSimilarProductBlock') {
@@ -9,7 +9,7 @@ import { IProductsEntity } from "../products/productsInterfaces";
9
9
  * @property {function} searchBlock - Quick search for block objects with limited output.
10
10
  */
11
11
  interface IBlocks {
12
- getBlocks(type: BlockType, langCode: string, offset?: number, limit?: number): Promise<Array<IBlockEntity | IBlocksResponse>>;
12
+ getBlocks(type: BlockType, langCode?: string, offset?: number, limit?: number): Promise<Array<IBlockEntity | IBlocksResponse>>;
13
13
  getBlockByMarker(marker: string, langCode: string): Promise<IBlockEntity>;
14
14
  getSimilarProducts(marker: string, langCode?: string, offset?: number, limit?: number): Promise<Array<IProductsEntity>>;
15
15
  getProductsByBlockMarker(marker: string, langCode?: string, offset?: number, limit?: number): Promise<Array<IProductsEntity>>;
@@ -17,7 +17,7 @@ interface IBlocks {
17
17
  }
18
18
  interface IBlocksResponse {
19
19
  id: number;
20
- attributeSetId: number | null;
20
+ attributesSetIdentifier: string | null;
21
21
  localizeInfos: Record<string, any>;
22
22
  customSettings: ICustomSetting | null;
23
23
  version: number;
@@ -17,14 +17,14 @@ interface IFormsData {
17
17
  * @property {number} id - The unique identifier of the form page.
18
18
  * @property {string} formIdentifier - The identifier of the page.
19
19
  * @property {Date | string} time - The identifier of the form.
20
- * @property {IFormData} formData - The identifier of the position.
20
+ * @property {IFormsPost} formData - The identifier of the position.
21
21
  * @property {string} attributeSetIdentifier - Text identifier (marker) of the used attribute set.
22
22
  */
23
23
  interface IFormsDataEntity {
24
24
  id: number;
25
25
  formIdentifier: string;
26
26
  time: Date | string;
27
- formData: IFormData;
27
+ formData: IFormsPost;
28
28
  attributeSetIdentifier?: string;
29
29
  }
30
30
  /**
@@ -90,11 +90,12 @@ interface IOrdersEntity {
90
90
  identifier: string | null;
91
91
  generalTypeId: number | null;
92
92
  formIdentifier: string | null;
93
- paymentAccountIdentifiers: Array<{
94
- identifier: string;
95
- }>;
93
+ paymentAccountIdentifiers: Array<IPaymentAccountIdentifiers>;
96
94
  position: number | null;
97
95
  }
96
+ interface IPaymentAccountIdentifiers {
97
+ identifier: string;
98
+ }
98
99
  /**
99
100
  * @interface
100
101
  * @property {string} formIdentifier - Text identifier of the form object linked to the order repository.
@@ -130,10 +131,9 @@ interface IOrdersByMarkersEntity {
130
131
  totalSum: string;
131
132
  currency: string;
132
133
  createdDate: string;
133
- position: number;
134
134
  paymentAccountIdentifier: string;
135
135
  paymentAccountLocalizeInfos: Record<string, any>;
136
136
  isHistory: boolean;
137
137
  id: number;
138
138
  }
139
- export { IOrdersEntity, IBaseOrdersEntity, IOrderProducts, IPicture, IOrdersApi, IOrderData, IOrderProductData, IOrdersFormData, IOrdersByMarkersEntity };
139
+ export { IOrdersEntity, IBaseOrdersEntity, IOrderProducts, IPicture, IOrdersApi, IOrderData, IOrderProductData, IOrdersFormData, IOrdersByMarkersEntity, IPaymentAccountIdentifiers };
@@ -120,7 +120,7 @@ class PageApi extends asyncModules_1.default {
120
120
  item.countElementsPerRow = 0;
121
121
  }
122
122
  delete item.customSettings;
123
- delete item.attributeSetId;
123
+ delete item.attributesSetIdentifier;
124
124
  return item;
125
125
  });
126
126
  if (this.state.multipleResponse) {
@@ -80,6 +80,7 @@ interface IPositionForm {
80
80
  * @property {number} position - The position of the object.
81
81
  * @property {boolean} isSync - Indication of page indexing.
82
82
  * @property {Record<string, any>} attributeValues - Array of attribute values from the index (represented as a pair of user attribute id: attribute value).
83
+ * @property {string} attributeSetIdentifier
83
84
  * @property {Types} type - Page type.
84
85
  */
85
86
  interface IPositionBlock {
@@ -91,6 +92,7 @@ interface IPositionBlock {
91
92
  isSync: boolean;
92
93
  isVisible: boolean;
93
94
  attributeValues: Record<string, any>;
95
+ attributeSetIdentifier: string | null;
94
96
  type: string;
95
97
  templateIdentifier: string | null;
96
98
  countElementsPerRow: number;
@@ -107,7 +109,7 @@ interface IPositionBlock {
107
109
  * @property {Record<string, any>} localizeInfos - The name of the page, taking into account localization.
108
110
  * @property {boolean} isVisible - A sign of page visibility.
109
111
  * @property {number} products - The number of products linked to the page.
110
- * @property {number} attributeSetId - Set of attributes id.
112
+ * @property {string} attributeSetIdentifier - Set of attributes id.
111
113
  * @property {boolean} isSync - Indication of page indexing.
112
114
  * @property {string} templateIdentifier - User id of the linked template.
113
115
  * @property {Record<string, any>} attributeValues - Array of attribute values from the index (represented as a pair of user attribute id: attribute value).
@@ -116,7 +118,7 @@ interface IPositionBlock {
116
118
  * @property {number} childrenCount - Children count.
117
119
  */
118
120
  interface IPagesEntity {
119
- attributeSetId: number;
121
+ attributeSetIdentifier?: string;
120
122
  attributeValues: Record<string, any>;
121
123
  childrenCount?: number;
122
124
  config?: Record<string, number>;
@@ -1,5 +1,5 @@
1
1
  import AsyncModules from "../base/asyncModules";
2
- import { IPaymentsApi, ISessionEntity, IConnectedEntity, IAccountsEntity } from "./paymentsInterfaces";
2
+ import { IPaymentsApi, ISessionEntity, IConnectedEntity, IAccountsEntity, ICreateSessionEntity } from "./paymentsInterfaces";
3
3
  import StateModule from "../base/stateModule";
4
4
  /**
5
5
  * Controllers for working with payments
@@ -34,7 +34,7 @@ export default class PaymentsApi extends AsyncModules implements IPaymentsApi {
34
34
  *
35
35
  * @returns Returns a single payment session object.
36
36
  */
37
- createSession(orderId: number, type: 'session' | 'intent', automaticTaxEnabled?: boolean): Promise<ISessionEntity>;
37
+ createSession(orderId: number, type: 'session' | 'intent', automaticTaxEnabled?: boolean): Promise<ICreateSessionEntity>;
38
38
  /**
39
39
  * Get payment settings.
40
40
  *
@@ -13,7 +13,7 @@
13
13
  interface IPaymentsApi {
14
14
  getSessions(limit: number, offset: number): Promise<Array<ISessionEntity>>;
15
15
  getSessionById(id: number): Promise<ISessionEntity>;
16
- createSession(orderId: number, type: 'session' | 'intent', automaticTaxEnabled?: boolean): Promise<ISessionEntity>;
16
+ createSession(orderId: number, type: 'session' | 'intent', automaticTaxEnabled?: boolean): Promise<ICreateSessionEntity>;
17
17
  getConnected(): Promise<IConnectedEntity | null>;
18
18
  getAccounts(): Promise<Array<IAccountsEntity>>;
19
19
  getAccountById(id: number): Promise<IAccountsEntity>;
@@ -35,15 +35,6 @@ interface ILineItems {
35
35
  name: string;
36
36
  description: string;
37
37
  }
38
- /**
39
- * @interface
40
- * @property {Array<ILineItems>} lineItems - List of items.
41
- * @property {number} orderId - Order identifier.
42
- */
43
- interface ISessionBody {
44
- lineItems: Array<ILineItems>;
45
- orderId: number;
46
- }
47
38
  /**
48
39
  * @interface
49
40
  * @property {number} amount
@@ -57,48 +48,35 @@ interface IIntent {
57
48
  * @interface
58
49
  * @property {number} id - Object identifier.
59
50
  * @property {string} updatedDate - Object modification date.
60
- * @property {number} version - Object modification version number.
61
- * @property {string} identifier - Text identifier for the record field.
62
51
  * @property {string} type - Type may be 'session' or 'intent'.
63
52
  * @property {number} orderId - Order identifier.
64
53
  * @property {number} paymentAccountId - Payment account object identifier.
65
- * @property {string} status - Payment status.
66
- * @property {string} sessionId - Payment ID from an external provider.
67
54
  * @property {string} paymentUrl - Payment link.
68
- * @property {string} successUrl - Redirect link after successful payment.
69
- * @property {string} cancelUrl - Redirect link after payment cancellation.
70
- * @property {IIntent} intent - Payment intent.
71
- * @property {number} intentId - Intent object identifier.
72
55
  * @property {string} clientSecret - Client secret key.
73
56
  */
74
57
  interface ISessionEntity {
75
58
  id: number;
76
59
  updatedDate: string;
77
- version: number;
78
- identifier: string;
79
60
  type: 'session' | 'intent';
80
- lineItems: Array<ILineItems>;
81
61
  orderId: number;
82
62
  paymentAccountId: number;
83
- status: string;
84
- sessionId: string;
85
63
  paymentUrl: string;
86
- successUrl: string;
87
- cancelUrl: string;
88
- intent: IIntent;
89
- intentId: number;
90
64
  clientSecret: string;
91
65
  }
66
+ interface ICreateSessionEntity {
67
+ id: number;
68
+ updatedDate: string;
69
+ version: number;
70
+ identifier: string;
71
+ }
92
72
  /**
93
73
  * @interface
94
74
  * @property {string} [stripeAccountId] - Identifier of connected Stripe account.
95
75
  * @property {string} [stripePublishableKey] - Stripe Connect public key.
96
- * @property {string} [paypalAccountId] - Identifier of connected Paypal account.
97
76
  */
98
77
  interface IConnectedEntity {
99
- stripeAccountId?: string;
100
- stripePublishableKey?: string;
101
- paypalAccountId?: string;
78
+ stripeAccountId: string;
79
+ stripePublishableKey: string;
102
80
  }
103
81
  /**
104
82
  * @interface
@@ -112,7 +90,7 @@ interface IAccountsEntity {
112
90
  id: number;
113
91
  identifier: string;
114
92
  localizeInfos: Record<string, any>;
115
- type: 'stripe' | 'paypal' | 'custom';
93
+ type: 'stripe' | 'custom';
116
94
  isVisible: boolean;
117
95
  }
118
- export { IAccountsEntity, IConnectedEntity, ISessionEntity, ILineItems, ISessionBody, IPaymentsApi, IIntent };
96
+ export { IAccountsEntity, IConnectedEntity, ISessionEntity, ILineItems, IPaymentsApi, IIntent, ICreateSessionEntity };
@@ -99,9 +99,9 @@ interface IFilterParams {
99
99
  * @property {object} additional - Additional value from the index.
100
100
  * @property {Record<string, any>} localizeInfos - The name of the products, taking into account localization.
101
101
  * @property {boolean} isVisible - A sign of page visibility.
102
- * @property {number | null} statusId - Product page status identifiers (may be null).
102
+ * @property {number | null} statusIdentifier - Product page status identifiers (may be null).
103
103
  * @property {Array<number>} relatedIds - Ids of related product pages.
104
- * @property {number} attributeSetId - Set of attributes id.
104
+ * @property {string} attributeSetIdentifier - Set of attributes id.
105
105
  * @property {boolean} isSync - Indication of page indexing.
106
106
  * @property {number} price - The value of the product page price taken from the index.
107
107
  * @property {string} templateIdentifier - User id of the linked template.
@@ -120,8 +120,8 @@ interface IProductsEntity {
120
120
  localizeInfos: Record<string, any>;
121
121
  blocks?: string | Array<string>;
122
122
  isVisible: boolean;
123
- statusId: number | null;
124
- attributeSetId: number;
123
+ statusIdentifier: number | null;
124
+ attributeSetIdentifier: string;
125
125
  isSync: number | boolean;
126
126
  price: number;
127
127
  templateIdentifier: string | null;
@@ -138,7 +138,7 @@ interface IProductInfo {
138
138
  }
139
139
  interface IProductBlock {
140
140
  id: number;
141
- attributeSetId: number | null;
141
+ attributeSetIdentifier: number | null;
142
142
  localizeInfos: Record<string, any>;
143
143
  version: number;
144
144
  position: number;
@@ -1,5 +1,5 @@
1
1
  import AsyncModules from "../base/asyncModules";
2
- import { ITemplatesPreview, ITemplatesPreviewEntity, ITemplatePreviewEntity } from "./templatesPreviewInterfaces";
2
+ import { ITemplatesPreview, ITemplatesPreviewEntity } from "./templatesPreviewInterfaces";
3
3
  import StateModule from "../base/stateModule";
4
4
  /**
5
5
  * Controllers for working with template objects for preview
@@ -23,7 +23,7 @@ export default class TemplatePreviewsApi extends AsyncModules implements ITempla
23
23
  *
24
24
  * @returns Returns a TemplatePreviewsEntity object
25
25
  */
26
- getTemplatePreviewById(id: number, langCode?: string): Promise<ITemplatePreviewEntity>;
26
+ getTemplatePreviewById(id: number, langCode?: string): Promise<ITemplatesPreviewEntity>;
27
27
  /**
28
28
  * Get one template object by marker.
29
29
  *
@@ -32,5 +32,5 @@ export default class TemplatePreviewsApi extends AsyncModules implements ITempla
32
32
  *
33
33
  * @returns Returns a TemplatePreviewsEntity object
34
34
  */
35
- getTemplatePreviewByMarker(marker: string, langCode?: string): Promise<ITemplatePreviewEntity>;
35
+ getTemplatePreviewByMarker(marker: string, langCode?: string): Promise<ITemplatesPreviewEntity>;
36
36
  }
@@ -9,15 +9,14 @@
9
9
  */
10
10
  interface ITemplatesPreview {
11
11
  getTemplatePreviews(langCode: string): Promise<Array<ITemplatesPreviewEntity>>;
12
- getTemplatePreviewById(id: number, langCode: string): Promise<ITemplatePreviewEntity>;
13
- getTemplatePreviewByMarker(marker: string, langCode: string): Promise<ITemplatePreviewEntity>;
12
+ getTemplatePreviewById(id: number, langCode: string): Promise<ITemplatesPreviewEntity>;
13
+ getTemplatePreviewByMarker(marker: string, langCode: string): Promise<ITemplatesPreviewEntity>;
14
14
  }
15
15
  /**
16
16
  * Represents a template preview entity object.
17
17
  *
18
18
  * @interface
19
19
  * @property {number} id - The unique identifier of the position.
20
- * @property {Date | string} updatedDate - The date of last updated.
21
20
  * @property {string} identifier - The textual identifier for the record field.
22
21
  * @property {object} proportion - Object contains info by proportion template preview.
23
22
  * @property {Record<string, any>} localizeInfos - The name of the template, taking into account localization.
@@ -26,32 +25,6 @@ interface ITemplatesPreview {
26
25
  */
27
26
  interface ITemplatesPreviewEntity {
28
27
  id: number;
29
- updatedDate: string | Date;
30
- version: number;
31
- identifier: string;
32
- proportion: {
33
- horizontal: IProportion | null;
34
- vertical: IProportion | null;
35
- square: ISquare;
36
- };
37
- title: string;
38
- position: number;
39
- }
40
- /**
41
- * Represents a template preview entity object.
42
- *
43
- * @interface
44
- * @property {number} id - The unique identifier of the position.
45
- * @property {Date | string} updatedDate - The date of last updated.
46
- * @property {string} identifier - The textual identifier for the record field.
47
- * @property {object} proportion - Object contains info by proportion template preview.
48
- * @property {Record<string, any>} localizeInfos - The name of the template, taking into account localization.
49
- * @property {number} position - The position of the object.
50
- *
51
- */
52
- interface ITemplatePreviewEntity {
53
- id: number;
54
- updatedDate: string | Date;
55
28
  version: number;
56
29
  identifier: string;
57
30
  proportion: {
@@ -73,4 +46,4 @@ interface ISquare {
73
46
  slide: number;
74
47
  alignmentType: string;
75
48
  }
76
- export { ITemplatesPreview, ITemplatesPreviewEntity, ISquare, IProportion, ITemplatePreviewEntity };
49
+ export { ITemplatesPreview, ITemplatesPreviewEntity, ISquare, IProportion };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oneentry",
3
- "version": "1.0.71",
3
+ "version": "1.0.72",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "bin": {
14
14
  "oneentry": "./configure.js"
15
15
  },
16
- "author": "ONEENTRY ",
16
+ "author": "ONEENTRY PORTAL CO.",
17
17
  "license": "ISC",
18
18
  "dependencies": {
19
19
  "jsdoc": "^4.0.2"