oneentry 1.0.73 → 1.0.74

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.
package/README.md CHANGED
@@ -3351,7 +3351,8 @@ Example return:
3351
3351
  "id": 1764,
3352
3352
  "updatedDate": "2024-06-21T09:53:28.898Z",
3353
3353
  "version": 10,
3354
- "identifier": "my-id"
3354
+ "identifier": "my-id",
3355
+ "paymentUrl": "https://paymewntlink.com"
3355
3356
  }
3356
3357
  ```
3357
3358
  <details>
@@ -29,28 +29,21 @@ interface IFormsDataEntity {
29
29
  }
30
30
  /**
31
31
  * Contains an array of data form objects with the following values
32
- *
33
- * @property {string} marker Form data marker.
34
- *
35
- * @property {string} value Form data value.
36
32
  */
37
- interface IFormData {
38
- marker?: string;
39
- value?: string;
40
- }
33
+ type FormDataType = IBodyTypeStringNumberFloat | IBodyTypeTimeDate | IBodyTypeText | IBodyTypeTextWithHeader | IBodyTypeImageGroupOfImages | IBodyTypeFile | IBodyTypeRadioButtonList | Record<string, any>;
41
34
  /**
42
35
  * interface to create an object of information about saving data using the form
43
36
  *
44
37
  * @property {number} id
45
38
  * @property {string} formIdentifier - The identifier of the page.
46
39
  * @property {Date | string} time - Date and time of form modification
47
- * @property {IFormData} formData - The identifier of the page.
40
+ * @property {Array<FormDataType>} formData - The identifier of the page.
48
41
  */
49
42
  interface IFormsPost {
50
43
  id?: number;
51
44
  formIdentifier: string;
52
45
  time?: Date | string;
53
- formData: Array<IBodyTypeStringNumberFloat | IBodyTypeTimeDate | IBodyTypeText | IBodyTypeTextWithHeader | IBodyTypeImageGroupOfImages | IBodyTypeFile | IBodyTypeRadioButtonList | Record<string, any>>;
46
+ formData: Array<FormDataType>;
54
47
  }
55
48
  /**
56
49
  * @property {string} marker - marker name
@@ -168,4 +161,4 @@ interface IBodyTypeRadioButtonList {
168
161
  };
169
162
  }>;
170
163
  }
171
- export { IFormsPost, IFormsData, IFormData, IFormsDataEntity, IBodyTypeStringNumberFloat, IBodyTypeTimeDate, IBodyTypeText, IBodyTypeTextWithHeader, IBodyTypeImageGroupOfImages, IBodyTypeFile, IBodyTypeRadioButtonList };
164
+ export { IFormsPost, IFormsData, FormDataType, IFormsDataEntity, IBodyTypeStringNumberFloat, IBodyTypeTimeDate, IBodyTypeText, IBodyTypeTextWithHeader, IBodyTypeImageGroupOfImages, IBodyTypeFile, IBodyTypeRadioButtonList };
@@ -38,7 +38,7 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
38
38
  */
39
39
  createOrder(marker: string, data: IOrderData, langCode?: string): Promise<IBaseOrdersEntity>;
40
40
  /**
41
- * Getting all order storage object by marker
41
+ * Getting all orders from the orders storage object created by the user
42
42
  *
43
43
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
44
44
  * @param {number} marker - Textual identifier of the order storage object
@@ -48,7 +48,7 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
48
48
  */
49
49
  getAllOrdersByMarker(marker: string, langCode?: string, limit?: number, offset?: number): Promise<Array<IOrdersByMarkersEntity>>;
50
50
  /**
51
- * Changing an order in the order store
51
+ * Changing an order in the orders storage
52
52
  *
53
53
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
54
54
  * @param marker - The text identifier of the order storage object
@@ -45,7 +45,7 @@ class OrdersApi extends asyncModules_1.default {
45
45
  return this._normalizeData(result);
46
46
  }
47
47
  /**
48
- * Getting all order storage object by marker
48
+ * Getting all orders from the orders storage object created by the user
49
49
  *
50
50
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
51
51
  * @param {number} marker - Textual identifier of the order storage object
@@ -58,7 +58,7 @@ class OrdersApi extends asyncModules_1.default {
58
58
  return this._normalizeData(result.items);
59
59
  }
60
60
  /**
61
- * Changing an order in the order store
61
+ * Changing an order in the orders storage
62
62
  *
63
63
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
64
64
  * @param marker - The text identifier of the order storage object
@@ -49,6 +49,7 @@ interface IIntent {
49
49
  * @property {number} id - Object identifier.
50
50
  * @property {string} updatedDate - Object modification date.
51
51
  * @property {string} type - Type may be 'session' or 'intent'.
52
+ * @property {string} status - payment status.
52
53
  * @property {number} orderId - Order identifier.
53
54
  * @property {number} paymentAccountId - Payment account object identifier.
54
55
  * @property {string} paymentUrl - Payment link.
@@ -62,12 +63,14 @@ interface ISessionEntity {
62
63
  paymentAccountId: number;
63
64
  paymentUrl: string;
64
65
  clientSecret: string;
66
+ status: string;
65
67
  }
66
68
  interface ICreateSessionEntity {
67
69
  id: number;
68
70
  updatedDate: string;
69
71
  version: number;
70
72
  identifier: string;
73
+ paymentUrl: string;
71
74
  }
72
75
  /**
73
76
  * @interface
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oneentry",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",