@shushed/helpers 0.0.38 → 0.0.40
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/index.d.ts +154 -11
- package/dist/index.js +64 -74
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { CloudSchedulerClient } from '@google-cloud/scheduler';
|
|
|
8
8
|
import { SecretManagerServiceClient } from '@google-cloud/secret-manager';
|
|
9
9
|
import { BigQuery } from '@google-cloud/bigquery';
|
|
10
10
|
|
|
11
|
-
declare const schema$
|
|
11
|
+
declare const schema$m: {
|
|
12
12
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
13
13
|
readonly title: "Country";
|
|
14
14
|
readonly type: "string";
|
|
@@ -16,7 +16,7 @@ declare const schema$l: {
|
|
|
16
16
|
readonly $id: "https://shushed.example.com/country.schema.json";
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
declare const schema$
|
|
19
|
+
declare const schema$l: {
|
|
20
20
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
21
21
|
readonly title: "Currency";
|
|
22
22
|
readonly type: "string";
|
|
@@ -24,7 +24,7 @@ declare const schema$k: {
|
|
|
24
24
|
readonly $id: "https://shushed.example.com/currency.schema.json";
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
declare const schema$
|
|
27
|
+
declare const schema$k: {
|
|
28
28
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
29
29
|
readonly title: "Money";
|
|
30
30
|
readonly type: "object";
|
|
@@ -65,6 +65,52 @@ declare const schema$j: {
|
|
|
65
65
|
readonly $id: "https://shushed.example.com/money.schema.json";
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
+
declare const schema$j: {
|
|
69
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
70
|
+
readonly title: "Price";
|
|
71
|
+
readonly type: "object";
|
|
72
|
+
readonly additionalProperties: false;
|
|
73
|
+
readonly properties: {
|
|
74
|
+
readonly style_id: {
|
|
75
|
+
readonly type: readonly ["string"];
|
|
76
|
+
};
|
|
77
|
+
readonly colour_id: {
|
|
78
|
+
readonly type: readonly ["string"];
|
|
79
|
+
};
|
|
80
|
+
readonly full_price: {
|
|
81
|
+
readonly type: "integer";
|
|
82
|
+
readonly minimum: 1;
|
|
83
|
+
};
|
|
84
|
+
readonly markdown: {
|
|
85
|
+
readonly type: "integer";
|
|
86
|
+
readonly minimum: 1;
|
|
87
|
+
};
|
|
88
|
+
readonly pos: {
|
|
89
|
+
readonly type: "integer";
|
|
90
|
+
readonly minimum: 1;
|
|
91
|
+
};
|
|
92
|
+
readonly currency: {
|
|
93
|
+
readonly title: "Currency";
|
|
94
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
|
|
97
|
+
};
|
|
98
|
+
readonly effective_from: {
|
|
99
|
+
readonly type: "string";
|
|
100
|
+
readonly format: "date-time";
|
|
101
|
+
readonly effective_until: {
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
readonly format: "date-time";
|
|
104
|
+
readonly channel: {
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
readonly required: readonly ["style_id", "color_id", "full_price", "markdown", "pos", "currency", "effective_from", "channel"];
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
readonly $id: "https://shushed.example.com/price.schema.json";
|
|
112
|
+
};
|
|
113
|
+
|
|
68
114
|
declare const schema$i: {
|
|
69
115
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
70
116
|
readonly title: "ProductDraft";
|
|
@@ -26568,24 +26614,35 @@ declare namespace index$a {
|
|
|
26568
26614
|
}
|
|
26569
26615
|
|
|
26570
26616
|
declare namespace index$9 {
|
|
26571
|
-
export { schema$
|
|
26617
|
+
export { schema$m as Country, schema$l as Currency, index$f as Messages, schema$k as Money, index$a as Order, schema$j as Price, schema$i as ProductDraft, schema$h as Total };
|
|
26572
26618
|
}
|
|
26573
26619
|
|
|
26574
|
-
type __MainSchema$
|
|
26620
|
+
type __MainSchema$r = ("AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "CV" | "KH" | "CM" | "CA" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CD" | "CG" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "SZ" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MK" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW");
|
|
26575
26621
|
|
|
26576
|
-
type __MainSchema$
|
|
26622
|
+
type __MainSchema$q = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
|
|
26577
26623
|
|
|
26578
|
-
type Currency$
|
|
26624
|
+
type Currency$k = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
|
|
26579
26625
|
type LCYCurrency$j = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
|
|
26580
|
-
interface __MainSchema$
|
|
26626
|
+
interface __MainSchema$p {
|
|
26581
26627
|
value: number;
|
|
26582
26628
|
decimal_places: number;
|
|
26583
|
-
currency: Currency$
|
|
26629
|
+
currency: Currency$k;
|
|
26584
26630
|
lcy_value: number;
|
|
26585
26631
|
lcy_currency: LCYCurrency$j;
|
|
26586
26632
|
lcy_decimal_places: number;
|
|
26587
26633
|
}
|
|
26588
26634
|
|
|
26635
|
+
type Currency$j = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
|
|
26636
|
+
interface __MainSchema$o {
|
|
26637
|
+
style_id?: string;
|
|
26638
|
+
colour_id?: string;
|
|
26639
|
+
full_price?: number;
|
|
26640
|
+
markdown?: number;
|
|
26641
|
+
pos?: number;
|
|
26642
|
+
currency?: Currency$j;
|
|
26643
|
+
effective_from?: string;
|
|
26644
|
+
}
|
|
26645
|
+
|
|
26589
26646
|
type Currency$i = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
|
|
26590
26647
|
type LCYCurrency$i = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
|
|
26591
26648
|
type Country$9 = ("AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "CV" | "KH" | "CM" | "CA" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CD" | "CG" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "SZ" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MK" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW");
|
|
@@ -28684,7 +28741,7 @@ declare namespace index$2 {
|
|
|
28684
28741
|
}
|
|
28685
28742
|
|
|
28686
28743
|
declare namespace index$1 {
|
|
28687
|
-
export { type __MainSchema$
|
|
28744
|
+
export { type __MainSchema$r as Country, type __MainSchema$q as Currency, index$7 as Messages, type __MainSchema$p as Money, index$2 as Order, type __MainSchema$o as Price, type __MainSchema$n as ProductDraft, type __MainSchema$m as Total };
|
|
28688
28745
|
}
|
|
28689
28746
|
|
|
28690
28747
|
type Log = {
|
|
@@ -29033,6 +29090,91 @@ type TriggerOnCreateOptions = {
|
|
|
29033
29090
|
workflowId: string;
|
|
29034
29091
|
};
|
|
29035
29092
|
};
|
|
29093
|
+
type NodeOptions = {
|
|
29094
|
+
req: undefined;
|
|
29095
|
+
request: {
|
|
29096
|
+
headers: Record<string, string>;
|
|
29097
|
+
method: 'POST' | 'GET' | 'PUT' | 'PATCH';
|
|
29098
|
+
body: undefined;
|
|
29099
|
+
path: string;
|
|
29100
|
+
query: Record<string, string>;
|
|
29101
|
+
host: string;
|
|
29102
|
+
hostname: string;
|
|
29103
|
+
originalUrl: string;
|
|
29104
|
+
ip: string;
|
|
29105
|
+
ips: [];
|
|
29106
|
+
querystring: string;
|
|
29107
|
+
subdomains: Array<string>;
|
|
29108
|
+
secure: boolean;
|
|
29109
|
+
protocol: 'http' | 'https';
|
|
29110
|
+
params: undefined;
|
|
29111
|
+
};
|
|
29112
|
+
nodeReq: Request;
|
|
29113
|
+
auth: {
|
|
29114
|
+
getToken: (forceRefresh: boolean) => any;
|
|
29115
|
+
getKey: (options: {
|
|
29116
|
+
ignoreMissingKey?: boolean;
|
|
29117
|
+
}) => any;
|
|
29118
|
+
};
|
|
29119
|
+
workflow: {
|
|
29120
|
+
id: string;
|
|
29121
|
+
deployId: string;
|
|
29122
|
+
runtimeVersion: string;
|
|
29123
|
+
nodeValues: Record<string, any>;
|
|
29124
|
+
env: Record<string, any>;
|
|
29125
|
+
variables: Record<string, any>;
|
|
29126
|
+
inputs: any;
|
|
29127
|
+
outputs: any;
|
|
29128
|
+
nodes: Array<any>;
|
|
29129
|
+
builtNodes: Array<any>;
|
|
29130
|
+
};
|
|
29131
|
+
getBuildShipFile: (x: any) => any;
|
|
29132
|
+
inputProperties: Record<string, any>;
|
|
29133
|
+
env: {
|
|
29134
|
+
set: (args: {
|
|
29135
|
+
name: string;
|
|
29136
|
+
value: string;
|
|
29137
|
+
}[], level: 'workflow' | 'project') => Promise<void>;
|
|
29138
|
+
get: (name: string, level: 'workflow' | 'project') => string | null;
|
|
29139
|
+
triggerEnv: any;
|
|
29140
|
+
workflowId: string;
|
|
29141
|
+
};
|
|
29142
|
+
node: {
|
|
29143
|
+
id: string;
|
|
29144
|
+
};
|
|
29145
|
+
state: Record<string, any>;
|
|
29146
|
+
root: {
|
|
29147
|
+
state: Record<string, any>;
|
|
29148
|
+
inputs: any;
|
|
29149
|
+
};
|
|
29150
|
+
session: {
|
|
29151
|
+
rootState: undefined;
|
|
29152
|
+
sessionId: string;
|
|
29153
|
+
executedNodes: {
|
|
29154
|
+
[key: string]: {
|
|
29155
|
+
ts: number;
|
|
29156
|
+
executionTime: number;
|
|
29157
|
+
nodeId: string;
|
|
29158
|
+
nodeType: string;
|
|
29159
|
+
parents: Array<string>;
|
|
29160
|
+
success: boolean;
|
|
29161
|
+
libId: string;
|
|
29162
|
+
libType: string;
|
|
29163
|
+
};
|
|
29164
|
+
};
|
|
29165
|
+
nodeToTriggerSleep: undefined;
|
|
29166
|
+
stateToTriggerSleep: undefined;
|
|
29167
|
+
isSaved: boolean;
|
|
29168
|
+
isToBeSaved: boolean;
|
|
29169
|
+
isResumed: boolean;
|
|
29170
|
+
initialState: any;
|
|
29171
|
+
};
|
|
29172
|
+
logging: {
|
|
29173
|
+
log: (...x: Array<any>) => void;
|
|
29174
|
+
warn: (...x: Array<any>) => void;
|
|
29175
|
+
error: (...x: Array<any>) => void;
|
|
29176
|
+
};
|
|
29177
|
+
};
|
|
29036
29178
|
|
|
29037
29179
|
type index_BigQueryHelper = BigQueryHelper;
|
|
29038
29180
|
declare const index_BigQueryHelper: typeof BigQueryHelper;
|
|
@@ -29041,6 +29183,7 @@ declare const index_EnvEngine: typeof EnvEngine;
|
|
|
29041
29183
|
type index_JWKSHelper = JWKSHelper;
|
|
29042
29184
|
declare const index_JWKSHelper: typeof JWKSHelper;
|
|
29043
29185
|
type index_Message = Message;
|
|
29186
|
+
type index_NodeOptions = NodeOptions;
|
|
29044
29187
|
type index_PubSubHelper = PubSubHelper;
|
|
29045
29188
|
declare const index_PubSubHelper: typeof PubSubHelper;
|
|
29046
29189
|
type index_Runtime = Runtime;
|
|
@@ -29060,7 +29203,7 @@ declare const index_sanitizeToString: typeof sanitizeToString;
|
|
|
29060
29203
|
declare const index_validate: typeof validate;
|
|
29061
29204
|
declare const index_validateGoogleAuth: typeof validateGoogleAuth;
|
|
29062
29205
|
declare namespace index {
|
|
29063
|
-
export { index_BigQueryHelper as BigQueryHelper, index_EnvEngine as EnvEngine, index_JWKSHelper as JWKSHelper, type index_Message as Message, index_PubSubHelper as PubSubHelper, index_Runtime as Runtime, index_SchedulerHelper as SchedulerHelper, index_Secrets as Secrets, type index_TriggerOnCreateOptions as TriggerOnCreateOptions, type index_TriggerOnExecuteOptions as TriggerOnExecuteOptions, index_getEventTime as getEventTime, index_isCronMessage as isCronMessage, index_isPubSubRequest as isPubSubRequest, index_parseDateOrDefault as parseDateOrDefault, index_sanitize as sanitize, index_sanitizeToString as sanitizeToString, index_validate as validate, index_validateGoogleAuth as validateGoogleAuth };
|
|
29206
|
+
export { index_BigQueryHelper as BigQueryHelper, index_EnvEngine as EnvEngine, index_JWKSHelper as JWKSHelper, type index_Message as Message, type index_NodeOptions as NodeOptions, index_PubSubHelper as PubSubHelper, index_Runtime as Runtime, index_SchedulerHelper as SchedulerHelper, index_Secrets as Secrets, type index_TriggerOnCreateOptions as TriggerOnCreateOptions, type index_TriggerOnExecuteOptions as TriggerOnExecuteOptions, index_getEventTime as getEventTime, index_isCronMessage as isCronMessage, index_isPubSubRequest as isPubSubRequest, index_parseDateOrDefault as parseDateOrDefault, index_sanitize as sanitize, index_sanitizeToString as sanitizeToString, index_validate as validate, index_validateGoogleAuth as validateGoogleAuth };
|
|
29064
29207
|
}
|
|
29065
29208
|
|
|
29066
29209
|
export { index as lib, index$9 as schema, index$1 as types };
|