arky-sdk 0.3.120 → 0.3.122
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 +25 -80
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -13
- package/dist/index.d.ts +9 -13
- package/dist/index.js +25 -80
- package/dist/index.js.map +1 -1
- package/dist/types.cjs +21 -30
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +113 -145
- package/dist/types.d.ts +113 -145
- package/dist/types.js +21 -29
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/types.cjs
CHANGED
|
@@ -7,37 +7,28 @@ var PaymentMethodType = /* @__PURE__ */ ((PaymentMethodType2) => {
|
|
|
7
7
|
PaymentMethodType2["Free"] = "FREE";
|
|
8
8
|
return PaymentMethodType2;
|
|
9
9
|
})(PaymentMethodType || {});
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
+
var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
11
|
+
NodeType2["CONTENT"] = "CONTENT";
|
|
12
|
+
NodeType2["CATEGORY"] = "CATEGORY";
|
|
13
|
+
NodeType2["TAXONOMY_SERVICE"] = "TAXONOMY_SERVICE";
|
|
14
|
+
NodeType2["TAXONOMY_PROVIDER"] = "TAXONOMY_PROVIDER";
|
|
15
|
+
NodeType2["TAXONOMY_PRODUCT"] = "TAXONOMY_PRODUCT";
|
|
16
|
+
NodeType2["EMAIL_TEMPLATE"] = "EMAIL_TEMPLATE";
|
|
17
|
+
NodeType2["EMAIL_FORGOT_PASSWORD"] = "EMAIL_FORGOT_PASSWORD";
|
|
18
|
+
NodeType2["EMAIL_USER_CONFIRM"] = "EMAIL_USER_CONFIRM";
|
|
19
|
+
NodeType2["EMAIL_USER_INVITATION"] = "EMAIL_USER_INVITATION";
|
|
20
|
+
NodeType2["EMAIL_ORDER_STATUS_UPDATE"] = "EMAIL_ORDER_STATUS_UPDATE";
|
|
21
|
+
NodeType2["EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE"] = "EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE";
|
|
22
|
+
NodeType2["EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE"] = "EMAIL_RESERVATION_CUSTOMER_STATUS_UPDATE";
|
|
23
|
+
NodeType2["NEWSLETTER"] = "NEWSLETTER";
|
|
24
|
+
NodeType2["NEWSLETTER_POST"] = "NEWSLETTER_POST";
|
|
25
|
+
NodeType2["NEWSLETTER_SEGMENT"] = "NEWSLETTER_SEGMENT";
|
|
26
|
+
NodeType2["NEWSLETTER_ENTRY"] = "NEWSLETTER_ENTRY";
|
|
27
|
+
NodeType2["FORM"] = "FORM";
|
|
28
|
+
return NodeType2;
|
|
29
|
+
})(NodeType || {});
|
|
38
30
|
|
|
39
|
-
exports.
|
|
40
|
-
exports.CollectionType = CollectionType;
|
|
31
|
+
exports.NodeType = NodeType;
|
|
41
32
|
exports.PaymentMethodType = PaymentMethodType;
|
|
42
33
|
//# sourceMappingURL=types.cjs.map
|
|
43
34
|
//# sourceMappingURL=types.cjs.map
|
package/dist/types.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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\n// ===== Reservation Domain Types =====\n\nexport interface ServiceDuration {\n\tduration: number;\n\tisPause?: boolean;\n}\n\nexport interface ServiceProvider {\n\tid: string;\n\tproviderId: string;\n\tworkingTime: {\n\t\tworkingDays: Array<{ day: string; workingHours: Array<{ from: number; to: number }> }>;\n\t\toutcastDates: Array<{ month: number; day: number; workingHours: Array<{ from: number; to: number }> }>;\n\t\tspecificDates: Array<{ date: number; workingHours: Array<{ from: number; to: number }> }>;\n\t};\n\tprovider?: Provider;\n}\n\nexport interface Service {\n\tid: string;\n\tname: Record<string, string>;\n\tseo: Seo;\n\tbusinessId: string;\n\tprices: Price[];\n\tdurations: ServiceDuration[];\n\tcategoryFilterBlocks: Block[];\n\tcategoryIds: string[];\n\tblocks: Block[];\n\tisApprovalRequired: boolean;\n\treservationBlocks: Block[];\n\tproviders: ServiceProvider[];\n\tcreatedAt: number;\n\tupdatedAt: number;\n\tstatuses: StatusEvent[];\n}\n\nexport interface ProviderTimelinePoint {\n\ttimestamp: number;\n\tconcurrent: number;\n}\n\nexport interface Provider {\n\tid: string;\n\tname: Record<string, string>;\n\tseo: Seo;\n\tbusinessId: string;\n\tblocks: Block[];\n\tstatuses: StatusEvent[];\n\tconcurrentLimit: number;\n\tcategoryIds: string[];\n\tcategoryFilterBlocks: Block[];\n\ttimeline: ProviderTimelinePoint[];\n\tcreatedAt: number;\n\tupdatedAt: number;\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/types/index.ts"],"names":["PaymentMethodType","NodeType"],"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;AAmTL,IAAK,QAAA,qBAAAC,SAAAA,KAAL;AACN,EAAAA,UAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,UAAA,UAAA,CAAA,GAAW,UAAA;AACX,EAAAA,UAAA,kBAAA,CAAA,GAAmB,kBAAA;AACnB,EAAAA,UAAA,mBAAA,CAAA,GAAoB,mBAAA;AACpB,EAAAA,UAAA,kBAAA,CAAA,GAAmB,kBAAA;AACnB,EAAAA,UAAA,gBAAA,CAAA,GAAiB,gBAAA;AACjB,EAAAA,UAAA,uBAAA,CAAA,GAAwB,uBAAA;AACxB,EAAAA,UAAA,oBAAA,CAAA,GAAqB,oBAAA;AACrB,EAAAA,UAAA,uBAAA,CAAA,GAAwB,uBAAA;AACxB,EAAAA,UAAA,2BAAA,CAAA,GAA4B,2BAAA;AAC5B,EAAAA,UAAA,0CAAA,CAAA,GAA2C,0CAAA;AAC3C,EAAAA,UAAA,0CAAA,CAAA,GAA2C,0CAAA;AAC3C,EAAAA,UAAA,YAAA,CAAA,GAAa,YAAA;AACb,EAAAA,UAAA,iBAAA,CAAA,GAAkB,iBAAA;AAClB,EAAAA,UAAA,oBAAA,CAAA,GAAqB,oBAAA;AACrB,EAAAA,UAAA,kBAAA,CAAA,GAAmB,kBAAA;AACnB,EAAAA,UAAA,MAAA,CAAA,GAAO,MAAA;AAjBI,EAAA,OAAAA,SAAAA;AAAA,CAAA,EAAA,QAAA,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\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\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 NodeType {\n\tCONTENT = 'CONTENT',\n\tCATEGORY = 'CATEGORY',\n\tTAXONOMY_SERVICE = 'TAXONOMY_SERVICE',\n\tTAXONOMY_PROVIDER = 'TAXONOMY_PROVIDER',\n\tTAXONOMY_PRODUCT = 'TAXONOMY_PRODUCT',\n\tEMAIL_TEMPLATE = 'EMAIL_TEMPLATE',\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 = 'NEWSLETTER',\n\tNEWSLETTER_POST = 'NEWSLETTER_POST',\n\tNEWSLETTER_SEGMENT = 'NEWSLETTER_SEGMENT',\n\tNEWSLETTER_ENTRY = 'NEWSLETTER_ENTRY',\n\tFORM = 'FORM',\n}\n\nexport interface NodeConfig {\n\tisPubliclyReadable: boolean;\n\tisPubliclyWritable: boolean;\n\tisSubmissionEnabled: boolean;\n\tisCaptchaRequired: boolean;\n\tnotificationEmails: string[];\n\tunsubscribeUrl: string | null;\n}\n\nexport interface SubscriptionPlan {\n\tid: string;\n\tname: string;\n\tdescription?: string;\n\tproviderPriceId?: string;\n\tprices: Price[];\n}\n\nexport interface NodeSend {\n\tid: string;\n\trecipientSource: string;\n\tscheduledAt: number;\n\tstatus: string;\n\tsentCount: number;\n\tfailedCount: number;\n\tcreatedAt: number;\n}\n\nexport interface Node {\n\tid: string;\n\tname: string;\n\tbusinessId: string;\n\tparentId?: string;\n\tentity: string;\n\ttype: NodeType;\n\tblocks: Block[];\n\tconfig?: NodeConfig;\n\tprops?: any;\n\tplans: SubscriptionPlan[];\n\tstatuses: StatusEvent[];\n\tseo: Seo;\n\tsends: NodeSend[];\n\tcreatedAt: number;\n\tupdatedAt: number;\n}\n\n// ===== Reservation Domain Types =====\n\nexport interface ServiceDuration {\n\tduration: number;\n\tisPause?: boolean;\n}\n\nexport interface ServiceProvider {\n\tid: string;\n\tproviderId: string;\n\tworkingTime: {\n\t\tworkingDays: Array<{ day: string; workingHours: Array<{ from: number; to: number }> }>;\n\t\toutcastDates: Array<{ month: number; day: number; workingHours: Array<{ from: number; to: number }> }>;\n\t\tspecificDates: Array<{ date: number; workingHours: Array<{ from: number; to: number }> }>;\n\t};\n\tprovider?: Provider;\n}\n\nexport interface Service {\n\tid: string;\n\tname: string;\n\tseo: Seo;\n\tbusinessId: string;\n\tprices: Price[];\n\tdurations: ServiceDuration[];\n\tfilterBlocks: Block[];\n\ttaxonomyIds: string[];\n\tisApprovalRequired: boolean;\n\tproviders: ServiceProvider[];\n\tcreatedAt: number;\n\tupdatedAt: number;\n\tstatuses: StatusEvent[];\n}\n\nexport interface ProviderTimelinePoint {\n\ttimestamp: number;\n\tconcurrent: number;\n}\n\nexport interface Provider {\n\tid: string;\n\tname: string;\n\tseo: Seo;\n\tbusinessId: string;\n\tstatuses: StatusEvent[];\n\tconcurrentLimit: number;\n\ttaxonomyIds: string[];\n\tfilterBlocks: Block[];\n\ttimeline: ProviderTimelinePoint[];\n\tcreatedAt: number;\n\tupdatedAt: number;\n}\n"]}
|
package/dist/types.d.cts
CHANGED
|
@@ -325,33 +325,26 @@ interface Reservation {
|
|
|
325
325
|
createdAt: number;
|
|
326
326
|
lastModified: number;
|
|
327
327
|
}
|
|
328
|
-
declare enum
|
|
328
|
+
declare enum NodeType {
|
|
329
329
|
CONTENT = "CONTENT",
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
330
|
+
CATEGORY = "CATEGORY",
|
|
331
|
+
TAXONOMY_SERVICE = "TAXONOMY_SERVICE",
|
|
332
|
+
TAXONOMY_PROVIDER = "TAXONOMY_PROVIDER",
|
|
333
|
+
TAXONOMY_PRODUCT = "TAXONOMY_PRODUCT",
|
|
334
|
+
EMAIL_TEMPLATE = "EMAIL_TEMPLATE",
|
|
333
335
|
EMAIL_FORGOT_PASSWORD = "EMAIL_FORGOT_PASSWORD",
|
|
334
336
|
EMAIL_USER_CONFIRM = "EMAIL_USER_CONFIRM",
|
|
335
337
|
EMAIL_USER_INVITATION = "EMAIL_USER_INVITATION",
|
|
336
338
|
EMAIL_ORDER_STATUS_UPDATE = "EMAIL_ORDER_STATUS_UPDATE",
|
|
337
339
|
EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE = "EMAIL_RESERVATION_BUSINESS_STATUS_UPDATE",
|
|
338
340
|
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
341
|
NEWSLETTER = "NEWSLETTER",
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
342
|
+
NEWSLETTER_POST = "NEWSLETTER_POST",
|
|
343
|
+
NEWSLETTER_SEGMENT = "NEWSLETTER_SEGMENT",
|
|
344
|
+
NEWSLETTER_ENTRY = "NEWSLETTER_ENTRY",
|
|
345
|
+
FORM = "FORM"
|
|
353
346
|
}
|
|
354
|
-
interface
|
|
347
|
+
interface NodeConfig {
|
|
355
348
|
isPubliclyReadable: boolean;
|
|
356
349
|
isPubliclyWritable: boolean;
|
|
357
350
|
isSubmissionEnabled: boolean;
|
|
@@ -359,27 +352,36 @@ interface CollectionConfig {
|
|
|
359
352
|
notificationEmails: string[];
|
|
360
353
|
unsubscribeUrl: string | null;
|
|
361
354
|
}
|
|
362
|
-
interface
|
|
355
|
+
interface SubscriptionPlan {
|
|
363
356
|
id: string;
|
|
364
357
|
name: string;
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
358
|
+
description?: string;
|
|
359
|
+
providerPriceId?: string;
|
|
360
|
+
prices: Price[];
|
|
361
|
+
}
|
|
362
|
+
interface NodeSend {
|
|
363
|
+
id: string;
|
|
364
|
+
recipientSource: string;
|
|
365
|
+
scheduledAt: number;
|
|
366
|
+
status: string;
|
|
367
|
+
sentCount: number;
|
|
368
|
+
failedCount: number;
|
|
369
|
+
createdAt: number;
|
|
372
370
|
}
|
|
373
|
-
interface
|
|
371
|
+
interface Node {
|
|
374
372
|
id: string;
|
|
375
|
-
name:
|
|
376
|
-
collectionId: string;
|
|
373
|
+
name: string;
|
|
377
374
|
businessId: string;
|
|
378
|
-
|
|
375
|
+
parentId?: string;
|
|
376
|
+
entity: string;
|
|
377
|
+
type: NodeType;
|
|
379
378
|
blocks: Block[];
|
|
380
|
-
|
|
379
|
+
config?: NodeConfig;
|
|
381
380
|
props?: any;
|
|
381
|
+
plans: SubscriptionPlan[];
|
|
382
|
+
statuses: StatusEvent[];
|
|
382
383
|
seo: Seo;
|
|
384
|
+
sends: NodeSend[];
|
|
383
385
|
createdAt: number;
|
|
384
386
|
updatedAt: number;
|
|
385
387
|
}
|
|
@@ -418,16 +420,14 @@ interface ServiceProvider {
|
|
|
418
420
|
}
|
|
419
421
|
interface Service {
|
|
420
422
|
id: string;
|
|
421
|
-
name:
|
|
423
|
+
name: string;
|
|
422
424
|
seo: Seo;
|
|
423
425
|
businessId: string;
|
|
424
426
|
prices: Price[];
|
|
425
427
|
durations: ServiceDuration[];
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
blocks: Block[];
|
|
428
|
+
filterBlocks: Block[];
|
|
429
|
+
taxonomyIds: string[];
|
|
429
430
|
isApprovalRequired: boolean;
|
|
430
|
-
reservationBlocks: Block[];
|
|
431
431
|
providers: ServiceProvider[];
|
|
432
432
|
createdAt: number;
|
|
433
433
|
updatedAt: number;
|
|
@@ -439,14 +439,13 @@ interface ProviderTimelinePoint {
|
|
|
439
439
|
}
|
|
440
440
|
interface Provider {
|
|
441
441
|
id: string;
|
|
442
|
-
name:
|
|
442
|
+
name: string;
|
|
443
443
|
seo: Seo;
|
|
444
444
|
businessId: string;
|
|
445
|
-
blocks: Block[];
|
|
446
445
|
statuses: StatusEvent[];
|
|
447
446
|
concurrentLimit: number;
|
|
448
|
-
|
|
449
|
-
|
|
447
|
+
taxonomyIds: string[];
|
|
448
|
+
filterBlocks: Block[];
|
|
450
449
|
timeline: ProviderTimelinePoint[];
|
|
451
450
|
createdAt: number;
|
|
452
451
|
updatedAt: number;
|
|
@@ -501,30 +500,69 @@ interface OrderCheckoutParams {
|
|
|
501
500
|
}
|
|
502
501
|
interface GetProductsParams {
|
|
503
502
|
ids?: string[];
|
|
504
|
-
|
|
503
|
+
taxonomyIds?: string[] | null;
|
|
504
|
+
taxonomyId?: string | null;
|
|
505
|
+
filterBlocks?: any[] | null;
|
|
505
506
|
status?: string;
|
|
506
507
|
limit?: number;
|
|
507
508
|
cursor?: string;
|
|
509
|
+
query?: string;
|
|
510
|
+
statuses?: string[];
|
|
511
|
+
sortField?: string;
|
|
512
|
+
sortDirection?: string;
|
|
513
|
+
createdAtFrom?: number | null;
|
|
514
|
+
createdAtTo?: number | null;
|
|
508
515
|
}
|
|
509
|
-
interface
|
|
510
|
-
|
|
516
|
+
interface GetNodesParams {
|
|
517
|
+
parentId?: string;
|
|
511
518
|
limit?: number;
|
|
512
519
|
cursor?: string;
|
|
513
520
|
ids?: string[];
|
|
521
|
+
query?: string;
|
|
522
|
+
type?: string;
|
|
523
|
+
entity?: string;
|
|
524
|
+
statuses?: string[];
|
|
525
|
+
sortField?: string;
|
|
526
|
+
sortDirection?: string;
|
|
527
|
+
createdAtFrom?: string;
|
|
528
|
+
createdAtTo?: string;
|
|
514
529
|
}
|
|
515
|
-
interface
|
|
516
|
-
|
|
517
|
-
|
|
530
|
+
interface CreateNodeParams {
|
|
531
|
+
name: string;
|
|
532
|
+
parentId?: string;
|
|
533
|
+
type?: string;
|
|
534
|
+
blocks?: any[];
|
|
535
|
+
config?: any;
|
|
536
|
+
entity?: string;
|
|
537
|
+
plans?: any[];
|
|
538
|
+
props?: any;
|
|
539
|
+
seo?: any;
|
|
540
|
+
status?: string;
|
|
541
|
+
}
|
|
542
|
+
interface UpdateNodeParams {
|
|
543
|
+
id: string;
|
|
544
|
+
name?: string;
|
|
545
|
+
parentId?: string;
|
|
546
|
+
type?: string;
|
|
547
|
+
blocks?: any[];
|
|
548
|
+
config?: any;
|
|
549
|
+
entity?: string;
|
|
550
|
+
plans?: any[];
|
|
551
|
+
props?: any;
|
|
552
|
+
seo?: any;
|
|
518
553
|
status?: string;
|
|
519
554
|
}
|
|
520
|
-
interface
|
|
521
|
-
collectionId: string;
|
|
555
|
+
interface GetNodeParams {
|
|
522
556
|
id: string;
|
|
523
557
|
}
|
|
524
|
-
interface
|
|
525
|
-
collectionId: string;
|
|
558
|
+
interface DeleteNodeParams {
|
|
526
559
|
id: string;
|
|
527
560
|
}
|
|
561
|
+
interface GetNodeChildrenParams {
|
|
562
|
+
id: string;
|
|
563
|
+
limit?: number;
|
|
564
|
+
cursor?: string;
|
|
565
|
+
}
|
|
528
566
|
interface UploadBusinessMediaParams {
|
|
529
567
|
files?: File[];
|
|
530
568
|
urls?: string[];
|
|
@@ -571,8 +609,8 @@ interface GetServicesParams {
|
|
|
571
609
|
query?: string;
|
|
572
610
|
ids?: string[];
|
|
573
611
|
statuses?: string[];
|
|
574
|
-
|
|
575
|
-
|
|
612
|
+
taxonomyId?: string;
|
|
613
|
+
filterBlocks?: any[];
|
|
576
614
|
sortField?: string;
|
|
577
615
|
sortDirection?: string;
|
|
578
616
|
priceFrom?: number;
|
|
@@ -627,14 +665,13 @@ interface WorkingTime {
|
|
|
627
665
|
}
|
|
628
666
|
interface ProviderWithTimeline {
|
|
629
667
|
id: string;
|
|
630
|
-
name:
|
|
668
|
+
name: string;
|
|
631
669
|
businessId: string;
|
|
632
670
|
seo: any;
|
|
633
|
-
blocks: Block[];
|
|
634
671
|
statuses: any[];
|
|
635
672
|
concurrentLimit: number;
|
|
636
|
-
|
|
637
|
-
|
|
673
|
+
taxonomyIds: string[];
|
|
674
|
+
filterBlocks: Block[];
|
|
638
675
|
createdAt: number;
|
|
639
676
|
updatedAt: number;
|
|
640
677
|
workingTime: WorkingTime | null;
|
|
@@ -771,7 +808,7 @@ interface HandleInvitationParams {
|
|
|
771
808
|
interface TestWebhookParams {
|
|
772
809
|
webhook: any;
|
|
773
810
|
}
|
|
774
|
-
interface
|
|
811
|
+
interface NodeConfigParams {
|
|
775
812
|
isPubliclyReadable?: boolean;
|
|
776
813
|
isPubliclyWritable?: boolean;
|
|
777
814
|
isSubmissionEnabled?: boolean;
|
|
@@ -779,78 +816,17 @@ interface CollectionConfigParams {
|
|
|
779
816
|
notificationEmails?: string[];
|
|
780
817
|
unsubscribeUrl?: string | null;
|
|
781
818
|
}
|
|
782
|
-
interface CreateCollectionParams {
|
|
783
|
-
name: string;
|
|
784
|
-
type?: string;
|
|
785
|
-
blocks?: any[];
|
|
786
|
-
config?: CollectionConfigParams;
|
|
787
|
-
entity?: string | null;
|
|
788
|
-
plans?: any[];
|
|
789
|
-
seo?: any;
|
|
790
|
-
[key: string]: any;
|
|
791
|
-
}
|
|
792
|
-
interface UpdateCollectionParams {
|
|
793
|
-
id: string;
|
|
794
|
-
name?: string;
|
|
795
|
-
type?: string;
|
|
796
|
-
blocks?: any[];
|
|
797
|
-
config?: CollectionConfigParams;
|
|
798
|
-
entity?: string | null;
|
|
799
|
-
plans?: any[];
|
|
800
|
-
seo?: any;
|
|
801
|
-
[key: string]: any;
|
|
802
|
-
}
|
|
803
|
-
interface DeleteCollectionParams {
|
|
804
|
-
id: string;
|
|
805
|
-
}
|
|
806
|
-
interface GetCollectionParams {
|
|
807
|
-
id: string;
|
|
808
|
-
}
|
|
809
|
-
interface GetCollectionsParams {
|
|
810
|
-
name?: string | null;
|
|
811
|
-
ids?: string[] | null;
|
|
812
|
-
entity?: string | null;
|
|
813
|
-
type?: string | null;
|
|
814
|
-
}
|
|
815
|
-
interface GetEntriesParams {
|
|
816
|
-
collectionId: string;
|
|
817
|
-
limit?: number;
|
|
818
|
-
cursor?: string;
|
|
819
|
-
ids?: string[] | null;
|
|
820
|
-
query?: string | null;
|
|
821
|
-
type?: string | null;
|
|
822
|
-
statuses?: string[] | null;
|
|
823
|
-
sortField?: string | null;
|
|
824
|
-
sortDirection?: string | null;
|
|
825
|
-
createdAtFrom?: string | null;
|
|
826
|
-
createdAtTo?: string | null;
|
|
827
|
-
parentId?: string | null;
|
|
828
|
-
}
|
|
829
|
-
interface CreateEntryParams {
|
|
830
|
-
collectionId: string;
|
|
831
|
-
blocks: any[];
|
|
832
|
-
status?: string;
|
|
833
|
-
[key: string]: any;
|
|
834
|
-
}
|
|
835
|
-
interface UpdateEntryParams {
|
|
836
|
-
collectionId: string;
|
|
837
|
-
id: string;
|
|
838
|
-
blocks?: any[];
|
|
839
|
-
status?: string;
|
|
840
|
-
[key: string]: any;
|
|
841
|
-
}
|
|
842
819
|
interface GenerateBlocksParams {
|
|
843
820
|
[key: string]: any;
|
|
844
821
|
}
|
|
845
822
|
interface GetVariableMetadataParams {
|
|
846
|
-
|
|
823
|
+
nodeType: string;
|
|
847
824
|
}
|
|
848
|
-
interface
|
|
849
|
-
|
|
850
|
-
entryId: string;
|
|
825
|
+
interface SendNodeParams {
|
|
826
|
+
nodeId: string;
|
|
851
827
|
scheduledAt?: number;
|
|
852
828
|
}
|
|
853
|
-
interface
|
|
829
|
+
interface GetNodeSubscribersParams {
|
|
854
830
|
id: string;
|
|
855
831
|
}
|
|
856
832
|
interface UserSubscribeParams {
|
|
@@ -863,9 +839,8 @@ interface UserSubscribeParams {
|
|
|
863
839
|
interface CreateProductParams {
|
|
864
840
|
name: string;
|
|
865
841
|
description?: string;
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
blocks?: any[];
|
|
842
|
+
taxonomyIds?: string[];
|
|
843
|
+
filterBlocks?: any[];
|
|
869
844
|
variants?: any[];
|
|
870
845
|
status?: string;
|
|
871
846
|
[key: string]: any;
|
|
@@ -874,9 +849,8 @@ interface UpdateProductParams {
|
|
|
874
849
|
id: string;
|
|
875
850
|
name?: string;
|
|
876
851
|
description?: string;
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
blocks?: any[];
|
|
852
|
+
taxonomyIds?: string[];
|
|
853
|
+
filterBlocks?: any[];
|
|
880
854
|
variants?: any[];
|
|
881
855
|
status?: string;
|
|
882
856
|
[key: string]: any;
|
|
@@ -925,9 +899,8 @@ interface UpdateReservationParams {
|
|
|
925
899
|
}
|
|
926
900
|
interface CreateProviderParams {
|
|
927
901
|
name: string;
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
categoryFilterBlocks?: any[];
|
|
902
|
+
taxonomyIds?: string[];
|
|
903
|
+
filterBlocks?: any[];
|
|
931
904
|
concurrentLimit?: number;
|
|
932
905
|
statuses?: any[];
|
|
933
906
|
[key: string]: any;
|
|
@@ -935,9 +908,8 @@ interface CreateProviderParams {
|
|
|
935
908
|
interface UpdateProviderParams {
|
|
936
909
|
id: string;
|
|
937
910
|
name?: string;
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
categoryFilterBlocks?: any[];
|
|
911
|
+
taxonomyIds?: string[];
|
|
912
|
+
filterBlocks?: any[];
|
|
941
913
|
concurrentLimit?: number;
|
|
942
914
|
statuses?: any[];
|
|
943
915
|
[key: string]: any;
|
|
@@ -952,10 +924,8 @@ interface ServiceProviderInput {
|
|
|
952
924
|
}
|
|
953
925
|
interface CreateServiceParams {
|
|
954
926
|
name: string;
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
categoryIds?: string[];
|
|
958
|
-
categoryFilterBlocks?: any[];
|
|
927
|
+
taxonomyIds?: string[];
|
|
928
|
+
filterBlocks?: any[];
|
|
959
929
|
prices?: any[];
|
|
960
930
|
durations?: any[];
|
|
961
931
|
isApprovalRequired?: boolean;
|
|
@@ -966,10 +936,8 @@ interface CreateServiceParams {
|
|
|
966
936
|
interface UpdateServiceParams {
|
|
967
937
|
id: string;
|
|
968
938
|
name?: string;
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
categoryIds?: string[];
|
|
972
|
-
categoryFilterBlocks?: any[];
|
|
939
|
+
taxonomyIds?: string[];
|
|
940
|
+
filterBlocks?: any[];
|
|
973
941
|
prices?: any[];
|
|
974
942
|
durations?: any[];
|
|
975
943
|
isApprovalRequired?: boolean;
|
|
@@ -999,8 +967,8 @@ interface GetProvidersParams {
|
|
|
999
967
|
sortDirection?: string | null;
|
|
1000
968
|
createdAtFrom?: string | null;
|
|
1001
969
|
createdAtTo?: string | null;
|
|
1002
|
-
|
|
1003
|
-
|
|
970
|
+
taxonomyId?: string | null;
|
|
971
|
+
filterBlocks?: string | null;
|
|
1004
972
|
}
|
|
1005
973
|
interface GetProviderParams {
|
|
1006
974
|
id: string;
|
|
@@ -1212,4 +1180,4 @@ interface Slot {
|
|
|
1212
1180
|
dateText: string;
|
|
1213
1181
|
}
|
|
1214
1182
|
|
|
1215
|
-
export { type AddPhoneNumberParams, type ApiResponse, type Block, type BulkScheduleParams, type Business, type BusinessConfig, type BusinessEmails, type BusinessReservationConfigs, type
|
|
1183
|
+
export { type AddPhoneNumberParams, type ApiResponse, type Block, type BulkScheduleParams, type Business, type BusinessConfig, type BusinessEmails, type BusinessReservationConfigs, type Condition, type ConfirmUserParams, type CreateBusinessParams, type CreateFeatureFlagParams, type CreateNodeParams, type CreateOrderParams, type CreatePortalSessionParams, type CreateProductParams, type CreatePromoCodeParams, type CreateProviderParams, type CreateReservationParams, type CreateRoleParams, type CreateServiceParams, type DayAvailability, type DeleteBusinessMediaParams, type DeleteBusinessParams, type DeleteFeatureFlagParams, type DeleteNodeParams, 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 GetDeliveryStatsParams, type GetFeatureFlagParams, type GetFeatureFlagResultsParams, type GetFeatureFlagsParams, type GetLoginUrlParams, type GetMeParams, type GetNodeChildrenParams, type GetNodeParams, type GetNodeSubscribersParams, type GetNodesParams, 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 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 Node, type NodeConfig, type NodeConfigParams, type NodeSend, NodeType, 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 Provider, type ProviderTimelinePoint, 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 SendNodeParams, type Seo, type Service, type ServiceDuration, type ServiceProvider, type ServiceProviderInput, type SetRoleParams, type SetupAnalyticsParams, type ShippingMethod, type ShippingWeightTier, type Slot, type SpecificDate, type StatusEvent, type SubscribeParams, type SubscriptionPlan, type TestWebhookParams, type TimelinePoint, type TrackEmailOpenParams, type TrackEventParams, type TrackEventResponse, type TriggerBuildsParams, type UpdateBusinessParams, type UpdateFeatureFlagParams, type UpdateMediaParams, type UpdateNodeParams, 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 };
|