arky-sdk 0.3.113 → 0.3.114
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.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{svg-4hIdMU6f.d.ts → svg-ByOFlX-F.d.ts} +1 -0
- package/dist/{svg-3F_m7296.d.cts → svg-DaEaIf5S.d.cts} +1 -0
- package/dist/types.cjs +30 -0
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +88 -5
- package/dist/types.d.ts +88 -5
- package/dist/types.js +29 -1
- package/dist/types.js.map +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
package/dist/types.cjs
CHANGED
|
@@ -7,7 +7,37 @@ var PaymentMethodType = /* @__PURE__ */ ((PaymentMethodType2) => {
|
|
|
7
7
|
PaymentMethodType2["Free"] = "FREE";
|
|
8
8
|
return PaymentMethodType2;
|
|
9
9
|
})(PaymentMethodType || {});
|
|
10
|
+
var CollectionEntryType = /* @__PURE__ */ ((CollectionEntryType2) => {
|
|
11
|
+
CollectionEntryType2["CONTENT"] = "CONTENT";
|
|
12
|
+
CollectionEntryType2["SERVICE_CATEGORY"] = "SERVICE_CATEGORY";
|
|
13
|
+
CollectionEntryType2["PROVIDER_CATEGORY"] = "PROVIDER_CATEGORY";
|
|
14
|
+
CollectionEntryType2["PRODUCT_CATEGORY"] = "PRODUCT_CATEGORY";
|
|
15
|
+
CollectionEntryType2["EMAIL_FORGOT_PASSWORD"] = "EMAIL_FORGOT_PASSWORD";
|
|
16
|
+
CollectionEntryType2["EMAIL_USER_CONFIRM"] = "EMAIL_USER_CONFIRM";
|
|
17
|
+
CollectionEntryType2["EMAIL_USER_INVITATION"] = "EMAIL_USER_INVITATION";
|
|
18
|
+
CollectionEntryType2["EMAIL_ORDER_STATUS_UPDATE"] = "EMAIL_ORDER_STATUS_UPDATE";
|
|
19
|
+
CollectionEntryType2["EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE"] = "EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE";
|
|
20
|
+
CollectionEntryType2["EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE"] = "EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE";
|
|
21
|
+
CollectionEntryType2["NEWSLETTER_POST"] = "NEWSLETTER_POST";
|
|
22
|
+
CollectionEntryType2["NEWSLETTER_ENTRY"] = "NEWSLETTER_ENTRY";
|
|
23
|
+
return CollectionEntryType2;
|
|
24
|
+
})(CollectionEntryType || {});
|
|
25
|
+
var CollectionType = /* @__PURE__ */ ((CollectionType2) => {
|
|
26
|
+
CollectionType2["SINGLE"] = "SINGLE";
|
|
27
|
+
CollectionType2["CONTENT"] = "CONTENT";
|
|
28
|
+
CollectionType2["EMAIL_TEMPLATES"] = "EMAIL_TEMPLATES";
|
|
29
|
+
CollectionType2["SERVICE_CATEGORIES"] = "SERVICE_CATEGORIES";
|
|
30
|
+
CollectionType2["PROVIDER_CATEGORIES"] = "PROVIDER_CATEGORIES";
|
|
31
|
+
CollectionType2["PRODUCT_CATEGORIES"] = "PRODUCT_CATEGORIES";
|
|
32
|
+
CollectionType2["NEWSLETTER"] = "NEWSLETTER";
|
|
33
|
+
CollectionType2["NEWSLETTER_SEGMENTS"] = "NEWSLETTER_SEGMENTS";
|
|
34
|
+
CollectionType2["SERVICE"] = "SERVICE";
|
|
35
|
+
CollectionType2["PRODUCT"] = "PRODUCT";
|
|
36
|
+
return CollectionType2;
|
|
37
|
+
})(CollectionType || {});
|
|
10
38
|
|
|
39
|
+
exports.CollectionEntryType = CollectionEntryType;
|
|
40
|
+
exports.CollectionType = CollectionType;
|
|
11
41
|
exports.PaymentMethodType = PaymentMethodType;
|
|
12
42
|
//# sourceMappingURL=types.cjs.map
|
|
13
43
|
//# sourceMappingURL=types.cjs.map
|
package/dist/types.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/index.ts"],"names":["PaymentMethodType"],"mappings":";;;AA4CO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AACN,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AACP,EAAAA,mBAAA,YAAA,CAAA,GAAa,aAAA;AACb,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AAHI,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA","file":"types.cjs","sourcesContent":["export * from './api';\n\nexport interface PaymentRefund {\n\tid: string;\n\tentity: string;\n\ttotal: number;\n\tproviderRefundId?: string;\n\tstatus: string;\n\tcreatedAt: number;\n}\n\nexport interface Payment {\n\tcurrency: string;\n\tmarket: string;\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttotal: number;\n\tpaid: number;\n\ttax?: {\n\t\tamount: number;\n\t\tmodeSnapshot?: string;\n\t\trateBps: number;\n\t\tlines: Array<{ rateBps: number; amount: number; label?: string; scope?: string }>;\n\t};\n\tpromoCode?: {\n\t\tid: string;\n\t\tcode: string;\n\t\ttype: string;\n\t\tvalue: number;\n\t};\n\ttype: PaymentMethodType;\n\tprovider?: {\n\t\tcustomerId: string;\n\t\tpaymentIntentId?: string;\n\t\tsubscriptionId?: string;\n\t\tpriceId?: string;\n\t};\n\trefunds: PaymentRefund[];\n\tzoneId?: string;\n\tpaymentMethodId?: string;\n\tshippingMethodId?: string;\n}\n\nexport enum PaymentMethodType {\n\tCash = \"CASH\",\n\tCreditCard = \"CREDIT_CARD\",\n\tFree = \"FREE\",\n}\n\nexport interface PromoCodeValidation {\n\tpromoCodeId: string;\n\tcode: string;\n\tdiscounts: any[];\n\tconditions: any[];\n}\n\nexport interface Quote {\n\tmarket: string;\n\tzone: Zone;\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tshippingMethod: ShippingMethod | null;\n\tpaymentMethod: PaymentMethod | null;\n\tpromoCode: PromoCodeValidation | null;\n\tpayment: Payment;\n\tchargeAmount: number;\n\tid?: string;\n\texpiresAt?: number;\n}\n\n\nexport interface Price {\n\tmarket: string;\n\tamount: number;\n\tcompareAt?: number;\n}\n\nexport interface Location {\n\tcountry?: string | null;\n\taddress?: string | null;\n\tcity?: string | null;\n\tstate?: string | null;\n\tpostalCode?: string | null;\n\tcoordinates?: { lat: number; lon: number } | null;\n}\n\nexport interface EshopCartItem {\n\tid: string;\n\tproductId: string;\n\tvariantId: string;\n\tproductName: string;\n\tproductSlug: string;\n\tvariantAttributes: Record<string, any>;\n\tprice: Price;\n\tquantity: number;\n\taddedAt: number;\n}\n\nexport interface ReservationCartItem {\n\tid: string;\n\tserviceId: string;\n\tserviceName: string;\n\tdate: string;\n\tfrom: number;\n\tto: number;\n\ttimeText: string;\n\tproviderId?: string;\n\tblocks: any[];\n}\n\nexport interface PaymentProviderConfig {\n\ttype: \"STRIPE\";\n\tpublicKey: string;\n\tsecretKey: string;\n\twebhookSecret: string;\n}\n\nexport interface ShippingWeightTier {\n\tupToGrams: number;\n\tamount: number;\n}\n\nexport interface PaymentMethod {\n\tid: string;\n\ttype: PaymentMethodType;\n}\n\nexport interface ShippingMethod {\n\tid: string;\n\ttaxable: boolean;\n\tetaText: string;\n\tpickupLocation?: Location;\n\tamount: number;\n\tfreeAbove?: number;\n\tweightTiers?: ShippingWeightTier[];\n}\n\nexport type ZoneScope = \"ORDER\" | \"RESERVATION\";\n\nexport interface Zone {\n\tid: string;\n\tmarketId: string;\n\tscope: ZoneScope;\n\tcountries: string[];\n\tstates: string[];\n\tpostalCodes: string[];\n\ttaxBps: number;\n\tpaymentMethods: PaymentMethod[];\n\tshippingMethods: ShippingMethod[];\n}\n\nexport interface Market {\n\tid: string;\n\tcurrency: string;\n\ttaxMode: \"EXCLUSIVE\" | \"INCLUSIVE\";\n}\n\n\nexport interface Language {\n\tid: string;\n}\n\nexport interface BusinessEmails {\n\tbilling: string;\n\tsupport: string;\n}\n\nexport interface OrderConfigs {\n\tisEmailRequired: boolean;\n\tisPhoneRequired: boolean;\n}\n\nexport interface BusinessReservationConfigs {\n\tisEmailRequired: boolean;\n\tisPhoneRequired: boolean;\n}\n\nexport interface BusinessConfig {\n\tlanguages: Language[];\n\tmarkets: Market[];\n\tzones: Zone[];\n\tbuildHooks: string[];\n\twebhooks: any[];\n\torderBlocks: any[];\n\treservationBlocks: any[];\n\torderConfigs: OrderConfigs;\n\treservationConfigs: BusinessReservationConfigs;\n\tpaymentProvider?: PaymentProviderConfig;\n\taiProvider?: any;\n\temails: BusinessEmails;\n}\n\nexport interface Business {\n\tid: string;\n\tname: string;\n\tconfigs?: BusinessConfig;\n}\n\nexport interface EshopStoreState {\n\tbusinessId: string;\n\tselectedShippingMethodId: string | null;\n\tuserToken: string | null;\n\tprocessingCheckout: boolean;\n\tloading: boolean;\n\terror: string | null;\n\tphoneNumber: string;\n\tphoneError: string | null;\n\tverificationCode: string;\n\tverifyError: string | null;\n}\n\nexport interface Block {\n\tid: string;\n\tkey: string;\n\ttype: string;\n\tproperties?: any;\n\tvalue?: any;\n}\n\nexport interface Seo {\n\tslug: Record<string, string>;\n\tmetaTitle: Record<string, string>;\n\tmetaDescription: Record<string, string>;\n\tcanonicalUrl: Record<string, string>;\n\togImage: string;\n}\n\nexport interface MediaResolution {\n\tid: string;\n\tsize: string;\n\turl: string;\n}\n\nexport interface Media {\n\tid: string;\n\tresolutions: { [key: string]: MediaResolution };\n\tmimeType: string;\n\ttitle?: string | null;\n\tdescription?: string | null;\n\talt?: string | null;\n\towner: string;\n\tmetadata?: string | null;\n\tuploadedAt: string;\n\tseo: Seo;\n}\n\nexport interface ApiResponse<T> {\n\tsuccess: boolean;\n\tdata?: T;\n\terror?: string;\n\tcursor?: string;\n\ttotal?: number;\n}\n\nexport interface PaginatedResponse<T> {\n\tdata: T[];\n\tmeta?: {\n\t\ttotal: number;\n\t\tpage: number;\n\t\tper_page: number;\n\t};\n}\n\nexport interface ReservationStoreState {\n\tcurrentStep: number;\n\ttotalSteps: number;\n\tsteps: Record<number, { name: string; labelKey: string }>;\n\tweekdays: string[];\n\tmonthYear: string;\n\tdays: any[];\n\tcurrent: Date;\n\tselectedDate: string | null;\n\tslots: any[];\n\tselectedSlot: any | null;\n\tselectedProvider: any | null;\n\tproviders: any[];\n\tloading: boolean;\n\tstartDate: string | null;\n\tendDate: string | null;\n\tphoneNumber: string;\n\tphoneError: string | null;\n\tphoneSuccess: string | null;\n\tverificationCode: string;\n\tverifyError: string | null;\n\tisPhoneVerified: boolean;\n\tisSendingCode: boolean;\n\tisVerifying: boolean;\n\tcodeSentAt: number | null;\n\tcanResendAt: number | null;\n\tguestToken: string | null;\n\tservice: any | null;\n\tbusiness: Business | null;\n\tcurrency: string;\n\treservationBlocks: Block[];\n\tapiUrl: string;\n\tbusinessId: string;\n\ttimezone: string;\n\ttzGroups: any;\n\titems: ReservationCartItem[];\n\tallowedPaymentMethods: string[];\n\tpaymentConfig: {\n\t\tprovider: PaymentProviderConfig | null;\n\t\tenabled: boolean;\n\t};\n}\n\nexport interface StatusEvent {\n\tid: string;\n\tchangedBy: 'BUSINESS' | 'USER' | 'SYSTEM';\n\tuserId?: string;\n\tstatus: string;\n\tnote?: string;\n\ttimestamp: number;\n}\n\nexport interface ReservationItem {\n\tid: string;\n\tserviceId: string;\n\tproviderId: string;\n\tbusinessId: string;\n\treservationId: string;\n\tuserId: string;\n\tfrom: number;\n\tto: number;\n\tblocks: Block[];\n\tprice: Price;\n}\n\nexport interface Reservation {\n\tid: string;\n\tnumber: string;\n\tuserId: string;\n\tblocks: Block[];\n\tbusinessId: string;\n\tstatuses: StatusEvent[];\n\tserviceIds: string[];\n\tproviderIds: string[];\n\tpayment: Payment;\n\tbusiness?: Business;\n\tuser?: any;\n\titems: ReservationItem[];\n\temail?: string;\n\tphone?: string;\n\tcreatedAt: number;\n\tlastModified: number;\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/types/index.ts"],"names":["PaymentMethodType","CollectionEntryType","CollectionType"],"mappings":";;;AA4CO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AACN,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AACP,EAAAA,mBAAA,YAAA,CAAA,GAAa,aAAA;AACb,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AAHI,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA;AAqTL,IAAK,mBAAA,qBAAAC,oBAAAA,KAAL;AACN,EAAAA,qBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,qBAAA,kBAAA,CAAA,GAAmB,kBAAA;AACnB,EAAAA,qBAAA,mBAAA,CAAA,GAAoB,mBAAA;AACpB,EAAAA,qBAAA,kBAAA,CAAA,GAAmB,kBAAA;AACnB,EAAAA,qBAAA,uBAAA,CAAA,GAAwB,uBAAA;AACxB,EAAAA,qBAAA,oBAAA,CAAA,GAAqB,oBAAA;AACrB,EAAAA,qBAAA,uBAAA,CAAA,GAAwB,uBAAA;AACxB,EAAAA,qBAAA,2BAAA,CAAA,GAA4B,2BAAA;AAC5B,EAAAA,qBAAA,0CAAA,CAAA,GAA2C,0CAAA;AAC3C,EAAAA,qBAAA,0CAAA,CAAA,GAA2C,0CAAA;AAC3C,EAAAA,qBAAA,iBAAA,CAAA,GAAkB,iBAAA;AAClB,EAAAA,qBAAA,kBAAA,CAAA,GAAmB,kBAAA;AAZR,EAAA,OAAAA,oBAAAA;AAAA,CAAA,EAAA,mBAAA,IAAA,EAAA;AAeL,IAAK,cAAA,qBAAAC,eAAAA,KAAL;AACN,EAAAA,gBAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,gBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,gBAAA,iBAAA,CAAA,GAAkB,iBAAA;AAClB,EAAAA,gBAAA,oBAAA,CAAA,GAAqB,oBAAA;AACrB,EAAAA,gBAAA,qBAAA,CAAA,GAAsB,qBAAA;AACtB,EAAAA,gBAAA,oBAAA,CAAA,GAAqB,oBAAA;AACrB,EAAAA,gBAAA,YAAA,CAAA,GAAa,YAAA;AACb,EAAAA,gBAAA,qBAAA,CAAA,GAAsB,qBAAA;AACtB,EAAAA,gBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,gBAAA,SAAA,CAAA,GAAU,SAAA;AAVC,EAAA,OAAAA,eAAAA;AAAA,CAAA,EAAA,cAAA,IAAA,EAAA","file":"types.cjs","sourcesContent":["export * from './api';\n\nexport interface PaymentRefund {\n\tid: string;\n\tentity: string;\n\ttotal: number;\n\tproviderRefundId?: string;\n\tstatus: string;\n\tcreatedAt: number;\n}\n\nexport interface Payment {\n\tcurrency: string;\n\tmarket: string;\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttotal: number;\n\tpaid: number;\n\ttax?: {\n\t\tamount: number;\n\t\tmodeSnapshot?: string;\n\t\trateBps: number;\n\t\tlines: Array<{ rateBps: number; amount: number; label?: string; scope?: string }>;\n\t};\n\tpromoCode?: {\n\t\tid: string;\n\t\tcode: string;\n\t\ttype: string;\n\t\tvalue: number;\n\t};\n\ttype: PaymentMethodType;\n\tprovider?: {\n\t\tcustomerId: string;\n\t\tpaymentIntentId?: string;\n\t\tsubscriptionId?: string;\n\t\tpriceId?: string;\n\t};\n\trefunds: PaymentRefund[];\n\tzoneId?: string;\n\tpaymentMethodId?: string;\n\tshippingMethodId?: string;\n}\n\nexport enum PaymentMethodType {\n\tCash = \"CASH\",\n\tCreditCard = \"CREDIT_CARD\",\n\tFree = \"FREE\",\n}\n\nexport interface PromoCodeValidation {\n\tpromoCodeId: string;\n\tcode: string;\n\tdiscounts: any[];\n\tconditions: any[];\n}\n\nexport interface Quote {\n\tmarket: string;\n\tzone: Zone;\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tshippingMethod: ShippingMethod | null;\n\tpaymentMethod: PaymentMethod | null;\n\tpromoCode: PromoCodeValidation | null;\n\tpayment: Payment;\n\tchargeAmount: number;\n\tid?: string;\n\texpiresAt?: number;\n}\n\n\nexport interface Price {\n\tmarket: string;\n\tamount: number;\n\tcompareAt?: number;\n}\n\nexport interface Location {\n\tcountry?: string | null;\n\taddress?: string | null;\n\tcity?: string | null;\n\tstate?: string | null;\n\tpostalCode?: string | null;\n\tcoordinates?: { lat: number; lon: number } | null;\n}\n\nexport interface EshopCartItem {\n\tid: string;\n\tproductId: string;\n\tvariantId: string;\n\tproductName: string;\n\tproductSlug: string;\n\tvariantAttributes: Record<string, any>;\n\tprice: Price;\n\tquantity: number;\n\taddedAt: number;\n}\n\nexport interface ReservationCartItem {\n\tid: string;\n\tserviceId: string;\n\tserviceName: string;\n\tdate: string;\n\tfrom: number;\n\tto: number;\n\ttimeText: string;\n\tproviderId?: string;\n\tblocks: any[];\n}\n\nexport interface PaymentProviderConfig {\n\ttype: \"STRIPE\";\n\tpublicKey: string;\n\tsecretKey: string;\n\twebhookSecret: string;\n}\n\nexport interface ShippingWeightTier {\n\tupToGrams: number;\n\tamount: number;\n}\n\nexport interface PaymentMethod {\n\tid: string;\n\ttype: PaymentMethodType;\n}\n\nexport interface ShippingMethod {\n\tid: string;\n\ttaxable: boolean;\n\tetaText: string;\n\tpickupLocation?: Location;\n\tamount: number;\n\tfreeAbove?: number;\n\tweightTiers?: ShippingWeightTier[];\n}\n\nexport type ZoneScope = \"ORDER\" | \"RESERVATION\";\n\nexport interface Zone {\n\tid: string;\n\tmarketId: string;\n\tscope: ZoneScope;\n\tcountries: string[];\n\tstates: string[];\n\tpostalCodes: string[];\n\ttaxBps: number;\n\tpaymentMethods: PaymentMethod[];\n\tshippingMethods: ShippingMethod[];\n}\n\nexport interface Market {\n\tid: string;\n\tcurrency: string;\n\ttaxMode: \"EXCLUSIVE\" | \"INCLUSIVE\";\n}\n\n\nexport interface Language {\n\tid: string;\n}\n\nexport interface BusinessEmails {\n\tbilling: string;\n\tsupport: string;\n}\n\nexport interface OrderConfigs {\n\tisEmailRequired: boolean;\n\tisPhoneRequired: boolean;\n}\n\nexport interface BusinessReservationConfigs {\n\tisEmailRequired: boolean;\n\tisPhoneRequired: boolean;\n}\n\nexport interface BusinessConfig {\n\tlanguages: Language[];\n\tmarkets: Market[];\n\tzones: Zone[];\n\tbuildHooks: string[];\n\twebhooks: any[];\n\torderBlocks: any[];\n\treservationBlocks: any[];\n\torderConfigs: OrderConfigs;\n\treservationConfigs: BusinessReservationConfigs;\n\tpaymentProvider?: PaymentProviderConfig;\n\taiProvider?: any;\n\temails: BusinessEmails;\n}\n\nexport interface Business {\n\tid: string;\n\tname: string;\n\tconfigs?: BusinessConfig;\n}\n\nexport interface EshopStoreState {\n\tbusinessId: string;\n\tselectedShippingMethodId: string | null;\n\tuserToken: string | null;\n\tprocessingCheckout: boolean;\n\tloading: boolean;\n\terror: string | null;\n\tphoneNumber: string;\n\tphoneError: string | null;\n\tverificationCode: string;\n\tverifyError: string | null;\n}\n\nexport interface Block {\n\tid: string;\n\tkey: string;\n\ttype: string;\n\tproperties?: any;\n\tvalue?: any;\n}\n\nexport interface Seo {\n\tslug: Record<string, string>;\n\tmetaTitle: Record<string, string>;\n\tmetaDescription: Record<string, string>;\n\tcanonicalUrl: Record<string, string>;\n\togImage: string;\n}\n\nexport interface MediaResolution {\n\tid: string;\n\tsize: string;\n\turl: string;\n}\n\nexport interface Media {\n\tid: string;\n\tresolutions: { [key: string]: MediaResolution };\n\tmimeType: string;\n\ttitle?: string | null;\n\tdescription?: string | null;\n\talt?: string | null;\n\towner: string;\n\tmetadata?: string | null;\n\tuploadedAt: string;\n\tseo: Seo;\n}\n\nexport interface ApiResponse<T> {\n\tsuccess: boolean;\n\tdata?: T;\n\terror?: string;\n\tcursor?: string;\n\ttotal?: number;\n}\n\nexport interface PaginatedResponse<T> {\n\tdata: T[];\n\tmeta?: {\n\t\ttotal: number;\n\t\tpage: number;\n\t\tper_page: number;\n\t};\n}\n\nexport interface ReservationStoreState {\n\tcurrentStep: number;\n\ttotalSteps: number;\n\tsteps: Record<number, { name: string; labelKey: string }>;\n\tweekdays: string[];\n\tmonthYear: string;\n\tdays: any[];\n\tcurrent: Date;\n\tselectedDate: string | null;\n\tslots: any[];\n\tselectedSlot: any | null;\n\tselectedProvider: any | null;\n\tproviders: any[];\n\tloading: boolean;\n\tstartDate: string | null;\n\tendDate: string | null;\n\tphoneNumber: string;\n\tphoneError: string | null;\n\tphoneSuccess: string | null;\n\tverificationCode: string;\n\tverifyError: string | null;\n\tisPhoneVerified: boolean;\n\tisSendingCode: boolean;\n\tisVerifying: boolean;\n\tcodeSentAt: number | null;\n\tcanResendAt: number | null;\n\tguestToken: string | null;\n\tservice: any | null;\n\tbusiness: Business | null;\n\tcurrency: string;\n\treservationBlocks: Block[];\n\tapiUrl: string;\n\tbusinessId: string;\n\ttimezone: string;\n\ttzGroups: any;\n\titems: ReservationCartItem[];\n\tallowedPaymentMethods: string[];\n\tpaymentConfig: {\n\t\tprovider: PaymentProviderConfig | null;\n\t\tenabled: boolean;\n\t};\n}\n\nexport interface StatusEvent {\n\tid: string;\n\tchangedBy: 'BUSINESS' | 'USER' | 'SYSTEM';\n\tuserId?: string;\n\tstatus: string;\n\tnote?: string;\n\ttimestamp: number;\n}\n\nexport interface ReservationItem {\n\tid: string;\n\tserviceId: string;\n\tproviderId: string;\n\tbusinessId: string;\n\treservationId: string;\n\tuserId: string;\n\tfrom: number;\n\tto: number;\n\tblocks: Block[];\n\tprice: Price;\n}\n\nexport interface Reservation {\n\tid: string;\n\tnumber: string;\n\tuserId: string;\n\tblocks: Block[];\n\tbusinessId: string;\n\tstatuses: StatusEvent[];\n\tserviceIds: string[];\n\tproviderIds: string[];\n\tpayment: Payment;\n\tbusiness?: Business;\n\tuser?: any;\n\titems: ReservationItem[];\n\temail?: string;\n\tphone?: string;\n\tcreatedAt: number;\n\tlastModified: number;\n}\n\n// ===== CMS Types =====\n\nexport enum CollectionEntryType {\n\tCONTENT = 'CONTENT',\n\tSERVICE_CATEGORY = 'SERVICE_CATEGORY',\n\tPROVIDER_CATEGORY = 'PROVIDER_CATEGORY',\n\tPRODUCT_CATEGORY = 'PRODUCT_CATEGORY',\n\tEMAIL_FORGOT_PASSWORD = 'EMAIL_FORGOT_PASSWORD',\n\tEMAIL_USER_CONFIRM = 'EMAIL_USER_CONFIRM',\n\tEMAIL_USER_INVITATION = 'EMAIL_USER_INVITATION',\n\tEMAIL_ORDER_STATUS_UPDATE = 'EMAIL_ORDER_STATUS_UPDATE',\n\tEMAIL_RESERVATION_BUSINESS_STATUS_UPDATE = 'EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE',\n\tEMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE = 'EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE',\n\tNEWSLETTER_POST = 'NEWSLETTER_POST',\n\tNEWSLETTER_ENTRY = 'NEWSLETTER_ENTRY',\n}\n\nexport enum CollectionType {\n\tSINGLE = 'SINGLE',\n\tCONTENT = 'CONTENT',\n\tEMAIL_TEMPLATES = 'EMAIL_TEMPLATES',\n\tSERVICE_CATEGORIES = 'SERVICE_CATEGORIES',\n\tPROVIDER_CATEGORIES = 'PROVIDER_CATEGORIES',\n\tPRODUCT_CATEGORIES = 'PRODUCT_CATEGORIES',\n\tNEWSLETTER = 'NEWSLETTER',\n\tNEWSLETTER_SEGMENTS = 'NEWSLETTER_SEGMENTS',\n\tSERVICE = 'SERVICE',\n\tPRODUCT = 'PRODUCT',\n}\n\nexport interface CollectionConfig {\n\tisPubliclyReadable: boolean;\n\tisPubliclyWritable: boolean;\n\tisSubmissionEnabled: boolean;\n\tisCaptchaRequired: boolean;\n\tnotificationEmails: string[];\n\tunsubscribeUrl: string | null;\n}\n\nexport interface Collection {\n\tid: string;\n\tname: string;\n\tbusinessId: string;\n\ttype: CollectionType;\n\tblocks: Block[];\n\tconfig: CollectionConfig;\n\tentity: string;\n\tstatuses: StatusEvent[];\n\tseo: Seo;\n}\n\nexport interface CollectionEntry {\n\tid: string;\n\tname: Record<string, string>;\n\tcollectionId: string;\n\tbusinessId: string;\n\ttype: CollectionEntryType;\n\tblocks: Block[];\n\tstatuses: StatusEvent[];\n\tprops?: any;\n\tseo: Seo;\n\tcreatedAt: number;\n\tupdatedAt: number;\n}\n"]}
|
package/dist/types.d.cts
CHANGED
|
@@ -325,6 +325,64 @@ interface Reservation {
|
|
|
325
325
|
createdAt: number;
|
|
326
326
|
lastModified: number;
|
|
327
327
|
}
|
|
328
|
+
declare enum CollectionEntryType {
|
|
329
|
+
CONTENT = "CONTENT",
|
|
330
|
+
SERVICE_CATEGORY = "SERVICE_CATEGORY",
|
|
331
|
+
PROVIDER_CATEGORY = "PROVIDER_CATEGORY",
|
|
332
|
+
PRODUCT_CATEGORY = "PRODUCT_CATEGORY",
|
|
333
|
+
EMAIL_FORGOT_PASSWORD = "EMAIL_FORGOT_PASSWORD",
|
|
334
|
+
EMAIL_USER_CONFIRM = "EMAIL_USER_CONFIRM",
|
|
335
|
+
EMAIL_USER_INVITATION = "EMAIL_USER_INVITATION",
|
|
336
|
+
EMAIL_ORDER_STATUS_UPDATE = "EMAIL_ORDER_STATUS_UPDATE",
|
|
337
|
+
EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE = "EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE",
|
|
338
|
+
EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE = "EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE",
|
|
339
|
+
NEWSLETTER_POST = "NEWSLETTER_POST",
|
|
340
|
+
NEWSLETTER_ENTRY = "NEWSLETTER_ENTRY"
|
|
341
|
+
}
|
|
342
|
+
declare enum CollectionType {
|
|
343
|
+
SINGLE = "SINGLE",
|
|
344
|
+
CONTENT = "CONTENT",
|
|
345
|
+
EMAIL_TEMPLATES = "EMAIL_TEMPLATES",
|
|
346
|
+
SERVICE_CATEGORIES = "SERVICE_CATEGORIES",
|
|
347
|
+
PROVIDER_CATEGORIES = "PROVIDER_CATEGORIES",
|
|
348
|
+
PRODUCT_CATEGORIES = "PRODUCT_CATEGORIES",
|
|
349
|
+
NEWSLETTER = "NEWSLETTER",
|
|
350
|
+
NEWSLETTER_SEGMENTS = "NEWSLETTER_SEGMENTS",
|
|
351
|
+
SERVICE = "SERVICE",
|
|
352
|
+
PRODUCT = "PRODUCT"
|
|
353
|
+
}
|
|
354
|
+
interface CollectionConfig {
|
|
355
|
+
isPubliclyReadable: boolean;
|
|
356
|
+
isPubliclyWritable: boolean;
|
|
357
|
+
isSubmissionEnabled: boolean;
|
|
358
|
+
isCaptchaRequired: boolean;
|
|
359
|
+
notificationEmails: string[];
|
|
360
|
+
unsubscribeUrl: string | null;
|
|
361
|
+
}
|
|
362
|
+
interface Collection {
|
|
363
|
+
id: string;
|
|
364
|
+
name: string;
|
|
365
|
+
businessId: string;
|
|
366
|
+
type: CollectionType;
|
|
367
|
+
blocks: Block[];
|
|
368
|
+
config: CollectionConfig;
|
|
369
|
+
entity: string;
|
|
370
|
+
statuses: StatusEvent[];
|
|
371
|
+
seo: Seo;
|
|
372
|
+
}
|
|
373
|
+
interface CollectionEntry {
|
|
374
|
+
id: string;
|
|
375
|
+
name: Record<string, string>;
|
|
376
|
+
collectionId: string;
|
|
377
|
+
businessId: string;
|
|
378
|
+
type: CollectionEntryType;
|
|
379
|
+
blocks: Block[];
|
|
380
|
+
statuses: StatusEvent[];
|
|
381
|
+
props?: any;
|
|
382
|
+
seo: Seo;
|
|
383
|
+
createdAt: number;
|
|
384
|
+
updatedAt: number;
|
|
385
|
+
}
|
|
328
386
|
|
|
329
387
|
interface RequestOptions<T = any> {
|
|
330
388
|
headers?: Record<string, string>;
|
|
@@ -442,6 +500,13 @@ interface GetServicesParams {
|
|
|
442
500
|
providerId?: string;
|
|
443
501
|
limit?: number;
|
|
444
502
|
cursor?: string;
|
|
503
|
+
query?: string;
|
|
504
|
+
ids?: string[];
|
|
505
|
+
statuses?: string[];
|
|
506
|
+
categoryId?: string;
|
|
507
|
+
categoryFilterBlocks?: any[];
|
|
508
|
+
sortField?: string;
|
|
509
|
+
sortDirection?: string;
|
|
445
510
|
}
|
|
446
511
|
interface ReservationCheckoutParams {
|
|
447
512
|
items: any[];
|
|
@@ -644,17 +709,33 @@ interface HandleInvitationParams {
|
|
|
644
709
|
interface TestWebhookParams {
|
|
645
710
|
webhook: any;
|
|
646
711
|
}
|
|
712
|
+
interface CollectionConfigParams {
|
|
713
|
+
isPubliclyReadable?: boolean;
|
|
714
|
+
isPubliclyWritable?: boolean;
|
|
715
|
+
isSubmissionEnabled?: boolean;
|
|
716
|
+
isCaptchaRequired?: boolean;
|
|
717
|
+
notificationEmails?: string[];
|
|
718
|
+
unsubscribeUrl?: string | null;
|
|
719
|
+
}
|
|
647
720
|
interface CreateCollectionParams {
|
|
648
721
|
name: string;
|
|
649
|
-
|
|
650
|
-
|
|
722
|
+
type?: string;
|
|
723
|
+
blocks?: any[];
|
|
724
|
+
config?: CollectionConfigParams;
|
|
725
|
+
entity?: string | null;
|
|
726
|
+
plans?: any[];
|
|
727
|
+
seo?: any;
|
|
651
728
|
[key: string]: any;
|
|
652
729
|
}
|
|
653
730
|
interface UpdateCollectionParams {
|
|
654
731
|
id: string;
|
|
655
732
|
name?: string;
|
|
656
|
-
|
|
657
|
-
|
|
733
|
+
type?: string;
|
|
734
|
+
blocks?: any[];
|
|
735
|
+
config?: CollectionConfigParams;
|
|
736
|
+
entity?: string | null;
|
|
737
|
+
plans?: any[];
|
|
738
|
+
seo?: any;
|
|
658
739
|
[key: string]: any;
|
|
659
740
|
}
|
|
660
741
|
interface DeleteCollectionParams {
|
|
@@ -666,6 +747,8 @@ interface GetCollectionParams {
|
|
|
666
747
|
interface GetCollectionsParams {
|
|
667
748
|
name?: string | null;
|
|
668
749
|
ids?: string[] | null;
|
|
750
|
+
entity?: string | null;
|
|
751
|
+
type?: string | null;
|
|
669
752
|
}
|
|
670
753
|
interface GetEntriesParams {
|
|
671
754
|
collectionId: string;
|
|
@@ -1061,4 +1144,4 @@ interface Slot {
|
|
|
1061
1144
|
dateText: string;
|
|
1062
1145
|
}
|
|
1063
1146
|
|
|
1064
|
-
export { type AddPhoneNumberParams, type ApiResponse, type Block, type Business, type BusinessConfig, type BusinessEmails, type BusinessReservationConfigs, type Condition, type ConfirmUserParams, type CreateBusinessParams, type CreateCollectionEntryParams, type CreateCollectionParams, type CreateEntryParams, type CreateFeatureFlagParams, type CreateOrderParams, type CreatePortalSessionParams, type CreateProductParams, type CreatePromoCodeParams, type CreateProviderParams, type CreateReservationParams, type CreateRoleParams, type CreateServiceParams, type DayAvailability, type DeleteBusinessMediaParams, type DeleteBusinessParams, type DeleteCollectionEntryParams, type DeleteCollectionParams, type DeleteFeatureFlagParams, type DeleteProductParams, type DeletePromoCodeParams, type DeleteProviderParams, type DeleteRoleParams, type DeleteServiceParams, type DeleteUserParams, type Discount, type EshopCartItem, type EshopItem, type EshopStoreState, type FeatureFlag, type FeatureFlagStatus, type FlagResults, type ForgotPasswordParams, type GenerateBlocksParams, type GetAnalyticsHealthParams, type GetAnalyticsParams, type GetAvailabilityParams, type GetBusinessMediaParams, type GetBusinessMediaParams2, type GetBusinessParams, type GetBusinessParentsParams, type GetBusinessServiceWorkingTimeParams, type GetBusinessesParams, type GetCollectionEntriesParams, type GetCollectionEntryParams, type GetCollectionParams, type GetCollectionSubscribersParams, type GetCollectionsParams, type GetDeliveryStatsParams, type GetEntriesParams, type GetFeatureFlagParams, type GetFeatureFlagResultsParams, type GetFeatureFlagsParams, type GetLoginUrlParams, type GetMeParams, type GetOrderParams, type GetOrdersParams, type GetProductParams, type GetProductsParams, type GetPromoCodeParams, type GetPromoCodesParams, type GetProviderParams, type GetProvidersParams, type GetQuoteParams, type GetReservationParams, type GetReservationQuoteParams, type GetRoleParams, type GetRolesParams, type GetServiceParams, type GetServiceProvidersParams, type GetServicesParams, type GetSlotsForDateParams, type GetSubscriptionParams, type GetSubscriptionPlansParams, type GetVariableMetadataParams, type GetVariantParams, type GetVariantResponse, type HandleInvitationParams, type InviteUserParams, type Language, type Location, type LoginUserParams, type LogoutParams, type Market, type Media, type MediaResolution, type OrderCheckoutParams, type OrderConfigs, type OutcastDate, type PaginatedResponse, type Payment, type PaymentMethod, PaymentMethodType, type PaymentProviderConfig, type PaymentRefund, type PhoneNumberConfirmParams, type Price, type ProcessRefundParams, type PromoCodeValidation, type ProviderWithTimeline, type Quote, type RegisterUserParams, type RequestOptions, type Reservation, type ReservationCartItem, type ReservationCheckoutParams, type ReservationItem, type ReservationQuoteItem, type ReservationStoreState, type ResetForgotPasswordParams, type ResetPasswordParams, type SearchReservationsParams, type SearchUsersParams, type SendEntryParams, type Seo, type SetProviderScheduleParams, type SetRoleParams, type SetupAnalyticsParams, type ShippingMethod, type ShippingWeightTier, type Slot, type SpecificDate, type StatusEvent, type SubscribeParams, type TestWebhookParams, type TimelinePoint, type TrackEmailOpenParams, type TrackEventParams, type TrackEventResponse, type TriggerBuildsParams, type UpdateBusinessParams, type UpdateCollectionParams, type UpdateEntryParams, type UpdateFeatureFlagParams, type UpdateMediaParams, type UpdateNotificationsParams, type UpdateOrderParams, type UpdateProductParams, type UpdatePromoCodeParams, type UpdateProviderParams, type UpdateReservationParams, type UpdateRoleParams, type UpdateServiceParams, type UpdateUserProfileParams, type UploadBusinessMediaParams, type UserSubscribeParams, type Variant, type VariantInput, type VariantResult, type WorkingDay, type WorkingHour, type WorkingTime, type Zone, type ZoneScope };
|
|
1147
|
+
export { type AddPhoneNumberParams, type ApiResponse, type Block, type Business, type BusinessConfig, type BusinessEmails, type BusinessReservationConfigs, type Collection, type CollectionConfig, type CollectionConfigParams, type CollectionEntry, CollectionEntryType, CollectionType, type Condition, type ConfirmUserParams, type CreateBusinessParams, type CreateCollectionEntryParams, type CreateCollectionParams, type CreateEntryParams, type CreateFeatureFlagParams, type CreateOrderParams, type CreatePortalSessionParams, type CreateProductParams, type CreatePromoCodeParams, type CreateProviderParams, type CreateReservationParams, type CreateRoleParams, type CreateServiceParams, type DayAvailability, type DeleteBusinessMediaParams, type DeleteBusinessParams, type DeleteCollectionEntryParams, type DeleteCollectionParams, type DeleteFeatureFlagParams, type DeleteProductParams, type DeletePromoCodeParams, type DeleteProviderParams, type DeleteRoleParams, type DeleteServiceParams, type DeleteUserParams, type Discount, type EshopCartItem, type EshopItem, type EshopStoreState, type FeatureFlag, type FeatureFlagStatus, type FlagResults, type ForgotPasswordParams, type GenerateBlocksParams, type GetAnalyticsHealthParams, type GetAnalyticsParams, type GetAvailabilityParams, type GetBusinessMediaParams, type GetBusinessMediaParams2, type GetBusinessParams, type GetBusinessParentsParams, type GetBusinessServiceWorkingTimeParams, type GetBusinessesParams, type GetCollectionEntriesParams, type GetCollectionEntryParams, type GetCollectionParams, type GetCollectionSubscribersParams, type GetCollectionsParams, type GetDeliveryStatsParams, type GetEntriesParams, type GetFeatureFlagParams, type GetFeatureFlagResultsParams, type GetFeatureFlagsParams, type GetLoginUrlParams, type GetMeParams, type GetOrderParams, type GetOrdersParams, type GetProductParams, type GetProductsParams, type GetPromoCodeParams, type GetPromoCodesParams, type GetProviderParams, type GetProvidersParams, type GetQuoteParams, type GetReservationParams, type GetReservationQuoteParams, type GetRoleParams, type GetRolesParams, type GetServiceParams, type GetServiceProvidersParams, type GetServicesParams, type GetSlotsForDateParams, type GetSubscriptionParams, type GetSubscriptionPlansParams, type GetVariableMetadataParams, type GetVariantParams, type GetVariantResponse, type HandleInvitationParams, type InviteUserParams, type Language, type Location, type LoginUserParams, type LogoutParams, type Market, type Media, type MediaResolution, type OrderCheckoutParams, type OrderConfigs, type OutcastDate, type PaginatedResponse, type Payment, type PaymentMethod, PaymentMethodType, type PaymentProviderConfig, type PaymentRefund, type PhoneNumberConfirmParams, type Price, type ProcessRefundParams, type PromoCodeValidation, type ProviderWithTimeline, type Quote, type RegisterUserParams, type RequestOptions, type Reservation, type ReservationCartItem, type ReservationCheckoutParams, type ReservationItem, type ReservationQuoteItem, type ReservationStoreState, type ResetForgotPasswordParams, type ResetPasswordParams, type SearchReservationsParams, type SearchUsersParams, type SendEntryParams, type Seo, type SetProviderScheduleParams, type SetRoleParams, type SetupAnalyticsParams, type ShippingMethod, type ShippingWeightTier, type Slot, type SpecificDate, type StatusEvent, type SubscribeParams, type TestWebhookParams, type TimelinePoint, type TrackEmailOpenParams, type TrackEventParams, type TrackEventResponse, type TriggerBuildsParams, type UpdateBusinessParams, type UpdateCollectionParams, type UpdateEntryParams, type UpdateFeatureFlagParams, type UpdateMediaParams, type UpdateNotificationsParams, type UpdateOrderParams, type UpdateProductParams, type UpdatePromoCodeParams, type UpdateProviderParams, type UpdateReservationParams, type UpdateRoleParams, type UpdateServiceParams, type UpdateUserProfileParams, type UploadBusinessMediaParams, type UserSubscribeParams, type Variant, type VariantInput, type VariantResult, type WorkingDay, type WorkingHour, type WorkingTime, type Zone, type ZoneScope };
|
package/dist/types.d.ts
CHANGED
|
@@ -325,6 +325,64 @@ interface Reservation {
|
|
|
325
325
|
createdAt: number;
|
|
326
326
|
lastModified: number;
|
|
327
327
|
}
|
|
328
|
+
declare enum CollectionEntryType {
|
|
329
|
+
CONTENT = "CONTENT",
|
|
330
|
+
SERVICE_CATEGORY = "SERVICE_CATEGORY",
|
|
331
|
+
PROVIDER_CATEGORY = "PROVIDER_CATEGORY",
|
|
332
|
+
PRODUCT_CATEGORY = "PRODUCT_CATEGORY",
|
|
333
|
+
EMAIL_FORGOT_PASSWORD = "EMAIL_FORGOT_PASSWORD",
|
|
334
|
+
EMAIL_USER_CONFIRM = "EMAIL_USER_CONFIRM",
|
|
335
|
+
EMAIL_USER_INVITATION = "EMAIL_USER_INVITATION",
|
|
336
|
+
EMAIL_ORDER_STATUS_UPDATE = "EMAIL_ORDER_STATUS_UPDATE",
|
|
337
|
+
EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE = "EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE",
|
|
338
|
+
EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE = "EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE",
|
|
339
|
+
NEWSLETTER_POST = "NEWSLETTER_POST",
|
|
340
|
+
NEWSLETTER_ENTRY = "NEWSLETTER_ENTRY"
|
|
341
|
+
}
|
|
342
|
+
declare enum CollectionType {
|
|
343
|
+
SINGLE = "SINGLE",
|
|
344
|
+
CONTENT = "CONTENT",
|
|
345
|
+
EMAIL_TEMPLATES = "EMAIL_TEMPLATES",
|
|
346
|
+
SERVICE_CATEGORIES = "SERVICE_CATEGORIES",
|
|
347
|
+
PROVIDER_CATEGORIES = "PROVIDER_CATEGORIES",
|
|
348
|
+
PRODUCT_CATEGORIES = "PRODUCT_CATEGORIES",
|
|
349
|
+
NEWSLETTER = "NEWSLETTER",
|
|
350
|
+
NEWSLETTER_SEGMENTS = "NEWSLETTER_SEGMENTS",
|
|
351
|
+
SERVICE = "SERVICE",
|
|
352
|
+
PRODUCT = "PRODUCT"
|
|
353
|
+
}
|
|
354
|
+
interface CollectionConfig {
|
|
355
|
+
isPubliclyReadable: boolean;
|
|
356
|
+
isPubliclyWritable: boolean;
|
|
357
|
+
isSubmissionEnabled: boolean;
|
|
358
|
+
isCaptchaRequired: boolean;
|
|
359
|
+
notificationEmails: string[];
|
|
360
|
+
unsubscribeUrl: string | null;
|
|
361
|
+
}
|
|
362
|
+
interface Collection {
|
|
363
|
+
id: string;
|
|
364
|
+
name: string;
|
|
365
|
+
businessId: string;
|
|
366
|
+
type: CollectionType;
|
|
367
|
+
blocks: Block[];
|
|
368
|
+
config: CollectionConfig;
|
|
369
|
+
entity: string;
|
|
370
|
+
statuses: StatusEvent[];
|
|
371
|
+
seo: Seo;
|
|
372
|
+
}
|
|
373
|
+
interface CollectionEntry {
|
|
374
|
+
id: string;
|
|
375
|
+
name: Record<string, string>;
|
|
376
|
+
collectionId: string;
|
|
377
|
+
businessId: string;
|
|
378
|
+
type: CollectionEntryType;
|
|
379
|
+
blocks: Block[];
|
|
380
|
+
statuses: StatusEvent[];
|
|
381
|
+
props?: any;
|
|
382
|
+
seo: Seo;
|
|
383
|
+
createdAt: number;
|
|
384
|
+
updatedAt: number;
|
|
385
|
+
}
|
|
328
386
|
|
|
329
387
|
interface RequestOptions<T = any> {
|
|
330
388
|
headers?: Record<string, string>;
|
|
@@ -442,6 +500,13 @@ interface GetServicesParams {
|
|
|
442
500
|
providerId?: string;
|
|
443
501
|
limit?: number;
|
|
444
502
|
cursor?: string;
|
|
503
|
+
query?: string;
|
|
504
|
+
ids?: string[];
|
|
505
|
+
statuses?: string[];
|
|
506
|
+
categoryId?: string;
|
|
507
|
+
categoryFilterBlocks?: any[];
|
|
508
|
+
sortField?: string;
|
|
509
|
+
sortDirection?: string;
|
|
445
510
|
}
|
|
446
511
|
interface ReservationCheckoutParams {
|
|
447
512
|
items: any[];
|
|
@@ -644,17 +709,33 @@ interface HandleInvitationParams {
|
|
|
644
709
|
interface TestWebhookParams {
|
|
645
710
|
webhook: any;
|
|
646
711
|
}
|
|
712
|
+
interface CollectionConfigParams {
|
|
713
|
+
isPubliclyReadable?: boolean;
|
|
714
|
+
isPubliclyWritable?: boolean;
|
|
715
|
+
isSubmissionEnabled?: boolean;
|
|
716
|
+
isCaptchaRequired?: boolean;
|
|
717
|
+
notificationEmails?: string[];
|
|
718
|
+
unsubscribeUrl?: string | null;
|
|
719
|
+
}
|
|
647
720
|
interface CreateCollectionParams {
|
|
648
721
|
name: string;
|
|
649
|
-
|
|
650
|
-
|
|
722
|
+
type?: string;
|
|
723
|
+
blocks?: any[];
|
|
724
|
+
config?: CollectionConfigParams;
|
|
725
|
+
entity?: string | null;
|
|
726
|
+
plans?: any[];
|
|
727
|
+
seo?: any;
|
|
651
728
|
[key: string]: any;
|
|
652
729
|
}
|
|
653
730
|
interface UpdateCollectionParams {
|
|
654
731
|
id: string;
|
|
655
732
|
name?: string;
|
|
656
|
-
|
|
657
|
-
|
|
733
|
+
type?: string;
|
|
734
|
+
blocks?: any[];
|
|
735
|
+
config?: CollectionConfigParams;
|
|
736
|
+
entity?: string | null;
|
|
737
|
+
plans?: any[];
|
|
738
|
+
seo?: any;
|
|
658
739
|
[key: string]: any;
|
|
659
740
|
}
|
|
660
741
|
interface DeleteCollectionParams {
|
|
@@ -666,6 +747,8 @@ interface GetCollectionParams {
|
|
|
666
747
|
interface GetCollectionsParams {
|
|
667
748
|
name?: string | null;
|
|
668
749
|
ids?: string[] | null;
|
|
750
|
+
entity?: string | null;
|
|
751
|
+
type?: string | null;
|
|
669
752
|
}
|
|
670
753
|
interface GetEntriesParams {
|
|
671
754
|
collectionId: string;
|
|
@@ -1061,4 +1144,4 @@ interface Slot {
|
|
|
1061
1144
|
dateText: string;
|
|
1062
1145
|
}
|
|
1063
1146
|
|
|
1064
|
-
export { type AddPhoneNumberParams, type ApiResponse, type Block, type Business, type BusinessConfig, type BusinessEmails, type BusinessReservationConfigs, type Condition, type ConfirmUserParams, type CreateBusinessParams, type CreateCollectionEntryParams, type CreateCollectionParams, type CreateEntryParams, type CreateFeatureFlagParams, type CreateOrderParams, type CreatePortalSessionParams, type CreateProductParams, type CreatePromoCodeParams, type CreateProviderParams, type CreateReservationParams, type CreateRoleParams, type CreateServiceParams, type DayAvailability, type DeleteBusinessMediaParams, type DeleteBusinessParams, type DeleteCollectionEntryParams, type DeleteCollectionParams, type DeleteFeatureFlagParams, type DeleteProductParams, type DeletePromoCodeParams, type DeleteProviderParams, type DeleteRoleParams, type DeleteServiceParams, type DeleteUserParams, type Discount, type EshopCartItem, type EshopItem, type EshopStoreState, type FeatureFlag, type FeatureFlagStatus, type FlagResults, type ForgotPasswordParams, type GenerateBlocksParams, type GetAnalyticsHealthParams, type GetAnalyticsParams, type GetAvailabilityParams, type GetBusinessMediaParams, type GetBusinessMediaParams2, type GetBusinessParams, type GetBusinessParentsParams, type GetBusinessServiceWorkingTimeParams, type GetBusinessesParams, type GetCollectionEntriesParams, type GetCollectionEntryParams, type GetCollectionParams, type GetCollectionSubscribersParams, type GetCollectionsParams, type GetDeliveryStatsParams, type GetEntriesParams, type GetFeatureFlagParams, type GetFeatureFlagResultsParams, type GetFeatureFlagsParams, type GetLoginUrlParams, type GetMeParams, type GetOrderParams, type GetOrdersParams, type GetProductParams, type GetProductsParams, type GetPromoCodeParams, type GetPromoCodesParams, type GetProviderParams, type GetProvidersParams, type GetQuoteParams, type GetReservationParams, type GetReservationQuoteParams, type GetRoleParams, type GetRolesParams, type GetServiceParams, type GetServiceProvidersParams, type GetServicesParams, type GetSlotsForDateParams, type GetSubscriptionParams, type GetSubscriptionPlansParams, type GetVariableMetadataParams, type GetVariantParams, type GetVariantResponse, type HandleInvitationParams, type InviteUserParams, type Language, type Location, type LoginUserParams, type LogoutParams, type Market, type Media, type MediaResolution, type OrderCheckoutParams, type OrderConfigs, type OutcastDate, type PaginatedResponse, type Payment, type PaymentMethod, PaymentMethodType, type PaymentProviderConfig, type PaymentRefund, type PhoneNumberConfirmParams, type Price, type ProcessRefundParams, type PromoCodeValidation, type ProviderWithTimeline, type Quote, type RegisterUserParams, type RequestOptions, type Reservation, type ReservationCartItem, type ReservationCheckoutParams, type ReservationItem, type ReservationQuoteItem, type ReservationStoreState, type ResetForgotPasswordParams, type ResetPasswordParams, type SearchReservationsParams, type SearchUsersParams, type SendEntryParams, type Seo, type SetProviderScheduleParams, type SetRoleParams, type SetupAnalyticsParams, type ShippingMethod, type ShippingWeightTier, type Slot, type SpecificDate, type StatusEvent, type SubscribeParams, type TestWebhookParams, type TimelinePoint, type TrackEmailOpenParams, type TrackEventParams, type TrackEventResponse, type TriggerBuildsParams, type UpdateBusinessParams, type UpdateCollectionParams, type UpdateEntryParams, type UpdateFeatureFlagParams, type UpdateMediaParams, type UpdateNotificationsParams, type UpdateOrderParams, type UpdateProductParams, type UpdatePromoCodeParams, type UpdateProviderParams, type UpdateReservationParams, type UpdateRoleParams, type UpdateServiceParams, type UpdateUserProfileParams, type UploadBusinessMediaParams, type UserSubscribeParams, type Variant, type VariantInput, type VariantResult, type WorkingDay, type WorkingHour, type WorkingTime, type Zone, type ZoneScope };
|
|
1147
|
+
export { type AddPhoneNumberParams, type ApiResponse, type Block, type Business, type BusinessConfig, type BusinessEmails, type BusinessReservationConfigs, type Collection, type CollectionConfig, type CollectionConfigParams, type CollectionEntry, CollectionEntryType, CollectionType, type Condition, type ConfirmUserParams, type CreateBusinessParams, type CreateCollectionEntryParams, type CreateCollectionParams, type CreateEntryParams, type CreateFeatureFlagParams, type CreateOrderParams, type CreatePortalSessionParams, type CreateProductParams, type CreatePromoCodeParams, type CreateProviderParams, type CreateReservationParams, type CreateRoleParams, type CreateServiceParams, type DayAvailability, type DeleteBusinessMediaParams, type DeleteBusinessParams, type DeleteCollectionEntryParams, type DeleteCollectionParams, type DeleteFeatureFlagParams, type DeleteProductParams, type DeletePromoCodeParams, type DeleteProviderParams, type DeleteRoleParams, type DeleteServiceParams, type DeleteUserParams, type Discount, type EshopCartItem, type EshopItem, type EshopStoreState, type FeatureFlag, type FeatureFlagStatus, type FlagResults, type ForgotPasswordParams, type GenerateBlocksParams, type GetAnalyticsHealthParams, type GetAnalyticsParams, type GetAvailabilityParams, type GetBusinessMediaParams, type GetBusinessMediaParams2, type GetBusinessParams, type GetBusinessParentsParams, type GetBusinessServiceWorkingTimeParams, type GetBusinessesParams, type GetCollectionEntriesParams, type GetCollectionEntryParams, type GetCollectionParams, type GetCollectionSubscribersParams, type GetCollectionsParams, type GetDeliveryStatsParams, type GetEntriesParams, type GetFeatureFlagParams, type GetFeatureFlagResultsParams, type GetFeatureFlagsParams, type GetLoginUrlParams, type GetMeParams, type GetOrderParams, type GetOrdersParams, type GetProductParams, type GetProductsParams, type GetPromoCodeParams, type GetPromoCodesParams, type GetProviderParams, type GetProvidersParams, type GetQuoteParams, type GetReservationParams, type GetReservationQuoteParams, type GetRoleParams, type GetRolesParams, type GetServiceParams, type GetServiceProvidersParams, type GetServicesParams, type GetSlotsForDateParams, type GetSubscriptionParams, type GetSubscriptionPlansParams, type GetVariableMetadataParams, type GetVariantParams, type GetVariantResponse, type HandleInvitationParams, type InviteUserParams, type Language, type Location, type LoginUserParams, type LogoutParams, type Market, type Media, type MediaResolution, type OrderCheckoutParams, type OrderConfigs, type OutcastDate, type PaginatedResponse, type Payment, type PaymentMethod, PaymentMethodType, type PaymentProviderConfig, type PaymentRefund, type PhoneNumberConfirmParams, type Price, type ProcessRefundParams, type PromoCodeValidation, type ProviderWithTimeline, type Quote, type RegisterUserParams, type RequestOptions, type Reservation, type ReservationCartItem, type ReservationCheckoutParams, type ReservationItem, type ReservationQuoteItem, type ReservationStoreState, type ResetForgotPasswordParams, type ResetPasswordParams, type SearchReservationsParams, type SearchUsersParams, type SendEntryParams, type Seo, type SetProviderScheduleParams, type SetRoleParams, type SetupAnalyticsParams, type ShippingMethod, type ShippingWeightTier, type Slot, type SpecificDate, type StatusEvent, type SubscribeParams, type TestWebhookParams, type TimelinePoint, type TrackEmailOpenParams, type TrackEventParams, type TrackEventResponse, type TriggerBuildsParams, type UpdateBusinessParams, type UpdateCollectionParams, type UpdateEntryParams, type UpdateFeatureFlagParams, type UpdateMediaParams, type UpdateNotificationsParams, type UpdateOrderParams, type UpdateProductParams, type UpdatePromoCodeParams, type UpdateProviderParams, type UpdateReservationParams, type UpdateRoleParams, type UpdateServiceParams, type UpdateUserProfileParams, type UploadBusinessMediaParams, type UserSubscribeParams, type Variant, type VariantInput, type VariantResult, type WorkingDay, type WorkingHour, type WorkingTime, type Zone, type ZoneScope };
|
package/dist/types.js
CHANGED
|
@@ -5,7 +5,35 @@ var PaymentMethodType = /* @__PURE__ */ ((PaymentMethodType2) => {
|
|
|
5
5
|
PaymentMethodType2["Free"] = "FREE";
|
|
6
6
|
return PaymentMethodType2;
|
|
7
7
|
})(PaymentMethodType || {});
|
|
8
|
+
var CollectionEntryType = /* @__PURE__ */ ((CollectionEntryType2) => {
|
|
9
|
+
CollectionEntryType2["CONTENT"] = "CONTENT";
|
|
10
|
+
CollectionEntryType2["SERVICE_CATEGORY"] = "SERVICE_CATEGORY";
|
|
11
|
+
CollectionEntryType2["PROVIDER_CATEGORY"] = "PROVIDER_CATEGORY";
|
|
12
|
+
CollectionEntryType2["PRODUCT_CATEGORY"] = "PRODUCT_CATEGORY";
|
|
13
|
+
CollectionEntryType2["EMAIL_FORGOT_PASSWORD"] = "EMAIL_FORGOT_PASSWORD";
|
|
14
|
+
CollectionEntryType2["EMAIL_USER_CONFIRM"] = "EMAIL_USER_CONFIRM";
|
|
15
|
+
CollectionEntryType2["EMAIL_USER_INVITATION"] = "EMAIL_USER_INVITATION";
|
|
16
|
+
CollectionEntryType2["EMAIL_ORDER_STATUS_UPDATE"] = "EMAIL_ORDER_STATUS_UPDATE";
|
|
17
|
+
CollectionEntryType2["EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE"] = "EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE";
|
|
18
|
+
CollectionEntryType2["EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE"] = "EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE";
|
|
19
|
+
CollectionEntryType2["NEWSLETTER_POST"] = "NEWSLETTER_POST";
|
|
20
|
+
CollectionEntryType2["NEWSLETTER_ENTRY"] = "NEWSLETTER_ENTRY";
|
|
21
|
+
return CollectionEntryType2;
|
|
22
|
+
})(CollectionEntryType || {});
|
|
23
|
+
var CollectionType = /* @__PURE__ */ ((CollectionType2) => {
|
|
24
|
+
CollectionType2["SINGLE"] = "SINGLE";
|
|
25
|
+
CollectionType2["CONTENT"] = "CONTENT";
|
|
26
|
+
CollectionType2["EMAIL_TEMPLATES"] = "EMAIL_TEMPLATES";
|
|
27
|
+
CollectionType2["SERVICE_CATEGORIES"] = "SERVICE_CATEGORIES";
|
|
28
|
+
CollectionType2["PROVIDER_CATEGORIES"] = "PROVIDER_CATEGORIES";
|
|
29
|
+
CollectionType2["PRODUCT_CATEGORIES"] = "PRODUCT_CATEGORIES";
|
|
30
|
+
CollectionType2["NEWSLETTER"] = "NEWSLETTER";
|
|
31
|
+
CollectionType2["NEWSLETTER_SEGMENTS"] = "NEWSLETTER_SEGMENTS";
|
|
32
|
+
CollectionType2["SERVICE"] = "SERVICE";
|
|
33
|
+
CollectionType2["PRODUCT"] = "PRODUCT";
|
|
34
|
+
return CollectionType2;
|
|
35
|
+
})(CollectionType || {});
|
|
8
36
|
|
|
9
|
-
export { PaymentMethodType };
|
|
37
|
+
export { CollectionEntryType, CollectionType, PaymentMethodType };
|
|
10
38
|
//# sourceMappingURL=types.js.map
|
|
11
39
|
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/index.ts"],"names":["PaymentMethodType"],"mappings":";AA4CO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AACN,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AACP,EAAAA,mBAAA,YAAA,CAAA,GAAa,aAAA;AACb,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AAHI,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA","file":"types.js","sourcesContent":["export * from './api';\n\nexport interface PaymentRefund {\n\tid: string;\n\tentity: string;\n\ttotal: number;\n\tproviderRefundId?: string;\n\tstatus: string;\n\tcreatedAt: number;\n}\n\nexport interface Payment {\n\tcurrency: string;\n\tmarket: string;\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttotal: number;\n\tpaid: number;\n\ttax?: {\n\t\tamount: number;\n\t\tmodeSnapshot?: string;\n\t\trateBps: number;\n\t\tlines: Array<{ rateBps: number; amount: number; label?: string; scope?: string }>;\n\t};\n\tpromoCode?: {\n\t\tid: string;\n\t\tcode: string;\n\t\ttype: string;\n\t\tvalue: number;\n\t};\n\ttype: PaymentMethodType;\n\tprovider?: {\n\t\tcustomerId: string;\n\t\tpaymentIntentId?: string;\n\t\tsubscriptionId?: string;\n\t\tpriceId?: string;\n\t};\n\trefunds: PaymentRefund[];\n\tzoneId?: string;\n\tpaymentMethodId?: string;\n\tshippingMethodId?: string;\n}\n\nexport enum PaymentMethodType {\n\tCash = \"CASH\",\n\tCreditCard = \"CREDIT_CARD\",\n\tFree = \"FREE\",\n}\n\nexport interface PromoCodeValidation {\n\tpromoCodeId: string;\n\tcode: string;\n\tdiscounts: any[];\n\tconditions: any[];\n}\n\nexport interface Quote {\n\tmarket: string;\n\tzone: Zone;\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tshippingMethod: ShippingMethod | null;\n\tpaymentMethod: PaymentMethod | null;\n\tpromoCode: PromoCodeValidation | null;\n\tpayment: Payment;\n\tchargeAmount: number;\n\tid?: string;\n\texpiresAt?: number;\n}\n\n\nexport interface Price {\n\tmarket: string;\n\tamount: number;\n\tcompareAt?: number;\n}\n\nexport interface Location {\n\tcountry?: string | null;\n\taddress?: string | null;\n\tcity?: string | null;\n\tstate?: string | null;\n\tpostalCode?: string | null;\n\tcoordinates?: { lat: number; lon: number } | null;\n}\n\nexport interface EshopCartItem {\n\tid: string;\n\tproductId: string;\n\tvariantId: string;\n\tproductName: string;\n\tproductSlug: string;\n\tvariantAttributes: Record<string, any>;\n\tprice: Price;\n\tquantity: number;\n\taddedAt: number;\n}\n\nexport interface ReservationCartItem {\n\tid: string;\n\tserviceId: string;\n\tserviceName: string;\n\tdate: string;\n\tfrom: number;\n\tto: number;\n\ttimeText: string;\n\tproviderId?: string;\n\tblocks: any[];\n}\n\nexport interface PaymentProviderConfig {\n\ttype: \"STRIPE\";\n\tpublicKey: string;\n\tsecretKey: string;\n\twebhookSecret: string;\n}\n\nexport interface ShippingWeightTier {\n\tupToGrams: number;\n\tamount: number;\n}\n\nexport interface PaymentMethod {\n\tid: string;\n\ttype: PaymentMethodType;\n}\n\nexport interface ShippingMethod {\n\tid: string;\n\ttaxable: boolean;\n\tetaText: string;\n\tpickupLocation?: Location;\n\tamount: number;\n\tfreeAbove?: number;\n\tweightTiers?: ShippingWeightTier[];\n}\n\nexport type ZoneScope = \"ORDER\" | \"RESERVATION\";\n\nexport interface Zone {\n\tid: string;\n\tmarketId: string;\n\tscope: ZoneScope;\n\tcountries: string[];\n\tstates: string[];\n\tpostalCodes: string[];\n\ttaxBps: number;\n\tpaymentMethods: PaymentMethod[];\n\tshippingMethods: ShippingMethod[];\n}\n\nexport interface Market {\n\tid: string;\n\tcurrency: string;\n\ttaxMode: \"EXCLUSIVE\" | \"INCLUSIVE\";\n}\n\n\nexport interface Language {\n\tid: string;\n}\n\nexport interface BusinessEmails {\n\tbilling: string;\n\tsupport: string;\n}\n\nexport interface OrderConfigs {\n\tisEmailRequired: boolean;\n\tisPhoneRequired: boolean;\n}\n\nexport interface BusinessReservationConfigs {\n\tisEmailRequired: boolean;\n\tisPhoneRequired: boolean;\n}\n\nexport interface BusinessConfig {\n\tlanguages: Language[];\n\tmarkets: Market[];\n\tzones: Zone[];\n\tbuildHooks: string[];\n\twebhooks: any[];\n\torderBlocks: any[];\n\treservationBlocks: any[];\n\torderConfigs: OrderConfigs;\n\treservationConfigs: BusinessReservationConfigs;\n\tpaymentProvider?: PaymentProviderConfig;\n\taiProvider?: any;\n\temails: BusinessEmails;\n}\n\nexport interface Business {\n\tid: string;\n\tname: string;\n\tconfigs?: BusinessConfig;\n}\n\nexport interface EshopStoreState {\n\tbusinessId: string;\n\tselectedShippingMethodId: string | null;\n\tuserToken: string | null;\n\tprocessingCheckout: boolean;\n\tloading: boolean;\n\terror: string | null;\n\tphoneNumber: string;\n\tphoneError: string | null;\n\tverificationCode: string;\n\tverifyError: string | null;\n}\n\nexport interface Block {\n\tid: string;\n\tkey: string;\n\ttype: string;\n\tproperties?: any;\n\tvalue?: any;\n}\n\nexport interface Seo {\n\tslug: Record<string, string>;\n\tmetaTitle: Record<string, string>;\n\tmetaDescription: Record<string, string>;\n\tcanonicalUrl: Record<string, string>;\n\togImage: string;\n}\n\nexport interface MediaResolution {\n\tid: string;\n\tsize: string;\n\turl: string;\n}\n\nexport interface Media {\n\tid: string;\n\tresolutions: { [key: string]: MediaResolution };\n\tmimeType: string;\n\ttitle?: string | null;\n\tdescription?: string | null;\n\talt?: string | null;\n\towner: string;\n\tmetadata?: string | null;\n\tuploadedAt: string;\n\tseo: Seo;\n}\n\nexport interface ApiResponse<T> {\n\tsuccess: boolean;\n\tdata?: T;\n\terror?: string;\n\tcursor?: string;\n\ttotal?: number;\n}\n\nexport interface PaginatedResponse<T> {\n\tdata: T[];\n\tmeta?: {\n\t\ttotal: number;\n\t\tpage: number;\n\t\tper_page: number;\n\t};\n}\n\nexport interface ReservationStoreState {\n\tcurrentStep: number;\n\ttotalSteps: number;\n\tsteps: Record<number, { name: string; labelKey: string }>;\n\tweekdays: string[];\n\tmonthYear: string;\n\tdays: any[];\n\tcurrent: Date;\n\tselectedDate: string | null;\n\tslots: any[];\n\tselectedSlot: any | null;\n\tselectedProvider: any | null;\n\tproviders: any[];\n\tloading: boolean;\n\tstartDate: string | null;\n\tendDate: string | null;\n\tphoneNumber: string;\n\tphoneError: string | null;\n\tphoneSuccess: string | null;\n\tverificationCode: string;\n\tverifyError: string | null;\n\tisPhoneVerified: boolean;\n\tisSendingCode: boolean;\n\tisVerifying: boolean;\n\tcodeSentAt: number | null;\n\tcanResendAt: number | null;\n\tguestToken: string | null;\n\tservice: any | null;\n\tbusiness: Business | null;\n\tcurrency: string;\n\treservationBlocks: Block[];\n\tapiUrl: string;\n\tbusinessId: string;\n\ttimezone: string;\n\ttzGroups: any;\n\titems: ReservationCartItem[];\n\tallowedPaymentMethods: string[];\n\tpaymentConfig: {\n\t\tprovider: PaymentProviderConfig | null;\n\t\tenabled: boolean;\n\t};\n}\n\nexport interface StatusEvent {\n\tid: string;\n\tchangedBy: 'BUSINESS' | 'USER' | 'SYSTEM';\n\tuserId?: string;\n\tstatus: string;\n\tnote?: string;\n\ttimestamp: number;\n}\n\nexport interface ReservationItem {\n\tid: string;\n\tserviceId: string;\n\tproviderId: string;\n\tbusinessId: string;\n\treservationId: string;\n\tuserId: string;\n\tfrom: number;\n\tto: number;\n\tblocks: Block[];\n\tprice: Price;\n}\n\nexport interface Reservation {\n\tid: string;\n\tnumber: string;\n\tuserId: string;\n\tblocks: Block[];\n\tbusinessId: string;\n\tstatuses: StatusEvent[];\n\tserviceIds: string[];\n\tproviderIds: string[];\n\tpayment: Payment;\n\tbusiness?: Business;\n\tuser?: any;\n\titems: ReservationItem[];\n\temail?: string;\n\tphone?: string;\n\tcreatedAt: number;\n\tlastModified: number;\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/types/index.ts"],"names":["PaymentMethodType","CollectionEntryType","CollectionType"],"mappings":";AA4CO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AACN,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AACP,EAAAA,mBAAA,YAAA,CAAA,GAAa,aAAA;AACb,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AAHI,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA;AAqTL,IAAK,mBAAA,qBAAAC,oBAAAA,KAAL;AACN,EAAAA,qBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,qBAAA,kBAAA,CAAA,GAAmB,kBAAA;AACnB,EAAAA,qBAAA,mBAAA,CAAA,GAAoB,mBAAA;AACpB,EAAAA,qBAAA,kBAAA,CAAA,GAAmB,kBAAA;AACnB,EAAAA,qBAAA,uBAAA,CAAA,GAAwB,uBAAA;AACxB,EAAAA,qBAAA,oBAAA,CAAA,GAAqB,oBAAA;AACrB,EAAAA,qBAAA,uBAAA,CAAA,GAAwB,uBAAA;AACxB,EAAAA,qBAAA,2BAAA,CAAA,GAA4B,2BAAA;AAC5B,EAAAA,qBAAA,0CAAA,CAAA,GAA2C,0CAAA;AAC3C,EAAAA,qBAAA,0CAAA,CAAA,GAA2C,0CAAA;AAC3C,EAAAA,qBAAA,iBAAA,CAAA,GAAkB,iBAAA;AAClB,EAAAA,qBAAA,kBAAA,CAAA,GAAmB,kBAAA;AAZR,EAAA,OAAAA,oBAAAA;AAAA,CAAA,EAAA,mBAAA,IAAA,EAAA;AAeL,IAAK,cAAA,qBAAAC,eAAAA,KAAL;AACN,EAAAA,gBAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,gBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,gBAAA,iBAAA,CAAA,GAAkB,iBAAA;AAClB,EAAAA,gBAAA,oBAAA,CAAA,GAAqB,oBAAA;AACrB,EAAAA,gBAAA,qBAAA,CAAA,GAAsB,qBAAA;AACtB,EAAAA,gBAAA,oBAAA,CAAA,GAAqB,oBAAA;AACrB,EAAAA,gBAAA,YAAA,CAAA,GAAa,YAAA;AACb,EAAAA,gBAAA,qBAAA,CAAA,GAAsB,qBAAA;AACtB,EAAAA,gBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,gBAAA,SAAA,CAAA,GAAU,SAAA;AAVC,EAAA,OAAAA,eAAAA;AAAA,CAAA,EAAA,cAAA,IAAA,EAAA","file":"types.js","sourcesContent":["export * from './api';\n\nexport interface PaymentRefund {\n\tid: string;\n\tentity: string;\n\ttotal: number;\n\tproviderRefundId?: string;\n\tstatus: string;\n\tcreatedAt: number;\n}\n\nexport interface Payment {\n\tcurrency: string;\n\tmarket: string;\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttotal: number;\n\tpaid: number;\n\ttax?: {\n\t\tamount: number;\n\t\tmodeSnapshot?: string;\n\t\trateBps: number;\n\t\tlines: Array<{ rateBps: number; amount: number; label?: string; scope?: string }>;\n\t};\n\tpromoCode?: {\n\t\tid: string;\n\t\tcode: string;\n\t\ttype: string;\n\t\tvalue: number;\n\t};\n\ttype: PaymentMethodType;\n\tprovider?: {\n\t\tcustomerId: string;\n\t\tpaymentIntentId?: string;\n\t\tsubscriptionId?: string;\n\t\tpriceId?: string;\n\t};\n\trefunds: PaymentRefund[];\n\tzoneId?: string;\n\tpaymentMethodId?: string;\n\tshippingMethodId?: string;\n}\n\nexport enum PaymentMethodType {\n\tCash = \"CASH\",\n\tCreditCard = \"CREDIT_CARD\",\n\tFree = \"FREE\",\n}\n\nexport interface PromoCodeValidation {\n\tpromoCodeId: string;\n\tcode: string;\n\tdiscounts: any[];\n\tconditions: any[];\n}\n\nexport interface Quote {\n\tmarket: string;\n\tzone: Zone;\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tshippingMethod: ShippingMethod | null;\n\tpaymentMethod: PaymentMethod | null;\n\tpromoCode: PromoCodeValidation | null;\n\tpayment: Payment;\n\tchargeAmount: number;\n\tid?: string;\n\texpiresAt?: number;\n}\n\n\nexport interface Price {\n\tmarket: string;\n\tamount: number;\n\tcompareAt?: number;\n}\n\nexport interface Location {\n\tcountry?: string | null;\n\taddress?: string | null;\n\tcity?: string | null;\n\tstate?: string | null;\n\tpostalCode?: string | null;\n\tcoordinates?: { lat: number; lon: number } | null;\n}\n\nexport interface EshopCartItem {\n\tid: string;\n\tproductId: string;\n\tvariantId: string;\n\tproductName: string;\n\tproductSlug: string;\n\tvariantAttributes: Record<string, any>;\n\tprice: Price;\n\tquantity: number;\n\taddedAt: number;\n}\n\nexport interface ReservationCartItem {\n\tid: string;\n\tserviceId: string;\n\tserviceName: string;\n\tdate: string;\n\tfrom: number;\n\tto: number;\n\ttimeText: string;\n\tproviderId?: string;\n\tblocks: any[];\n}\n\nexport interface PaymentProviderConfig {\n\ttype: \"STRIPE\";\n\tpublicKey: string;\n\tsecretKey: string;\n\twebhookSecret: string;\n}\n\nexport interface ShippingWeightTier {\n\tupToGrams: number;\n\tamount: number;\n}\n\nexport interface PaymentMethod {\n\tid: string;\n\ttype: PaymentMethodType;\n}\n\nexport interface ShippingMethod {\n\tid: string;\n\ttaxable: boolean;\n\tetaText: string;\n\tpickupLocation?: Location;\n\tamount: number;\n\tfreeAbove?: number;\n\tweightTiers?: ShippingWeightTier[];\n}\n\nexport type ZoneScope = \"ORDER\" | \"RESERVATION\";\n\nexport interface Zone {\n\tid: string;\n\tmarketId: string;\n\tscope: ZoneScope;\n\tcountries: string[];\n\tstates: string[];\n\tpostalCodes: string[];\n\ttaxBps: number;\n\tpaymentMethods: PaymentMethod[];\n\tshippingMethods: ShippingMethod[];\n}\n\nexport interface Market {\n\tid: string;\n\tcurrency: string;\n\ttaxMode: \"EXCLUSIVE\" | \"INCLUSIVE\";\n}\n\n\nexport interface Language {\n\tid: string;\n}\n\nexport interface BusinessEmails {\n\tbilling: string;\n\tsupport: string;\n}\n\nexport interface OrderConfigs {\n\tisEmailRequired: boolean;\n\tisPhoneRequired: boolean;\n}\n\nexport interface BusinessReservationConfigs {\n\tisEmailRequired: boolean;\n\tisPhoneRequired: boolean;\n}\n\nexport interface BusinessConfig {\n\tlanguages: Language[];\n\tmarkets: Market[];\n\tzones: Zone[];\n\tbuildHooks: string[];\n\twebhooks: any[];\n\torderBlocks: any[];\n\treservationBlocks: any[];\n\torderConfigs: OrderConfigs;\n\treservationConfigs: BusinessReservationConfigs;\n\tpaymentProvider?: PaymentProviderConfig;\n\taiProvider?: any;\n\temails: BusinessEmails;\n}\n\nexport interface Business {\n\tid: string;\n\tname: string;\n\tconfigs?: BusinessConfig;\n}\n\nexport interface EshopStoreState {\n\tbusinessId: string;\n\tselectedShippingMethodId: string | null;\n\tuserToken: string | null;\n\tprocessingCheckout: boolean;\n\tloading: boolean;\n\terror: string | null;\n\tphoneNumber: string;\n\tphoneError: string | null;\n\tverificationCode: string;\n\tverifyError: string | null;\n}\n\nexport interface Block {\n\tid: string;\n\tkey: string;\n\ttype: string;\n\tproperties?: any;\n\tvalue?: any;\n}\n\nexport interface Seo {\n\tslug: Record<string, string>;\n\tmetaTitle: Record<string, string>;\n\tmetaDescription: Record<string, string>;\n\tcanonicalUrl: Record<string, string>;\n\togImage: string;\n}\n\nexport interface MediaResolution {\n\tid: string;\n\tsize: string;\n\turl: string;\n}\n\nexport interface Media {\n\tid: string;\n\tresolutions: { [key: string]: MediaResolution };\n\tmimeType: string;\n\ttitle?: string | null;\n\tdescription?: string | null;\n\talt?: string | null;\n\towner: string;\n\tmetadata?: string | null;\n\tuploadedAt: string;\n\tseo: Seo;\n}\n\nexport interface ApiResponse<T> {\n\tsuccess: boolean;\n\tdata?: T;\n\terror?: string;\n\tcursor?: string;\n\ttotal?: number;\n}\n\nexport interface PaginatedResponse<T> {\n\tdata: T[];\n\tmeta?: {\n\t\ttotal: number;\n\t\tpage: number;\n\t\tper_page: number;\n\t};\n}\n\nexport interface ReservationStoreState {\n\tcurrentStep: number;\n\ttotalSteps: number;\n\tsteps: Record<number, { name: string; labelKey: string }>;\n\tweekdays: string[];\n\tmonthYear: string;\n\tdays: any[];\n\tcurrent: Date;\n\tselectedDate: string | null;\n\tslots: any[];\n\tselectedSlot: any | null;\n\tselectedProvider: any | null;\n\tproviders: any[];\n\tloading: boolean;\n\tstartDate: string | null;\n\tendDate: string | null;\n\tphoneNumber: string;\n\tphoneError: string | null;\n\tphoneSuccess: string | null;\n\tverificationCode: string;\n\tverifyError: string | null;\n\tisPhoneVerified: boolean;\n\tisSendingCode: boolean;\n\tisVerifying: boolean;\n\tcodeSentAt: number | null;\n\tcanResendAt: number | null;\n\tguestToken: string | null;\n\tservice: any | null;\n\tbusiness: Business | null;\n\tcurrency: string;\n\treservationBlocks: Block[];\n\tapiUrl: string;\n\tbusinessId: string;\n\ttimezone: string;\n\ttzGroups: any;\n\titems: ReservationCartItem[];\n\tallowedPaymentMethods: string[];\n\tpaymentConfig: {\n\t\tprovider: PaymentProviderConfig | null;\n\t\tenabled: boolean;\n\t};\n}\n\nexport interface StatusEvent {\n\tid: string;\n\tchangedBy: 'BUSINESS' | 'USER' | 'SYSTEM';\n\tuserId?: string;\n\tstatus: string;\n\tnote?: string;\n\ttimestamp: number;\n}\n\nexport interface ReservationItem {\n\tid: string;\n\tserviceId: string;\n\tproviderId: string;\n\tbusinessId: string;\n\treservationId: string;\n\tuserId: string;\n\tfrom: number;\n\tto: number;\n\tblocks: Block[];\n\tprice: Price;\n}\n\nexport interface Reservation {\n\tid: string;\n\tnumber: string;\n\tuserId: string;\n\tblocks: Block[];\n\tbusinessId: string;\n\tstatuses: StatusEvent[];\n\tserviceIds: string[];\n\tproviderIds: string[];\n\tpayment: Payment;\n\tbusiness?: Business;\n\tuser?: any;\n\titems: ReservationItem[];\n\temail?: string;\n\tphone?: string;\n\tcreatedAt: number;\n\tlastModified: number;\n}\n\n// ===== CMS Types =====\n\nexport enum CollectionEntryType {\n\tCONTENT = 'CONTENT',\n\tSERVICE_CATEGORY = 'SERVICE_CATEGORY',\n\tPROVIDER_CATEGORY = 'PROVIDER_CATEGORY',\n\tPRODUCT_CATEGORY = 'PRODUCT_CATEGORY',\n\tEMAIL_FORGOT_PASSWORD = 'EMAIL_FORGOT_PASSWORD',\n\tEMAIL_USER_CONFIRM = 'EMAIL_USER_CONFIRM',\n\tEMAIL_USER_INVITATION = 'EMAIL_USER_INVITATION',\n\tEMAIL_ORDER_STATUS_UPDATE = 'EMAIL_ORDER_STATUS_UPDATE',\n\tEMAIL_RESERVATION_BUSINESS_STATUS_UPDATE = 'EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE',\n\tEMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE = 'EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE',\n\tNEWSLETTER_POST = 'NEWSLETTER_POST',\n\tNEWSLETTER_ENTRY = 'NEWSLETTER_ENTRY',\n}\n\nexport enum CollectionType {\n\tSINGLE = 'SINGLE',\n\tCONTENT = 'CONTENT',\n\tEMAIL_TEMPLATES = 'EMAIL_TEMPLATES',\n\tSERVICE_CATEGORIES = 'SERVICE_CATEGORIES',\n\tPROVIDER_CATEGORIES = 'PROVIDER_CATEGORIES',\n\tPRODUCT_CATEGORIES = 'PRODUCT_CATEGORIES',\n\tNEWSLETTER = 'NEWSLETTER',\n\tNEWSLETTER_SEGMENTS = 'NEWSLETTER_SEGMENTS',\n\tSERVICE = 'SERVICE',\n\tPRODUCT = 'PRODUCT',\n}\n\nexport interface CollectionConfig {\n\tisPubliclyReadable: boolean;\n\tisPubliclyWritable: boolean;\n\tisSubmissionEnabled: boolean;\n\tisCaptchaRequired: boolean;\n\tnotificationEmails: string[];\n\tunsubscribeUrl: string | null;\n}\n\nexport interface Collection {\n\tid: string;\n\tname: string;\n\tbusinessId: string;\n\ttype: CollectionType;\n\tblocks: Block[];\n\tconfig: CollectionConfig;\n\tentity: string;\n\tstatuses: StatusEvent[];\n\tseo: Seo;\n}\n\nexport interface CollectionEntry {\n\tid: string;\n\tname: Record<string, string>;\n\tcollectionId: string;\n\tbusinessId: string;\n\ttype: CollectionEntryType;\n\tblocks: Block[];\n\tstatuses: StatusEvent[];\n\tprops?: any;\n\tseo: Seo;\n\tcreatedAt: number;\n\tupdatedAt: number;\n}\n"]}
|