@shushed/helpers 0.0.199 → 0.0.200-dato-rate-limit2-20251126110330
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/dist-dereferenced/asset.js +4 -0
- package/dist/cjs/dist-dereferenced/category.js +4 -0
- package/dist/cjs/dist-dereferenced/country.js +4 -0
- package/dist/cjs/dist-dereferenced/currency.js +4 -0
- package/dist/cjs/dist-dereferenced/customer-segment.js +4 -0
- package/dist/cjs/dist-dereferenced/development-colour.js +4 -0
- package/dist/cjs/dist-dereferenced/index.js +69 -0
- package/dist/cjs/dist-dereferenced/marketing-preferences.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/ean-change.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/index.js +50 -0
- package/dist/cjs/dist-dereferenced/messages/order/delivered.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/order/index.js +18 -0
- package/dist/cjs/dist-dereferenced/messages/order/new.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/order/processed.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/order/return-initiated.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/order/returned.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/order/shipped.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/price-change.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/product-category.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/product-draft.js +4 -0
- package/dist/cjs/dist-dereferenced/messages/product.js +4 -0
- package/dist/cjs/dist-dereferenced/money.js +4 -0
- package/dist/cjs/dist-dereferenced/order/address.js +4 -0
- package/dist/cjs/dist-dereferenced/order/customer.js +4 -0
- package/dist/cjs/dist-dereferenced/order/index.js +51 -0
- package/dist/cjs/dist-dereferenced/order/item.js +4 -0
- package/dist/cjs/dist-dereferenced/order/orderMain.js +4 -0
- package/dist/cjs/dist-dereferenced/order/payment.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/index.js +45 -0
- package/dist/cjs/dist-dereferenced/order/shipment/item/index.js +11 -0
- package/dist/cjs/dist-dereferenced/order/shipment/item/itemMain.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/item/returned.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/pos/index.js +13 -0
- package/dist/cjs/dist-dereferenced/order/shipment/pos/outbound.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/pos/posMain.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/pos/return.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/shipmentMain.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/shipped/index.js +13 -0
- package/dist/cjs/dist-dereferenced/order/shipment/shipped/outbound.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/shipped/return.js +4 -0
- package/dist/cjs/dist-dereferenced/order/shipment/shipped/shippedMain.js +4 -0
- package/dist/cjs/dist-dereferenced/price.js +4 -0
- package/dist/cjs/dist-dereferenced/product-category.js +4 -0
- package/dist/cjs/dist-dereferenced/product-draft.js +4 -0
- package/dist/cjs/dist-dereferenced/product.js +4 -0
- package/dist/cjs/dist-dereferenced/stock.js +4 -0
- package/dist/cjs/dist-dereferenced/total.js +4 -0
- package/dist/cjs/dist-types/asset.js +2 -0
- package/dist/cjs/dist-types/category.js +2 -0
- package/dist/cjs/dist-types/country.js +2 -0
- package/dist/cjs/dist-types/currency.js +2 -0
- package/dist/cjs/dist-types/customer-segment.js +2 -0
- package/dist/cjs/dist-types/development-colour.js +2 -0
- package/dist/cjs/dist-types/index.js +38 -0
- package/dist/cjs/dist-types/marketing-preferences.js +2 -0
- package/dist/cjs/dist-types/messages/ean-change.js +2 -0
- package/dist/cjs/dist-types/messages/index.js +37 -0
- package/dist/cjs/dist-types/messages/order/delivered.js +2 -0
- package/dist/cjs/dist-types/messages/order/index.js +2 -0
- package/dist/cjs/dist-types/messages/order/new.js +2 -0
- package/dist/cjs/dist-types/messages/order/processed.js +2 -0
- package/dist/cjs/dist-types/messages/order/return-initiated.js +2 -0
- package/dist/cjs/dist-types/messages/order/returned.js +2 -0
- package/dist/cjs/dist-types/messages/order/shipped.js +2 -0
- package/dist/cjs/dist-types/messages/price-change.js +2 -0
- package/dist/cjs/dist-types/messages/product-category.js +2 -0
- package/dist/cjs/dist-types/messages/product-draft.js +2 -0
- package/dist/cjs/dist-types/messages/product.js +2 -0
- package/dist/cjs/dist-types/money.js +2 -0
- package/dist/cjs/dist-types/order/address.js +2 -0
- package/dist/cjs/dist-types/order/customer.js +2 -0
- package/dist/cjs/dist-types/order/index.js +37 -0
- package/dist/cjs/dist-types/order/item.js +2 -0
- package/dist/cjs/dist-types/order/orderMain.js +2 -0
- package/dist/cjs/dist-types/order/payment.js +2 -0
- package/dist/cjs/dist-types/order/shipment/index.js +39 -0
- package/dist/cjs/dist-types/order/shipment/item/index.js +2 -0
- package/dist/cjs/dist-types/order/shipment/item/itemMain.js +2 -0
- package/dist/cjs/dist-types/order/shipment/item/returned.js +2 -0
- package/dist/cjs/dist-types/order/shipment/pos/index.js +2 -0
- package/dist/cjs/dist-types/order/shipment/pos/outbound.js +2 -0
- package/dist/cjs/dist-types/order/shipment/pos/posMain.js +2 -0
- package/dist/cjs/dist-types/order/shipment/pos/return.js +2 -0
- package/dist/cjs/dist-types/order/shipment/shipmentMain.js +2 -0
- package/dist/cjs/dist-types/order/shipment/shipped/index.js +2 -0
- package/dist/cjs/dist-types/order/shipment/shipped/outbound.js +2 -0
- package/dist/cjs/dist-types/order/shipment/shipped/return.js +2 -0
- package/dist/cjs/dist-types/order/shipment/shipped/shippedMain.js +2 -0
- package/dist/cjs/dist-types/price.js +2 -0
- package/dist/cjs/dist-types/product-category.js +2 -0
- package/dist/cjs/dist-types/product-draft.js +2 -0
- package/dist/cjs/dist-types/product.js +2 -0
- package/dist/cjs/dist-types/stock.js +2 -0
- package/dist/cjs/dist-types/total.js +2 -0
- package/dist/cjs/index.js +39 -0
- package/dist/cjs/src-public/airtable.js +590 -0
- package/dist/cjs/src-public/bigquery.js +59 -0
- package/dist/cjs/src-public/cloudtasks.js +207 -0
- package/dist/cjs/src-public/dato.js +272 -0
- package/dist/cjs/src-public/env.js +897 -0
- package/dist/cjs/src-public/getEventTime.js +28 -0
- package/dist/cjs/src-public/index.js +50 -0
- package/dist/cjs/src-public/ipValidation.js +167 -0
- package/dist/cjs/src-public/jwks.js +108 -0
- package/dist/cjs/src-public/pubsub.js +423 -0
- package/dist/cjs/src-public/rateLimit.js +140 -0
- package/dist/cjs/src-public/redisClient.js +44 -0
- package/dist/cjs/src-public/runtime.js +135 -0
- package/dist/cjs/src-public/sanitize.js +25 -0
- package/dist/cjs/src-public/scheduler.js +247 -0
- package/dist/cjs/src-public/secret.js +16 -0
- package/dist/cjs/src-public/setHeaders.js +16 -0
- package/dist/cjs/src-public/types.js +2 -0
- package/dist/cjs/src-public/utils.js +454 -0
- package/dist/cjs/src-public/validate.js +40 -0
- package/dist/package.json +6 -3
- package/dist/types/dist-dereferenced/asset.d.ts +51 -0
- package/dist/types/dist-dereferenced/category.d.ts +58 -0
- package/dist/types/dist-dereferenced/country.d.ts +8 -0
- package/dist/types/dist-dereferenced/currency.d.ts +8 -0
- package/dist/types/dist-dereferenced/customer-segment.d.ts +26 -0
- package/dist/types/dist-dereferenced/development-colour.d.ts +114 -0
- package/dist/types/dist-dereferenced/index.d.ts +16 -0
- package/dist/types/dist-dereferenced/marketing-preferences.d.ts +31 -0
- package/dist/types/dist-dereferenced/messages/ean-change.d.ts +17 -0
- package/dist/types/dist-dereferenced/messages/index.d.ts +6 -0
- package/dist/types/dist-dereferenced/messages/order/delivered.d.ts +3414 -0
- package/dist/types/dist-dereferenced/messages/order/index.d.ts +6 -0
- package/dist/types/dist-dereferenced/messages/order/new.d.ts +3414 -0
- package/dist/types/dist-dereferenced/messages/order/processed.d.ts +3408 -0
- package/dist/types/dist-dereferenced/messages/order/return-initiated.d.ts +3414 -0
- package/dist/types/dist-dereferenced/messages/order/returned.d.ts +3413 -0
- package/dist/types/dist-dereferenced/messages/order/shipped.d.ts +3412 -0
- package/dist/types/dist-dereferenced/messages/price-change.d.ts +67 -0
- package/dist/types/dist-dereferenced/messages/product-category.d.ts +33 -0
- package/dist/types/dist-dereferenced/messages/product-draft.d.ts +589 -0
- package/dist/types/dist-dereferenced/messages/product.d.ts +628 -0
- package/dist/types/dist-dereferenced/money.d.ts +41 -0
- package/dist/types/dist-dereferenced/order/address.d.ts +98 -0
- package/dist/types/dist-dereferenced/order/customer.d.ts +309 -0
- package/dist/types/dist-dereferenced/order/index.d.ts +3404 -0
- package/dist/types/dist-dereferenced/order/item.d.ts +336 -0
- package/dist/types/dist-dereferenced/order/orderMain.d.ts +3399 -0
- package/dist/types/dist-dereferenced/order/payment.d.ts +94 -0
- package/dist/types/dist-dereferenced/order/shipment/index.d.ts +253 -0
- package/dist/types/dist-dereferenced/order/shipment/item/index.d.ts +19 -0
- package/dist/types/dist-dereferenced/order/shipment/item/itemMain.d.ts +18 -0
- package/dist/types/dist-dereferenced/order/shipment/item/returned.d.ts +34 -0
- package/dist/types/dist-dereferenced/order/shipment/pos/index.d.ts +282 -0
- package/dist/types/dist-dereferenced/order/shipment/pos/outbound.d.ts +320 -0
- package/dist/types/dist-dereferenced/order/shipment/pos/posMain.d.ts +280 -0
- package/dist/types/dist-dereferenced/order/shipment/pos/return.d.ts +331 -0
- package/dist/types/dist-dereferenced/order/shipment/shipmentMain.d.ts +250 -0
- package/dist/types/dist-dereferenced/order/shipment/shipped/index.d.ts +288 -0
- package/dist/types/dist-dereferenced/order/shipment/shipped/outbound.d.ts +286 -0
- package/dist/types/dist-dereferenced/order/shipment/shipped/return.d.ts +287 -0
- package/dist/types/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +286 -0
- package/dist/types/dist-dereferenced/price.d.ts +58 -0
- package/dist/types/dist-dereferenced/product-category.d.ts +24 -0
- package/dist/types/dist-dereferenced/product-draft.d.ts +580 -0
- package/dist/types/dist-dereferenced/product.d.ts +619 -0
- package/dist/types/dist-dereferenced/stock.d.ts +74 -0
- package/dist/types/dist-dereferenced/total.d.ts +172 -0
- package/dist/types/dist-types/asset.d.ts +16 -0
- package/dist/types/dist-types/category.d.ts +20 -0
- package/dist/types/dist-types/country.d.ts +2 -0
- package/dist/types/dist-types/currency.d.ts +2 -0
- package/dist/types/dist-types/customer-segment.d.ts +6 -0
- package/dist/types/dist-types/development-colour.d.ts +31 -0
- package/dist/types/dist-types/index.d.ts +16 -0
- package/dist/types/dist-types/marketing-preferences.d.ts +9 -0
- package/dist/types/dist-types/messages/ean-change.d.ts +5 -0
- package/dist/types/dist-types/messages/index.d.ts +6 -0
- package/dist/types/dist-types/messages/order/delivered.d.ts +292 -0
- package/dist/types/dist-types/messages/order/index.d.ts +6 -0
- package/dist/types/dist-types/messages/order/new.d.ts +292 -0
- package/dist/types/dist-types/messages/order/processed.d.ts +292 -0
- package/dist/types/dist-types/messages/order/return-initiated.d.ts +292 -0
- package/dist/types/dist-types/messages/order/returned.d.ts +293 -0
- package/dist/types/dist-types/messages/order/shipped.d.ts +293 -0
- package/dist/types/dist-types/messages/price-change.d.ts +16 -0
- package/dist/types/dist-types/messages/product-category.d.ts +7 -0
- package/dist/types/dist-types/messages/product-draft.d.ts +136 -0
- package/dist/types/dist-types/messages/product.d.ts +144 -0
- package/dist/types/dist-types/money.d.ts +11 -0
- package/dist/types/dist-types/order/address.d.ts +27 -0
- package/dist/types/dist-types/order/customer.d.ts +81 -0
- package/dist/types/dist-types/order/index.d.ts +8 -0
- package/dist/types/dist-types/order/item.d.ts +85 -0
- package/dist/types/dist-types/order/orderMain.d.ts +289 -0
- package/dist/types/dist-types/order/payment.d.ts +26 -0
- package/dist/types/dist-types/order/shipment/index.d.ts +6 -0
- package/dist/types/dist-types/order/shipment/item/index.d.ts +4 -0
- package/dist/types/dist-types/order/shipment/item/itemMain.d.ts +6 -0
- package/dist/types/dist-types/order/shipment/item/returned.d.ts +11 -0
- package/dist/types/dist-types/order/shipment/pos/index.d.ts +5 -0
- package/dist/types/dist-types/order/shipment/pos/outbound.d.ts +76 -0
- package/dist/types/dist-types/order/shipment/pos/posMain.d.ts +71 -0
- package/dist/types/dist-types/order/shipment/pos/return.d.ts +75 -0
- package/dist/types/dist-types/order/shipment/shipmentMain.d.ts +62 -0
- package/dist/types/dist-types/order/shipment/shipped/index.d.ts +5 -0
- package/dist/types/dist-types/order/shipment/shipped/outbound.d.ts +68 -0
- package/dist/types/dist-types/order/shipment/shipped/return.d.ts +68 -0
- package/dist/types/dist-types/order/shipment/shipped/shippedMain.d.ts +69 -0
- package/dist/types/dist-types/price.d.ts +15 -0
- package/dist/types/dist-types/product-category.d.ts +6 -0
- package/dist/types/dist-types/product-draft.d.ts +135 -0
- package/dist/types/dist-types/product.d.ts +143 -0
- package/dist/types/dist-types/stock.d.ts +19 -0
- package/dist/types/dist-types/total.d.ts +44 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/src-public/airtable.d.ts +220 -0
- package/dist/types/src-public/bigquery.d.ts +17 -0
- package/dist/types/src-public/cloudtasks.d.ts +74 -0
- package/dist/types/src-public/dato.d.ts +61 -0
- package/dist/types/src-public/env.d.ts +144 -0
- package/dist/types/src-public/getEventTime.d.ts +1 -0
- package/dist/types/src-public/index.d.ts +16 -0
- package/dist/types/src-public/ipValidation.d.ts +15 -0
- package/dist/types/src-public/jwks.d.ts +15 -0
- package/dist/types/src-public/pubsub.d.ts +95 -0
- package/dist/types/src-public/rateLimit.d.ts +21 -0
- package/dist/types/src-public/redisClient.d.ts +6 -0
- package/dist/types/src-public/runtime.d.ts +56 -0
- package/dist/types/src-public/sanitize.d.ts +4 -0
- package/dist/types/src-public/scheduler.d.ts +71 -0
- package/dist/types/src-public/secret.d.ts +6 -0
- package/dist/types/src-public/setHeaders.d.ts +13 -0
- package/dist/types/src-public/types.d.ts +264 -0
- package/dist/types/src-public/utils.d.ts +101 -0
- package/dist/types/src-public/validate.d.ts +9 -0
- package/package.json +7 -4
- package/dist/index.d.ts +0 -34970
- package/dist/index.js +0 -112969
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
export type __MainSchema = (Order & {
|
|
2
|
+
status?: ("SHIPPED" | "PARTIALLY-SHIPPED" | "RETURNED" | "PARTIALLY-RETURNED" | "CANCELLED");
|
|
3
|
+
});
|
|
4
|
+
export type Currency = ("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");
|
|
5
|
+
export type LCYCurrency = ("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");
|
|
6
|
+
export type Country = ("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");
|
|
7
|
+
export type OrderShipmentShippedOutbound = (Shipment & {
|
|
8
|
+
type?: "SHIPPED-OUTBOUND";
|
|
9
|
+
shipped_by?: ("TORQUE" | "GLOBALE");
|
|
10
|
+
items?: OrderShipmentItem[];
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
});
|
|
13
|
+
export type Shipment = (Total & {
|
|
14
|
+
erp_id?: string;
|
|
15
|
+
type?: ("SHIPPED-OUTBOUND" | "SHIPPED-RETURN" | "POS-OUTBOUND" | "POS-RETURN");
|
|
16
|
+
shipped_at?: string;
|
|
17
|
+
status?: ("PENDING" | "SHIPPED" | "RECEIVED" | "CANCELLED");
|
|
18
|
+
items?: (OrderShipmentItem | OrderShipmentItemReturned)[];
|
|
19
|
+
[k: string]: unknown;
|
|
20
|
+
});
|
|
21
|
+
export type DiscountAmountPercent = number;
|
|
22
|
+
export type OrderShipmentItemReturned = (OrderShipmentItem & {
|
|
23
|
+
returnReasonCode: string;
|
|
24
|
+
returnReason: (string | null);
|
|
25
|
+
[k: string]: unknown;
|
|
26
|
+
});
|
|
27
|
+
export type OrderShipmentShippedReturn = (Shipment & {
|
|
28
|
+
type: "SHIPPED-RETURN";
|
|
29
|
+
shipped_by: "CUSTOMER";
|
|
30
|
+
items: OrderShipmentItem[];
|
|
31
|
+
[k: string]: unknown;
|
|
32
|
+
});
|
|
33
|
+
export type OrderShipmentPOSOutbound = (OrderShipmentOutbound & {
|
|
34
|
+
type: "POS-OUTBOUND";
|
|
35
|
+
shipped_by: ("TORQUE" | "GLOBALE");
|
|
36
|
+
items: OrderShipmentItem[];
|
|
37
|
+
});
|
|
38
|
+
export type OrderShipmentOutbound = (Shipment & {
|
|
39
|
+
type?: ("POS-OUTBOUND" | "POS-RETURN");
|
|
40
|
+
status?: "RECEIVED";
|
|
41
|
+
store_id: (string | null);
|
|
42
|
+
store_name: (string | null);
|
|
43
|
+
associate_id: (string | null);
|
|
44
|
+
associate_name: (string | null);
|
|
45
|
+
[k: string]: unknown;
|
|
46
|
+
});
|
|
47
|
+
export type OrderShipmentPOSReturn = (OrderShipmentOutbound & {
|
|
48
|
+
type?: "POS-RETURN";
|
|
49
|
+
items?: OrderShipmentItemReturned[];
|
|
50
|
+
});
|
|
51
|
+
export type Item = (Total & {
|
|
52
|
+
sku: string;
|
|
53
|
+
linked_style_id?: (string | null);
|
|
54
|
+
colour_id: string;
|
|
55
|
+
style_id: string;
|
|
56
|
+
colour_name?: string;
|
|
57
|
+
size_name?: string;
|
|
58
|
+
preorder_date?: (string | null);
|
|
59
|
+
quantity: number;
|
|
60
|
+
unit_price_status: ("FD" | "MD" | "POS");
|
|
61
|
+
returned_quantity?: number;
|
|
62
|
+
unit_price_net: Money1;
|
|
63
|
+
unit_price_gross: Money2;
|
|
64
|
+
discount_code?: (string | null);
|
|
65
|
+
cost_net?: Money3;
|
|
66
|
+
[k: string]: unknown;
|
|
67
|
+
});
|
|
68
|
+
export interface Order {
|
|
69
|
+
status: ("NEW" | "PENDING" | "CONFIRMED" | "PROCESSING" | "PROCESSED" | "PACKED" | "SHIPPED" | "DELIVERED" | "PARTIALLY-SHIPPED" | "RETURNED" | "PARTIALLY-RETURNED" | "CANCELLED" | "ARCHIVED" | "FAILED");
|
|
70
|
+
erp_order_id: string;
|
|
71
|
+
centra_order_id?: (string | null);
|
|
72
|
+
sfcc_order_id?: (string | null);
|
|
73
|
+
globalee_order_id?: (string | null);
|
|
74
|
+
sitoo_order_id?: (string | null);
|
|
75
|
+
system_created_by?: ("POS" | "ECOMMERCE" | "SYSTEM");
|
|
76
|
+
ordered_at: string;
|
|
77
|
+
payments?: Payment[];
|
|
78
|
+
is_anonymous?: boolean;
|
|
79
|
+
is_gift?: boolean;
|
|
80
|
+
customer?: Customer;
|
|
81
|
+
billing_address?: (Address | null);
|
|
82
|
+
shipping_address?: (Address | null);
|
|
83
|
+
is_pos?: boolean;
|
|
84
|
+
shipments?: [
|
|
85
|
+
(OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn),
|
|
86
|
+
...((OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn))[]
|
|
87
|
+
];
|
|
88
|
+
items: [
|
|
89
|
+
Item,
|
|
90
|
+
...(Item)[]
|
|
91
|
+
];
|
|
92
|
+
total: Total1;
|
|
93
|
+
return_total?: Total2;
|
|
94
|
+
net_total?: Total3;
|
|
95
|
+
[k: string]: unknown;
|
|
96
|
+
}
|
|
97
|
+
export interface Payment {
|
|
98
|
+
type?: ("REFUND" | "CHARGE");
|
|
99
|
+
additionalProperties?: never;
|
|
100
|
+
created_at: string;
|
|
101
|
+
payment_method: ("MOTO" | "CREDIT-CARD" | "GIFT-CARD" | "PAYPAL" | "APPLE-PAY" | "OTHER");
|
|
102
|
+
transaction_id: string;
|
|
103
|
+
card_number?: (string | null);
|
|
104
|
+
journey_label: ("CHECKOUT" | "POS" | "EXPRESS" | "MOTO" | "SYSTEM");
|
|
105
|
+
psp_reference: string;
|
|
106
|
+
card_brand?: (string | null);
|
|
107
|
+
status: ("CAPTURED" | "FAILED" | "FAILED-3DS" | "CANCELLED");
|
|
108
|
+
amount: Money;
|
|
109
|
+
created_by: (("CUSTOMER" | "SYSTEM") | string);
|
|
110
|
+
[k: string]: unknown;
|
|
111
|
+
}
|
|
112
|
+
export interface Money {
|
|
113
|
+
value: number;
|
|
114
|
+
decimal_places: number;
|
|
115
|
+
currency: Currency;
|
|
116
|
+
lcy_value: number;
|
|
117
|
+
lcy_currency: LCYCurrency;
|
|
118
|
+
lcy_decimal_places: number;
|
|
119
|
+
}
|
|
120
|
+
export interface Customer {
|
|
121
|
+
first_name?: string;
|
|
122
|
+
last_name?: string;
|
|
123
|
+
sfcc_id?: string;
|
|
124
|
+
bc_customer_id?: string;
|
|
125
|
+
merged_bc_customer_ids?: string[];
|
|
126
|
+
centra_id?: string;
|
|
127
|
+
sitoo_id?: string;
|
|
128
|
+
scv_customer_id?: string;
|
|
129
|
+
addresses?: Address[];
|
|
130
|
+
default_shipping_address?: Address1;
|
|
131
|
+
email: (string | null);
|
|
132
|
+
opt_in_email?: boolean;
|
|
133
|
+
opt_in_phone?: boolean;
|
|
134
|
+
opt_in_3rdparty?: boolean;
|
|
135
|
+
segments?: string[];
|
|
136
|
+
registered_at?: string;
|
|
137
|
+
scv_first_purchase_at?: string;
|
|
138
|
+
scv_last_purchase_at?: string;
|
|
139
|
+
scv_linked_customer_ids?: string[];
|
|
140
|
+
scv_total_transactions?: number;
|
|
141
|
+
scv_total_demand?: number;
|
|
142
|
+
scv_total_demand_cost?: number;
|
|
143
|
+
scv_total_returns?: number;
|
|
144
|
+
scv_total_returns_cost?: number;
|
|
145
|
+
last_modified_by?: string;
|
|
146
|
+
is_deleted?: boolean;
|
|
147
|
+
other_bc_ids?: string[];
|
|
148
|
+
}
|
|
149
|
+
export interface Address {
|
|
150
|
+
address_id?: string;
|
|
151
|
+
sfcc_customer_id?: string;
|
|
152
|
+
sitoo_customer_id?: string;
|
|
153
|
+
bc_customer_id?: string;
|
|
154
|
+
centra_customer_id?: string;
|
|
155
|
+
is_default_billing?: boolean;
|
|
156
|
+
is_default_shipping?: boolean;
|
|
157
|
+
scv_household_id?: (string | null);
|
|
158
|
+
is_last_used_shipping?: boolean;
|
|
159
|
+
is_retrieved_from_payment_method?: boolean;
|
|
160
|
+
opt_in_mail?: boolean;
|
|
161
|
+
company_name?: string;
|
|
162
|
+
first_name: string;
|
|
163
|
+
last_name: string;
|
|
164
|
+
address1: string;
|
|
165
|
+
address2?: (string | null);
|
|
166
|
+
city: string;
|
|
167
|
+
post_code?: (string | null);
|
|
168
|
+
country_code: Country;
|
|
169
|
+
phone?: (string | null);
|
|
170
|
+
click_collect_id?: (string | null);
|
|
171
|
+
created_at?: string;
|
|
172
|
+
last_modified_at?: string;
|
|
173
|
+
}
|
|
174
|
+
export interface Address1 {
|
|
175
|
+
address_id?: string;
|
|
176
|
+
sfcc_customer_id?: string;
|
|
177
|
+
sitoo_customer_id?: string;
|
|
178
|
+
bc_customer_id?: string;
|
|
179
|
+
centra_customer_id?: string;
|
|
180
|
+
is_default_billing?: boolean;
|
|
181
|
+
is_default_shipping?: boolean;
|
|
182
|
+
scv_household_id?: (string | null);
|
|
183
|
+
is_last_used_shipping?: boolean;
|
|
184
|
+
is_retrieved_from_payment_method?: boolean;
|
|
185
|
+
opt_in_mail?: boolean;
|
|
186
|
+
company_name?: string;
|
|
187
|
+
first_name: string;
|
|
188
|
+
last_name: string;
|
|
189
|
+
address1: string;
|
|
190
|
+
address2?: (string | null);
|
|
191
|
+
city: string;
|
|
192
|
+
post_code?: (string | null);
|
|
193
|
+
country_code: Country;
|
|
194
|
+
phone?: (string | null);
|
|
195
|
+
click_collect_id?: (string | null);
|
|
196
|
+
created_at?: string;
|
|
197
|
+
last_modified_at?: string;
|
|
198
|
+
}
|
|
199
|
+
export interface Total {
|
|
200
|
+
amount_net: AmountNet;
|
|
201
|
+
amount_gross: AmountGross;
|
|
202
|
+
discount_amount_net: DiscountAmountNet;
|
|
203
|
+
discount_amount_gross: DiscountAmountGross;
|
|
204
|
+
discount_amount_percent: DiscountAmountPercent;
|
|
205
|
+
[k: string]: unknown;
|
|
206
|
+
}
|
|
207
|
+
export interface AmountNet {
|
|
208
|
+
value: number;
|
|
209
|
+
decimal_places: number;
|
|
210
|
+
currency: Currency;
|
|
211
|
+
lcy_value: number;
|
|
212
|
+
lcy_currency: LCYCurrency;
|
|
213
|
+
lcy_decimal_places: number;
|
|
214
|
+
}
|
|
215
|
+
export interface AmountGross {
|
|
216
|
+
value: number;
|
|
217
|
+
decimal_places: number;
|
|
218
|
+
currency: Currency;
|
|
219
|
+
lcy_value: number;
|
|
220
|
+
lcy_currency: LCYCurrency;
|
|
221
|
+
lcy_decimal_places: number;
|
|
222
|
+
}
|
|
223
|
+
export interface DiscountAmountNet {
|
|
224
|
+
value: number;
|
|
225
|
+
decimal_places: number;
|
|
226
|
+
currency: Currency;
|
|
227
|
+
lcy_value: number;
|
|
228
|
+
lcy_currency: LCYCurrency;
|
|
229
|
+
lcy_decimal_places: number;
|
|
230
|
+
}
|
|
231
|
+
export interface DiscountAmountGross {
|
|
232
|
+
value: number;
|
|
233
|
+
decimal_places: number;
|
|
234
|
+
currency: Currency;
|
|
235
|
+
lcy_value: number;
|
|
236
|
+
lcy_currency: LCYCurrency;
|
|
237
|
+
lcy_decimal_places: number;
|
|
238
|
+
}
|
|
239
|
+
export interface OrderShipmentItem {
|
|
240
|
+
lineNumber: number;
|
|
241
|
+
quantity: number;
|
|
242
|
+
[k: string]: unknown;
|
|
243
|
+
}
|
|
244
|
+
export interface Money1 {
|
|
245
|
+
value: number;
|
|
246
|
+
decimal_places: number;
|
|
247
|
+
currency: Currency;
|
|
248
|
+
lcy_value: number;
|
|
249
|
+
lcy_currency: LCYCurrency;
|
|
250
|
+
lcy_decimal_places: number;
|
|
251
|
+
}
|
|
252
|
+
export interface Money2 {
|
|
253
|
+
value: number;
|
|
254
|
+
decimal_places: number;
|
|
255
|
+
currency: Currency;
|
|
256
|
+
lcy_value: number;
|
|
257
|
+
lcy_currency: LCYCurrency;
|
|
258
|
+
lcy_decimal_places: number;
|
|
259
|
+
}
|
|
260
|
+
export interface Money3 {
|
|
261
|
+
value: number;
|
|
262
|
+
decimal_places: number;
|
|
263
|
+
currency: Currency;
|
|
264
|
+
lcy_value: number;
|
|
265
|
+
lcy_currency: LCYCurrency;
|
|
266
|
+
lcy_decimal_places: number;
|
|
267
|
+
}
|
|
268
|
+
export interface Total1 {
|
|
269
|
+
amount_net: AmountNet;
|
|
270
|
+
amount_gross: AmountGross;
|
|
271
|
+
discount_amount_net: DiscountAmountNet;
|
|
272
|
+
discount_amount_gross: DiscountAmountGross;
|
|
273
|
+
discount_amount_percent: DiscountAmountPercent;
|
|
274
|
+
[k: string]: unknown;
|
|
275
|
+
}
|
|
276
|
+
export interface Total2 {
|
|
277
|
+
amount_net: AmountNet;
|
|
278
|
+
amount_gross: AmountGross;
|
|
279
|
+
discount_amount_net: DiscountAmountNet;
|
|
280
|
+
discount_amount_gross: DiscountAmountGross;
|
|
281
|
+
discount_amount_percent: DiscountAmountPercent;
|
|
282
|
+
[k: string]: unknown;
|
|
283
|
+
}
|
|
284
|
+
export interface Total3 {
|
|
285
|
+
amount_net: AmountNet;
|
|
286
|
+
amount_gross: AmountGross;
|
|
287
|
+
discount_amount_net: DiscountAmountNet;
|
|
288
|
+
discount_amount_gross: DiscountAmountGross;
|
|
289
|
+
discount_amount_percent: DiscountAmountPercent;
|
|
290
|
+
[k: string]: unknown;
|
|
291
|
+
}
|
|
292
|
+
export default __MainSchema;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as Delivered } from './delivered';
|
|
2
|
+
export { default as New } from './new';
|
|
3
|
+
export { default as Processed } from './processed';
|
|
4
|
+
export { default as ReturnInitiated } from './return-initiated';
|
|
5
|
+
export { default as Returned } from './returned';
|
|
6
|
+
export { default as Shipped } from './shipped';
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
export type __MainSchema = (Order & {
|
|
2
|
+
status?: ("NEW" | "PENDING");
|
|
3
|
+
});
|
|
4
|
+
export type Currency = ("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");
|
|
5
|
+
export type LCYCurrency = ("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");
|
|
6
|
+
export type Country = ("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");
|
|
7
|
+
export type OrderShipmentShippedOutbound = (Shipment & {
|
|
8
|
+
type?: "SHIPPED-OUTBOUND";
|
|
9
|
+
shipped_by?: ("TORQUE" | "GLOBALE");
|
|
10
|
+
items?: OrderShipmentItem[];
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
});
|
|
13
|
+
export type Shipment = (Total & {
|
|
14
|
+
erp_id?: string;
|
|
15
|
+
type?: ("SHIPPED-OUTBOUND" | "SHIPPED-RETURN" | "POS-OUTBOUND" | "POS-RETURN");
|
|
16
|
+
shipped_at?: string;
|
|
17
|
+
status?: ("PENDING" | "SHIPPED" | "RECEIVED" | "CANCELLED");
|
|
18
|
+
items?: (OrderShipmentItem | OrderShipmentItemReturned)[];
|
|
19
|
+
[k: string]: unknown;
|
|
20
|
+
});
|
|
21
|
+
export type DiscountAmountPercent = number;
|
|
22
|
+
export type OrderShipmentItemReturned = (OrderShipmentItem & {
|
|
23
|
+
returnReasonCode: string;
|
|
24
|
+
returnReason: (string | null);
|
|
25
|
+
[k: string]: unknown;
|
|
26
|
+
});
|
|
27
|
+
export type OrderShipmentShippedReturn = (Shipment & {
|
|
28
|
+
type: "SHIPPED-RETURN";
|
|
29
|
+
shipped_by: "CUSTOMER";
|
|
30
|
+
items: OrderShipmentItem[];
|
|
31
|
+
[k: string]: unknown;
|
|
32
|
+
});
|
|
33
|
+
export type OrderShipmentPOSOutbound = (OrderShipmentOutbound & {
|
|
34
|
+
type: "POS-OUTBOUND";
|
|
35
|
+
shipped_by: ("TORQUE" | "GLOBALE");
|
|
36
|
+
items: OrderShipmentItem[];
|
|
37
|
+
});
|
|
38
|
+
export type OrderShipmentOutbound = (Shipment & {
|
|
39
|
+
type?: ("POS-OUTBOUND" | "POS-RETURN");
|
|
40
|
+
status?: "RECEIVED";
|
|
41
|
+
store_id: (string | null);
|
|
42
|
+
store_name: (string | null);
|
|
43
|
+
associate_id: (string | null);
|
|
44
|
+
associate_name: (string | null);
|
|
45
|
+
[k: string]: unknown;
|
|
46
|
+
});
|
|
47
|
+
export type OrderShipmentPOSReturn = (OrderShipmentOutbound & {
|
|
48
|
+
type?: "POS-RETURN";
|
|
49
|
+
items?: OrderShipmentItemReturned[];
|
|
50
|
+
});
|
|
51
|
+
export type Item = (Total & {
|
|
52
|
+
sku: string;
|
|
53
|
+
linked_style_id?: (string | null);
|
|
54
|
+
colour_id: string;
|
|
55
|
+
style_id: string;
|
|
56
|
+
colour_name?: string;
|
|
57
|
+
size_name?: string;
|
|
58
|
+
preorder_date?: (string | null);
|
|
59
|
+
quantity: number;
|
|
60
|
+
unit_price_status: ("FD" | "MD" | "POS");
|
|
61
|
+
returned_quantity?: number;
|
|
62
|
+
unit_price_net: Money1;
|
|
63
|
+
unit_price_gross: Money2;
|
|
64
|
+
discount_code?: (string | null);
|
|
65
|
+
cost_net?: Money3;
|
|
66
|
+
[k: string]: unknown;
|
|
67
|
+
});
|
|
68
|
+
export interface Order {
|
|
69
|
+
status: ("NEW" | "PENDING" | "CONFIRMED" | "PROCESSING" | "PROCESSED" | "PACKED" | "SHIPPED" | "DELIVERED" | "PARTIALLY-SHIPPED" | "RETURNED" | "PARTIALLY-RETURNED" | "CANCELLED" | "ARCHIVED" | "FAILED");
|
|
70
|
+
erp_order_id: string;
|
|
71
|
+
centra_order_id?: (string | null);
|
|
72
|
+
sfcc_order_id?: (string | null);
|
|
73
|
+
globalee_order_id?: (string | null);
|
|
74
|
+
sitoo_order_id?: (string | null);
|
|
75
|
+
system_created_by?: ("POS" | "ECOMMERCE" | "SYSTEM");
|
|
76
|
+
ordered_at: string;
|
|
77
|
+
payments?: Payment[];
|
|
78
|
+
is_anonymous?: boolean;
|
|
79
|
+
is_gift?: boolean;
|
|
80
|
+
customer?: Customer;
|
|
81
|
+
billing_address?: (Address | null);
|
|
82
|
+
shipping_address?: (Address | null);
|
|
83
|
+
is_pos?: boolean;
|
|
84
|
+
shipments?: [
|
|
85
|
+
(OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn),
|
|
86
|
+
...((OrderShipmentShippedOutbound | OrderShipmentShippedReturn | OrderShipmentPOSOutbound | OrderShipmentPOSReturn))[]
|
|
87
|
+
];
|
|
88
|
+
items: [
|
|
89
|
+
Item,
|
|
90
|
+
...(Item)[]
|
|
91
|
+
];
|
|
92
|
+
total: Total1;
|
|
93
|
+
return_total?: Total2;
|
|
94
|
+
net_total?: Total3;
|
|
95
|
+
[k: string]: unknown;
|
|
96
|
+
}
|
|
97
|
+
export interface Payment {
|
|
98
|
+
type?: ("REFUND" | "CHARGE");
|
|
99
|
+
additionalProperties?: never;
|
|
100
|
+
created_at: string;
|
|
101
|
+
payment_method: ("MOTO" | "CREDIT-CARD" | "GIFT-CARD" | "PAYPAL" | "APPLE-PAY" | "OTHER");
|
|
102
|
+
transaction_id: string;
|
|
103
|
+
card_number?: (string | null);
|
|
104
|
+
journey_label: ("CHECKOUT" | "POS" | "EXPRESS" | "MOTO" | "SYSTEM");
|
|
105
|
+
psp_reference: string;
|
|
106
|
+
card_brand?: (string | null);
|
|
107
|
+
status: ("CAPTURED" | "FAILED" | "FAILED-3DS" | "CANCELLED");
|
|
108
|
+
amount: Money;
|
|
109
|
+
created_by: (("CUSTOMER" | "SYSTEM") | string);
|
|
110
|
+
[k: string]: unknown;
|
|
111
|
+
}
|
|
112
|
+
export interface Money {
|
|
113
|
+
value: number;
|
|
114
|
+
decimal_places: number;
|
|
115
|
+
currency: Currency;
|
|
116
|
+
lcy_value: number;
|
|
117
|
+
lcy_currency: LCYCurrency;
|
|
118
|
+
lcy_decimal_places: number;
|
|
119
|
+
}
|
|
120
|
+
export interface Customer {
|
|
121
|
+
first_name?: string;
|
|
122
|
+
last_name?: string;
|
|
123
|
+
sfcc_id?: string;
|
|
124
|
+
bc_customer_id?: string;
|
|
125
|
+
merged_bc_customer_ids?: string[];
|
|
126
|
+
centra_id?: string;
|
|
127
|
+
sitoo_id?: string;
|
|
128
|
+
scv_customer_id?: string;
|
|
129
|
+
addresses?: Address[];
|
|
130
|
+
default_shipping_address?: Address1;
|
|
131
|
+
email: (string | null);
|
|
132
|
+
opt_in_email?: boolean;
|
|
133
|
+
opt_in_phone?: boolean;
|
|
134
|
+
opt_in_3rdparty?: boolean;
|
|
135
|
+
segments?: string[];
|
|
136
|
+
registered_at?: string;
|
|
137
|
+
scv_first_purchase_at?: string;
|
|
138
|
+
scv_last_purchase_at?: string;
|
|
139
|
+
scv_linked_customer_ids?: string[];
|
|
140
|
+
scv_total_transactions?: number;
|
|
141
|
+
scv_total_demand?: number;
|
|
142
|
+
scv_total_demand_cost?: number;
|
|
143
|
+
scv_total_returns?: number;
|
|
144
|
+
scv_total_returns_cost?: number;
|
|
145
|
+
last_modified_by?: string;
|
|
146
|
+
is_deleted?: boolean;
|
|
147
|
+
other_bc_ids?: string[];
|
|
148
|
+
}
|
|
149
|
+
export interface Address {
|
|
150
|
+
address_id?: string;
|
|
151
|
+
sfcc_customer_id?: string;
|
|
152
|
+
sitoo_customer_id?: string;
|
|
153
|
+
bc_customer_id?: string;
|
|
154
|
+
centra_customer_id?: string;
|
|
155
|
+
is_default_billing?: boolean;
|
|
156
|
+
is_default_shipping?: boolean;
|
|
157
|
+
scv_household_id?: (string | null);
|
|
158
|
+
is_last_used_shipping?: boolean;
|
|
159
|
+
is_retrieved_from_payment_method?: boolean;
|
|
160
|
+
opt_in_mail?: boolean;
|
|
161
|
+
company_name?: string;
|
|
162
|
+
first_name: string;
|
|
163
|
+
last_name: string;
|
|
164
|
+
address1: string;
|
|
165
|
+
address2?: (string | null);
|
|
166
|
+
city: string;
|
|
167
|
+
post_code?: (string | null);
|
|
168
|
+
country_code: Country;
|
|
169
|
+
phone?: (string | null);
|
|
170
|
+
click_collect_id?: (string | null);
|
|
171
|
+
created_at?: string;
|
|
172
|
+
last_modified_at?: string;
|
|
173
|
+
}
|
|
174
|
+
export interface Address1 {
|
|
175
|
+
address_id?: string;
|
|
176
|
+
sfcc_customer_id?: string;
|
|
177
|
+
sitoo_customer_id?: string;
|
|
178
|
+
bc_customer_id?: string;
|
|
179
|
+
centra_customer_id?: string;
|
|
180
|
+
is_default_billing?: boolean;
|
|
181
|
+
is_default_shipping?: boolean;
|
|
182
|
+
scv_household_id?: (string | null);
|
|
183
|
+
is_last_used_shipping?: boolean;
|
|
184
|
+
is_retrieved_from_payment_method?: boolean;
|
|
185
|
+
opt_in_mail?: boolean;
|
|
186
|
+
company_name?: string;
|
|
187
|
+
first_name: string;
|
|
188
|
+
last_name: string;
|
|
189
|
+
address1: string;
|
|
190
|
+
address2?: (string | null);
|
|
191
|
+
city: string;
|
|
192
|
+
post_code?: (string | null);
|
|
193
|
+
country_code: Country;
|
|
194
|
+
phone?: (string | null);
|
|
195
|
+
click_collect_id?: (string | null);
|
|
196
|
+
created_at?: string;
|
|
197
|
+
last_modified_at?: string;
|
|
198
|
+
}
|
|
199
|
+
export interface Total {
|
|
200
|
+
amount_net: AmountNet;
|
|
201
|
+
amount_gross: AmountGross;
|
|
202
|
+
discount_amount_net: DiscountAmountNet;
|
|
203
|
+
discount_amount_gross: DiscountAmountGross;
|
|
204
|
+
discount_amount_percent: DiscountAmountPercent;
|
|
205
|
+
[k: string]: unknown;
|
|
206
|
+
}
|
|
207
|
+
export interface AmountNet {
|
|
208
|
+
value: number;
|
|
209
|
+
decimal_places: number;
|
|
210
|
+
currency: Currency;
|
|
211
|
+
lcy_value: number;
|
|
212
|
+
lcy_currency: LCYCurrency;
|
|
213
|
+
lcy_decimal_places: number;
|
|
214
|
+
}
|
|
215
|
+
export interface AmountGross {
|
|
216
|
+
value: number;
|
|
217
|
+
decimal_places: number;
|
|
218
|
+
currency: Currency;
|
|
219
|
+
lcy_value: number;
|
|
220
|
+
lcy_currency: LCYCurrency;
|
|
221
|
+
lcy_decimal_places: number;
|
|
222
|
+
}
|
|
223
|
+
export interface DiscountAmountNet {
|
|
224
|
+
value: number;
|
|
225
|
+
decimal_places: number;
|
|
226
|
+
currency: Currency;
|
|
227
|
+
lcy_value: number;
|
|
228
|
+
lcy_currency: LCYCurrency;
|
|
229
|
+
lcy_decimal_places: number;
|
|
230
|
+
}
|
|
231
|
+
export interface DiscountAmountGross {
|
|
232
|
+
value: number;
|
|
233
|
+
decimal_places: number;
|
|
234
|
+
currency: Currency;
|
|
235
|
+
lcy_value: number;
|
|
236
|
+
lcy_currency: LCYCurrency;
|
|
237
|
+
lcy_decimal_places: number;
|
|
238
|
+
}
|
|
239
|
+
export interface OrderShipmentItem {
|
|
240
|
+
lineNumber: number;
|
|
241
|
+
quantity: number;
|
|
242
|
+
[k: string]: unknown;
|
|
243
|
+
}
|
|
244
|
+
export interface Money1 {
|
|
245
|
+
value: number;
|
|
246
|
+
decimal_places: number;
|
|
247
|
+
currency: Currency;
|
|
248
|
+
lcy_value: number;
|
|
249
|
+
lcy_currency: LCYCurrency;
|
|
250
|
+
lcy_decimal_places: number;
|
|
251
|
+
}
|
|
252
|
+
export interface Money2 {
|
|
253
|
+
value: number;
|
|
254
|
+
decimal_places: number;
|
|
255
|
+
currency: Currency;
|
|
256
|
+
lcy_value: number;
|
|
257
|
+
lcy_currency: LCYCurrency;
|
|
258
|
+
lcy_decimal_places: number;
|
|
259
|
+
}
|
|
260
|
+
export interface Money3 {
|
|
261
|
+
value: number;
|
|
262
|
+
decimal_places: number;
|
|
263
|
+
currency: Currency;
|
|
264
|
+
lcy_value: number;
|
|
265
|
+
lcy_currency: LCYCurrency;
|
|
266
|
+
lcy_decimal_places: number;
|
|
267
|
+
}
|
|
268
|
+
export interface Total1 {
|
|
269
|
+
amount_net: AmountNet;
|
|
270
|
+
amount_gross: AmountGross;
|
|
271
|
+
discount_amount_net: DiscountAmountNet;
|
|
272
|
+
discount_amount_gross: DiscountAmountGross;
|
|
273
|
+
discount_amount_percent: DiscountAmountPercent;
|
|
274
|
+
[k: string]: unknown;
|
|
275
|
+
}
|
|
276
|
+
export interface Total2 {
|
|
277
|
+
amount_net: AmountNet;
|
|
278
|
+
amount_gross: AmountGross;
|
|
279
|
+
discount_amount_net: DiscountAmountNet;
|
|
280
|
+
discount_amount_gross: DiscountAmountGross;
|
|
281
|
+
discount_amount_percent: DiscountAmountPercent;
|
|
282
|
+
[k: string]: unknown;
|
|
283
|
+
}
|
|
284
|
+
export interface Total3 {
|
|
285
|
+
amount_net: AmountNet;
|
|
286
|
+
amount_gross: AmountGross;
|
|
287
|
+
discount_amount_net: DiscountAmountNet;
|
|
288
|
+
discount_amount_gross: DiscountAmountGross;
|
|
289
|
+
discount_amount_percent: DiscountAmountPercent;
|
|
290
|
+
[k: string]: unknown;
|
|
291
|
+
}
|
|
292
|
+
export default __MainSchema;
|