@shushed/helpers 0.0.113 → 0.0.114-main-20250804075327
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 +10 -119
- package/dist/index.js +68 -73
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { SecretManagerServiceClient } from '@google-cloud/secret-manager';
|
|
|
9
9
|
import { BigQuery } from '@google-cloud/bigquery';
|
|
10
10
|
import { RedisClientType } from 'redis';
|
|
11
11
|
|
|
12
|
-
declare const schema$
|
|
12
|
+
declare const schema$u: {
|
|
13
13
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
14
14
|
readonly title: "Asset";
|
|
15
15
|
readonly type: "object";
|
|
@@ -43,7 +43,7 @@ declare const schema$v: {
|
|
|
43
43
|
readonly $id: "https://shushed.example.com/asset.json";
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
declare const schema$
|
|
46
|
+
declare const schema$t: {
|
|
47
47
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
48
48
|
readonly title: "Category";
|
|
49
49
|
readonly additionalProperties: false;
|
|
@@ -101,7 +101,7 @@ declare const schema$u: {
|
|
|
101
101
|
readonly $id: "https://shushed.example.com/category.schema.json";
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
declare const schema$
|
|
104
|
+
declare const schema$s: {
|
|
105
105
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
106
106
|
readonly title: "Country";
|
|
107
107
|
readonly type: "string";
|
|
@@ -109,7 +109,7 @@ declare const schema$t: {
|
|
|
109
109
|
readonly $id: "https://shushed.example.com/country.schema.json";
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
-
declare const schema$
|
|
112
|
+
declare const schema$r: {
|
|
113
113
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
114
114
|
readonly title: "Currency";
|
|
115
115
|
readonly type: "string";
|
|
@@ -117,91 +117,6 @@ declare const schema$s: {
|
|
|
117
117
|
readonly $id: "https://shushed.example.com/currency.schema.json";
|
|
118
118
|
};
|
|
119
119
|
|
|
120
|
-
declare const schema$r: {
|
|
121
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
122
|
-
readonly title: "Development Colour";
|
|
123
|
-
readonly type: "object";
|
|
124
|
-
readonly additionalProperties: false;
|
|
125
|
-
readonly properties: {
|
|
126
|
-
readonly colour_id: {
|
|
127
|
-
readonly type: "string";
|
|
128
|
-
};
|
|
129
|
-
readonly name: {
|
|
130
|
-
readonly type: "string";
|
|
131
|
-
};
|
|
132
|
-
readonly rgb: {
|
|
133
|
-
readonly type: "array";
|
|
134
|
-
readonly items: {
|
|
135
|
-
readonly type: "number";
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
readonly cmyk: {
|
|
139
|
-
readonly type: "array";
|
|
140
|
-
readonly items: {
|
|
141
|
-
readonly type: "number";
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
readonly pantone: {
|
|
145
|
-
readonly type: "object";
|
|
146
|
-
readonly properties: {
|
|
147
|
-
readonly name: {
|
|
148
|
-
readonly type: "string";
|
|
149
|
-
};
|
|
150
|
-
readonly system: {
|
|
151
|
-
readonly type: "string";
|
|
152
|
-
readonly pattern: "^[A-Z0-9-]+$";
|
|
153
|
-
};
|
|
154
|
-
readonly id: {
|
|
155
|
-
readonly type: "string";
|
|
156
|
-
readonly pattern: "^[A-Z0-9-]+$";
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
readonly display_name: {
|
|
161
|
-
readonly type: "string";
|
|
162
|
-
readonly pattern: "^[ a-z-]+$";
|
|
163
|
-
};
|
|
164
|
-
readonly family_display_name: {
|
|
165
|
-
readonly type: "string";
|
|
166
|
-
readonly pattern: "^[ a-z]+$";
|
|
167
|
-
};
|
|
168
|
-
readonly source_asset: {
|
|
169
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
170
|
-
readonly title: "Asset";
|
|
171
|
-
readonly type: "object";
|
|
172
|
-
readonly additionalProperties: false;
|
|
173
|
-
readonly properties: {
|
|
174
|
-
readonly source_url: {
|
|
175
|
-
readonly type: "string";
|
|
176
|
-
};
|
|
177
|
-
readonly last_modified_at: {
|
|
178
|
-
readonly type: "string";
|
|
179
|
-
readonly format: "date-time";
|
|
180
|
-
};
|
|
181
|
-
readonly width: {
|
|
182
|
-
readonly type: "integer";
|
|
183
|
-
readonly minimum: 0;
|
|
184
|
-
};
|
|
185
|
-
readonly height: {
|
|
186
|
-
readonly type: "integer";
|
|
187
|
-
readonly minimum: 0;
|
|
188
|
-
};
|
|
189
|
-
readonly content_type: {
|
|
190
|
-
readonly type: "string";
|
|
191
|
-
readonly pattern: "^[a-z0-9-]+$";
|
|
192
|
-
};
|
|
193
|
-
readonly file_name: {
|
|
194
|
-
readonly type: "string";
|
|
195
|
-
readonly pattern: "^[a-z0-9-]+$";
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
readonly required: readonly ["source_url", "content_type", "last_modified_at"];
|
|
199
|
-
};
|
|
200
|
-
};
|
|
201
|
-
readonly required: readonly ["colour_id"];
|
|
202
|
-
readonly $id: "https://shushed.example.com/development-colour.schema.json";
|
|
203
|
-
};
|
|
204
|
-
|
|
205
120
|
declare const schema$q: {
|
|
206
121
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
207
122
|
readonly title: "Money";
|
|
@@ -30069,10 +29984,10 @@ declare namespace index$a {
|
|
|
30069
29984
|
}
|
|
30070
29985
|
|
|
30071
29986
|
declare namespace index$9 {
|
|
30072
|
-
export { schema$
|
|
29987
|
+
export { schema$u as Asset, schema$t as Category, schema$s as Country, schema$r as Currency, index$f as Messages, schema$q as Money, index$a as Order, schema$p as Price, schema$m as Product, schema$o as ProductCategory, schema$n as ProductDraft, schema$l as Stock, schema$k as Total };
|
|
30073
29988
|
}
|
|
30074
29989
|
|
|
30075
|
-
interface __MainSchema$
|
|
29990
|
+
interface __MainSchema$z {
|
|
30076
29991
|
source_url: string;
|
|
30077
29992
|
last_modified_at: string;
|
|
30078
29993
|
width?: number;
|
|
@@ -30081,37 +29996,13 @@ interface __MainSchema$A {
|
|
|
30081
29996
|
file_name?: string;
|
|
30082
29997
|
}
|
|
30083
29998
|
|
|
30084
|
-
type __MainSchema$
|
|
29999
|
+
type __MainSchema$y = {
|
|
30085
30000
|
[k: string]: unknown;
|
|
30086
30001
|
};
|
|
30087
30002
|
|
|
30088
|
-
type __MainSchema$
|
|
30089
|
-
|
|
30090
|
-
type __MainSchema$x = ("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");
|
|
30003
|
+
type __MainSchema$x = ("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");
|
|
30091
30004
|
|
|
30092
|
-
|
|
30093
|
-
colour_id: string;
|
|
30094
|
-
name?: string;
|
|
30095
|
-
rgb?: number[];
|
|
30096
|
-
cmyk?: number[];
|
|
30097
|
-
pantone?: {
|
|
30098
|
-
name?: string;
|
|
30099
|
-
system?: string;
|
|
30100
|
-
id?: string;
|
|
30101
|
-
[k: string]: unknown;
|
|
30102
|
-
};
|
|
30103
|
-
display_name?: string;
|
|
30104
|
-
family_display_name?: string;
|
|
30105
|
-
source_asset?: Asset;
|
|
30106
|
-
}
|
|
30107
|
-
interface Asset {
|
|
30108
|
-
source_url: string;
|
|
30109
|
-
last_modified_at: string;
|
|
30110
|
-
width?: number;
|
|
30111
|
-
height?: number;
|
|
30112
|
-
content_type: string;
|
|
30113
|
-
file_name?: string;
|
|
30114
|
-
}
|
|
30005
|
+
type __MainSchema$w = ("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");
|
|
30115
30006
|
|
|
30116
30007
|
type Currency$m = ("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");
|
|
30117
30008
|
type LCYCurrency$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");
|
|
@@ -33317,7 +33208,7 @@ declare namespace index$2 {
|
|
|
33317
33208
|
}
|
|
33318
33209
|
|
|
33319
33210
|
declare namespace index$1 {
|
|
33320
|
-
export { type __MainSchema$
|
|
33211
|
+
export { type __MainSchema$z as Asset, type __MainSchema$y as Category, type __MainSchema$x as Country, type __MainSchema$w as Currency, index$7 as Messages, type __MainSchema$v as Money, index$2 as Order, type __MainSchema$u as Price, type __MainSchema$r as Product, type __MainSchema$t as ProductCategory, type __MainSchema$s as ProductDraft, type __MainSchema$q as Stock, type __MainSchema$p as Total };
|
|
33321
33212
|
}
|
|
33322
33213
|
|
|
33323
33214
|
type Log = {
|