univapay-node 3.0.6 → 3.0.7
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/dist/cjs/resources/ECForms.d.ts +8 -3
- package/dist/cjs/resources/ECForms.js +7 -1
- package/dist/cjs/resources/ECForms.js.map +1 -1
- package/dist/esm/resources/ECForms.d.ts +8 -3
- package/dist/esm/resources/ECForms.js +6 -0
- package/dist/esm/resources/ECForms.js.map +1 -1
- package/package.json +1 -1
|
@@ -16,6 +16,11 @@ export declare enum ECFormCustomFieldType {
|
|
|
16
16
|
STRING = "string",
|
|
17
17
|
SELECT = "select"
|
|
18
18
|
}
|
|
19
|
+
export declare enum Languages {
|
|
20
|
+
EN_US = "en_us",
|
|
21
|
+
JA_JP = "ja_jp",
|
|
22
|
+
ZH_TW = "zh_tw"
|
|
23
|
+
}
|
|
19
24
|
export declare type ECFormCustomField = {
|
|
20
25
|
key: string;
|
|
21
26
|
label: string;
|
|
@@ -84,9 +89,9 @@ export declare type ECFormItem<Metadata = BaseMetadata> = {
|
|
|
84
89
|
descriptor: string | null;
|
|
85
90
|
ignoreDescriptorOnError: boolean | null;
|
|
86
91
|
metadata: Metadata | null;
|
|
87
|
-
customFieldsTitles?: Partial<Record<
|
|
88
|
-
orderSummaryTitles?: Partial<Record<
|
|
89
|
-
customFields?: Partial<Record<
|
|
92
|
+
customFieldsTitles?: Partial<Record<Languages, string>> | null;
|
|
93
|
+
orderSummaryTitles?: Partial<Record<Languages, string>> | null;
|
|
94
|
+
customFields?: Partial<Record<Languages, ECFormCustomField[]>> | null;
|
|
90
95
|
};
|
|
91
96
|
export declare type ResponseECForm<Metadata = BaseMetadata> = ECFormItem<Metadata>;
|
|
92
97
|
export declare class ECForms extends CRUDResource {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ECForms = exports.ECFormCustomFieldType = exports.CheckoutType = void 0;
|
|
3
|
+
exports.ECForms = exports.Languages = exports.ECFormCustomFieldType = exports.CheckoutType = void 0;
|
|
4
4
|
const CRUDResource_js_1 = require("./CRUDResource.js");
|
|
5
5
|
var CheckoutType;
|
|
6
6
|
(function (CheckoutType) {
|
|
@@ -12,6 +12,12 @@ var ECFormCustomFieldType;
|
|
|
12
12
|
ECFormCustomFieldType["STRING"] = "string";
|
|
13
13
|
ECFormCustomFieldType["SELECT"] = "select";
|
|
14
14
|
})(ECFormCustomFieldType = exports.ECFormCustomFieldType || (exports.ECFormCustomFieldType = {}));
|
|
15
|
+
var Languages;
|
|
16
|
+
(function (Languages) {
|
|
17
|
+
Languages["EN_US"] = "en_us";
|
|
18
|
+
Languages["JA_JP"] = "ja_jp";
|
|
19
|
+
Languages["ZH_TW"] = "zh_tw";
|
|
20
|
+
})(Languages = exports.Languages || (exports.Languages = {}));
|
|
15
21
|
class ECForms extends CRUDResource_js_1.CRUDResource {
|
|
16
22
|
get(id, data, auth) {
|
|
17
23
|
this._get = this._get ?? this._getRoute();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ECForms.js","sourceRoot":"","sources":["../../../src/resources/ECForms.ts"],"names":[],"mappings":";;;AAOA,uDAAiD;AAOjD,IAAY,YAGX;AAHD,WAAY,YAAY;IACpB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;AACnB,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,0CAAiB,CAAA;IACjB,0CAAiB,CAAA;AACrB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AA6FD,MAAa,OAAQ,SAAQ,8BAAY;IAKrC,GAAG,CAAC,EAAU,EAAE,IAAqB,EAAE,IAAiB;QACpD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzC,CAAC;;AARL,0BASC;AARU,sBAAc,GAAa,EAAE,CAAC;AAC9B,iBAAS,GAAG,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"ECForms.js","sourceRoot":"","sources":["../../../src/resources/ECForms.ts"],"names":[],"mappings":";;;AAOA,uDAAiD;AAOjD,IAAY,YAGX;AAHD,WAAY,YAAY;IACpB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;AACnB,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,0CAAiB,CAAA;IACjB,0CAAiB,CAAA;AACrB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAED,IAAY,SAIX;AAJD,WAAY,SAAS;IACjB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;AACnB,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;AA6FD,MAAa,OAAQ,SAAQ,8BAAY;IAKrC,GAAG,CAAC,EAAU,EAAE,IAAqB,EAAE,IAAiB;QACpD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzC,CAAC;;AARL,0BASC;AARU,sBAAc,GAAa,EAAE,CAAC;AAC9B,iBAAS,GAAG,iBAAiB,CAAC"}
|
|
@@ -16,6 +16,11 @@ export declare enum ECFormCustomFieldType {
|
|
|
16
16
|
STRING = "string",
|
|
17
17
|
SELECT = "select"
|
|
18
18
|
}
|
|
19
|
+
export declare enum Languages {
|
|
20
|
+
EN_US = "en_us",
|
|
21
|
+
JA_JP = "ja_jp",
|
|
22
|
+
ZH_TW = "zh_tw"
|
|
23
|
+
}
|
|
19
24
|
export declare type ECFormCustomField = {
|
|
20
25
|
key: string;
|
|
21
26
|
label: string;
|
|
@@ -84,9 +89,9 @@ export declare type ECFormItem<Metadata = BaseMetadata> = {
|
|
|
84
89
|
descriptor: string | null;
|
|
85
90
|
ignoreDescriptorOnError: boolean | null;
|
|
86
91
|
metadata: Metadata | null;
|
|
87
|
-
customFieldsTitles?: Partial<Record<
|
|
88
|
-
orderSummaryTitles?: Partial<Record<
|
|
89
|
-
customFields?: Partial<Record<
|
|
92
|
+
customFieldsTitles?: Partial<Record<Languages, string>> | null;
|
|
93
|
+
orderSummaryTitles?: Partial<Record<Languages, string>> | null;
|
|
94
|
+
customFields?: Partial<Record<Languages, ECFormCustomField[]>> | null;
|
|
90
95
|
};
|
|
91
96
|
export declare type ResponseECForm<Metadata = BaseMetadata> = ECFormItem<Metadata>;
|
|
92
97
|
export declare class ECForms extends CRUDResource {
|
|
@@ -9,6 +9,12 @@ export var ECFormCustomFieldType;
|
|
|
9
9
|
ECFormCustomFieldType["STRING"] = "string";
|
|
10
10
|
ECFormCustomFieldType["SELECT"] = "select";
|
|
11
11
|
})(ECFormCustomFieldType = ECFormCustomFieldType || (ECFormCustomFieldType = {}));
|
|
12
|
+
export var Languages;
|
|
13
|
+
(function (Languages) {
|
|
14
|
+
Languages["EN_US"] = "en_us";
|
|
15
|
+
Languages["JA_JP"] = "ja_jp";
|
|
16
|
+
Languages["ZH_TW"] = "zh_tw";
|
|
17
|
+
})(Languages = Languages || (Languages = {}));
|
|
12
18
|
export class ECForms extends CRUDResource {
|
|
13
19
|
get(id, data, auth) {
|
|
14
20
|
this._get = this._get ?? this._getRoute();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ECForms.js","sourceRoot":"","sources":["../../../src/resources/ECForms.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAO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