@cimplify/sdk 0.27.0 → 0.29.0

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.
@@ -1,2 +1,2 @@
1
- export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService, M as CimplifyElement, K as CimplifyElements, X as ELEMENT_TYPES, W as EVENT_TYPES, $ as ElementEventType, Z as ElementOptions, _ as ElementType, Y as ElementsOptions, F as FetchQuoteInput, r as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, q as LiteService, V as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, S as SchedulingService, N as createElements, m as generateIdempotencyKey } from './index-DT-24csu.mjs';
2
- import './payment-5a21yzi7.mjs';
1
+ export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService, $ as CimplifyElement, _ as CimplifyElements, a3 as ELEMENT_TYPES, a2 as EVENT_TYPES, a7 as ElementEventType, a5 as ElementOptions, a6 as ElementType, a4 as ElementsOptions, F as FetchQuoteInput, s as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, r as LiteService, a1 as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, q as SchedulingService, a0 as createElements, m as generateIdempotencyKey } from './index-DijjnO-u.mjs';
2
+ import './payment-BeLHpQMo.mjs';
@@ -1,2 +1,2 @@
1
- export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService, M as CimplifyElement, K as CimplifyElements, X as ELEMENT_TYPES, W as EVENT_TYPES, $ as ElementEventType, Z as ElementOptions, _ as ElementType, Y as ElementsOptions, F as FetchQuoteInput, r as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, q as LiteService, V as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, S as SchedulingService, N as createElements, m as generateIdempotencyKey } from './index-BAu-zmIP.js';
2
- import './payment-5a21yzi7.js';
1
+ export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService, $ as CimplifyElement, _ as CimplifyElements, a3 as ELEMENT_TYPES, a2 as EVENT_TYPES, a7 as ElementEventType, a5 as ElementOptions, a6 as ElementType, a4 as ElementsOptions, F as FetchQuoteInput, s as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, r as LiteService, a1 as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, q as SchedulingService, a0 as createElements, m as generateIdempotencyKey } from './index-DwvzjdGi.js';
2
+ import './payment-BeLHpQMo.js';
@@ -56,6 +56,124 @@ function currentPath() {
56
56
  return void 0;
57
57
  }
58
58
 
59
+ // src/subscriptions.ts
60
+ var SubscriptionService = class {
61
+ constructor(client) {
62
+ this.client = client;
63
+ }
64
+ async list() {
65
+ return chunk2CGA3MUW_js.safe(this.client.get("/api/v1/subscriptions"));
66
+ }
67
+ async get(id) {
68
+ const encodedId = encodeURIComponent(id);
69
+ return chunk2CGA3MUW_js.safe(this.client.get(`/api/v1/subscriptions/${encodedId}`));
70
+ }
71
+ async cancel(id, reason) {
72
+ const encodedId = encodeURIComponent(id);
73
+ return chunk2CGA3MUW_js.safe(
74
+ this.client.post(`/api/v1/subscriptions/${encodedId}/cancel`, {
75
+ reason
76
+ })
77
+ );
78
+ }
79
+ async pause(id) {
80
+ const encodedId = encodeURIComponent(id);
81
+ return chunk2CGA3MUW_js.safe(
82
+ this.client.post(`/api/v1/subscriptions/${encodedId}/pause`)
83
+ );
84
+ }
85
+ async resume(id) {
86
+ const encodedId = encodeURIComponent(id);
87
+ return chunk2CGA3MUW_js.safe(
88
+ this.client.post(`/api/v1/subscriptions/${encodedId}/resume`)
89
+ );
90
+ }
91
+ async skipNextRenewal(id) {
92
+ const encodedId = encodeURIComponent(id);
93
+ return chunk2CGA3MUW_js.safe(
94
+ this.client.post(`/api/v1/subscriptions/${encodedId}/skip`)
95
+ );
96
+ }
97
+ };
98
+
99
+ // src/uploads.ts
100
+ var UploadService = class {
101
+ constructor(client) {
102
+ this.client = client;
103
+ }
104
+ async init(filename, contentType, sizeBytes) {
105
+ return chunk2CGA3MUW_js.safe(
106
+ this.client.post("/api/v1/uploads/init", {
107
+ filename,
108
+ content_type: contentType,
109
+ size_bytes: sizeBytes
110
+ })
111
+ );
112
+ }
113
+ async confirm(uploadId) {
114
+ return chunk2CGA3MUW_js.safe(
115
+ this.client.post("/api/v1/uploads/confirm", {
116
+ upload_id: uploadId
117
+ })
118
+ );
119
+ }
120
+ async upload(file) {
121
+ const initResult = await this.init(file.name, file.type, file.size);
122
+ if (!initResult.ok) return initResult;
123
+ const { upload_id, upload_url } = initResult.value;
124
+ try {
125
+ const uploadResponse = await fetch(upload_url, {
126
+ method: "PUT",
127
+ body: file,
128
+ headers: { "Content-Type": file.type }
129
+ });
130
+ if (!uploadResponse.ok) {
131
+ return {
132
+ ok: false,
133
+ error: new chunkPEDLCL72_js.CimplifyError(
134
+ "UPLOAD_FAILED",
135
+ `Upload failed with status ${uploadResponse.status}`,
136
+ true
137
+ )
138
+ };
139
+ }
140
+ } catch (error) {
141
+ return {
142
+ ok: false,
143
+ error: new chunkPEDLCL72_js.CimplifyError(
144
+ "UPLOAD_FAILED",
145
+ error instanceof Error ? error.message : "Upload failed",
146
+ true
147
+ )
148
+ };
149
+ }
150
+ return this.confirm(upload_id);
151
+ }
152
+ };
153
+
154
+ // src/places.ts
155
+ var PlacesService = class {
156
+ constructor(client) {
157
+ this.client = client;
158
+ }
159
+ async autocomplete(input, sessionToken) {
160
+ return chunk2CGA3MUW_js.safe(
161
+ this.client.post("/api/v1/places/autocomplete", {
162
+ input,
163
+ sessionToken
164
+ })
165
+ );
166
+ }
167
+ async details(placeId, sessionToken) {
168
+ return chunk2CGA3MUW_js.safe(
169
+ this.client.post("/api/v1/places/details", {
170
+ place_id: placeId,
171
+ sessionToken
172
+ })
173
+ );
174
+ }
175
+ };
176
+
59
177
  // src/delivery.ts
60
178
  var DeliveryService = class {
61
179
  constructor(client) {
@@ -619,6 +737,24 @@ var CimplifyClient = class {
619
737
  }
620
738
  return this._orders;
621
739
  }
740
+ get subscriptions() {
741
+ if (!this._subscriptions) {
742
+ this._subscriptions = new SubscriptionService(this);
743
+ }
744
+ return this._subscriptions;
745
+ }
746
+ get uploads() {
747
+ if (!this._uploads) {
748
+ this._uploads = new UploadService(this);
749
+ }
750
+ return this._uploads;
751
+ }
752
+ get places() {
753
+ if (!this._places) {
754
+ this._places = new PlacesService(this);
755
+ }
756
+ return this._places;
757
+ }
622
758
  get link() {
623
759
  if (!this._link) {
624
760
  this._link = new chunk2CGA3MUW_js.LinkService(this);
@@ -743,12 +879,38 @@ var DURATION_UNIT = {
743
879
  Months: "months",
744
880
  Years: "years"
745
881
  };
882
+ var INPUT_FIELD_TYPE = {
883
+ Text: "text",
884
+ Textarea: "textarea",
885
+ Number: "number",
886
+ Select: "select",
887
+ Radio: "radio",
888
+ Checkbox: "checkbox",
889
+ Color: "color",
890
+ Date: "date",
891
+ File: "file",
892
+ Image: "image",
893
+ Url: "url",
894
+ Address: "address",
895
+ Phone: "phone",
896
+ Email: "email",
897
+ DateTime: "date_time",
898
+ Time: "time",
899
+ Signature: "signature",
900
+ MultiSelect: "multi_select",
901
+ DateRange: "date_range",
902
+ Location: "location"
903
+ };
746
904
 
747
905
  exports.ActivityService = ActivityService;
748
906
  exports.CimplifyClient = CimplifyClient;
749
907
  exports.DURATION_UNIT = DURATION_UNIT;
750
908
  exports.DeliveryService = DeliveryService;
909
+ exports.INPUT_FIELD_TYPE = INPUT_FIELD_TYPE;
751
910
  exports.PRODUCT_TYPE = PRODUCT_TYPE;
911
+ exports.PlacesService = PlacesService;
752
912
  exports.RENDER_HINT = RENDER_HINT;
913
+ exports.SubscriptionService = SubscriptionService;
914
+ exports.UploadService = UploadService;
753
915
  exports.createCimplifyClient = createCimplifyClient;
754
916
  exports.getVariantDisplayName = getVariantDisplayName;
@@ -54,6 +54,124 @@ function currentPath() {
54
54
  return void 0;
55
55
  }
56
56
 
57
+ // src/subscriptions.ts
58
+ var SubscriptionService = class {
59
+ constructor(client) {
60
+ this.client = client;
61
+ }
62
+ async list() {
63
+ return safe(this.client.get("/api/v1/subscriptions"));
64
+ }
65
+ async get(id) {
66
+ const encodedId = encodeURIComponent(id);
67
+ return safe(this.client.get(`/api/v1/subscriptions/${encodedId}`));
68
+ }
69
+ async cancel(id, reason) {
70
+ const encodedId = encodeURIComponent(id);
71
+ return safe(
72
+ this.client.post(`/api/v1/subscriptions/${encodedId}/cancel`, {
73
+ reason
74
+ })
75
+ );
76
+ }
77
+ async pause(id) {
78
+ const encodedId = encodeURIComponent(id);
79
+ return safe(
80
+ this.client.post(`/api/v1/subscriptions/${encodedId}/pause`)
81
+ );
82
+ }
83
+ async resume(id) {
84
+ const encodedId = encodeURIComponent(id);
85
+ return safe(
86
+ this.client.post(`/api/v1/subscriptions/${encodedId}/resume`)
87
+ );
88
+ }
89
+ async skipNextRenewal(id) {
90
+ const encodedId = encodeURIComponent(id);
91
+ return safe(
92
+ this.client.post(`/api/v1/subscriptions/${encodedId}/skip`)
93
+ );
94
+ }
95
+ };
96
+
97
+ // src/uploads.ts
98
+ var UploadService = class {
99
+ constructor(client) {
100
+ this.client = client;
101
+ }
102
+ async init(filename, contentType, sizeBytes) {
103
+ return safe(
104
+ this.client.post("/api/v1/uploads/init", {
105
+ filename,
106
+ content_type: contentType,
107
+ size_bytes: sizeBytes
108
+ })
109
+ );
110
+ }
111
+ async confirm(uploadId) {
112
+ return safe(
113
+ this.client.post("/api/v1/uploads/confirm", {
114
+ upload_id: uploadId
115
+ })
116
+ );
117
+ }
118
+ async upload(file) {
119
+ const initResult = await this.init(file.name, file.type, file.size);
120
+ if (!initResult.ok) return initResult;
121
+ const { upload_id, upload_url } = initResult.value;
122
+ try {
123
+ const uploadResponse = await fetch(upload_url, {
124
+ method: "PUT",
125
+ body: file,
126
+ headers: { "Content-Type": file.type }
127
+ });
128
+ if (!uploadResponse.ok) {
129
+ return {
130
+ ok: false,
131
+ error: new CimplifyError(
132
+ "UPLOAD_FAILED",
133
+ `Upload failed with status ${uploadResponse.status}`,
134
+ true
135
+ )
136
+ };
137
+ }
138
+ } catch (error) {
139
+ return {
140
+ ok: false,
141
+ error: new CimplifyError(
142
+ "UPLOAD_FAILED",
143
+ error instanceof Error ? error.message : "Upload failed",
144
+ true
145
+ )
146
+ };
147
+ }
148
+ return this.confirm(upload_id);
149
+ }
150
+ };
151
+
152
+ // src/places.ts
153
+ var PlacesService = class {
154
+ constructor(client) {
155
+ this.client = client;
156
+ }
157
+ async autocomplete(input, sessionToken) {
158
+ return safe(
159
+ this.client.post("/api/v1/places/autocomplete", {
160
+ input,
161
+ sessionToken
162
+ })
163
+ );
164
+ }
165
+ async details(placeId, sessionToken) {
166
+ return safe(
167
+ this.client.post("/api/v1/places/details", {
168
+ place_id: placeId,
169
+ sessionToken
170
+ })
171
+ );
172
+ }
173
+ };
174
+
57
175
  // src/delivery.ts
58
176
  var DeliveryService = class {
59
177
  constructor(client) {
@@ -617,6 +735,24 @@ var CimplifyClient = class {
617
735
  }
618
736
  return this._orders;
619
737
  }
738
+ get subscriptions() {
739
+ if (!this._subscriptions) {
740
+ this._subscriptions = new SubscriptionService(this);
741
+ }
742
+ return this._subscriptions;
743
+ }
744
+ get uploads() {
745
+ if (!this._uploads) {
746
+ this._uploads = new UploadService(this);
747
+ }
748
+ return this._uploads;
749
+ }
750
+ get places() {
751
+ if (!this._places) {
752
+ this._places = new PlacesService(this);
753
+ }
754
+ return this._places;
755
+ }
620
756
  get link() {
621
757
  if (!this._link) {
622
758
  this._link = new LinkService(this);
@@ -741,5 +877,27 @@ var DURATION_UNIT = {
741
877
  Months: "months",
742
878
  Years: "years"
743
879
  };
880
+ var INPUT_FIELD_TYPE = {
881
+ Text: "text",
882
+ Textarea: "textarea",
883
+ Number: "number",
884
+ Select: "select",
885
+ Radio: "radio",
886
+ Checkbox: "checkbox",
887
+ Color: "color",
888
+ Date: "date",
889
+ File: "file",
890
+ Image: "image",
891
+ Url: "url",
892
+ Address: "address",
893
+ Phone: "phone",
894
+ Email: "email",
895
+ DateTime: "date_time",
896
+ Time: "time",
897
+ Signature: "signature",
898
+ MultiSelect: "multi_select",
899
+ DateRange: "date_range",
900
+ Location: "location"
901
+ };
744
902
 
745
- export { ActivityService, CimplifyClient, DURATION_UNIT, DeliveryService, PRODUCT_TYPE, RENDER_HINT, createCimplifyClient, getVariantDisplayName };
903
+ export { ActivityService, CimplifyClient, DURATION_UNIT, DeliveryService, INPUT_FIELD_TYPE, PRODUCT_TYPE, PlacesService, RENDER_HINT, SubscriptionService, UploadService, createCimplifyClient, getVariantDisplayName };
@@ -1,5 +1,5 @@
1
- import { M as Money, a as CurrencyCode, aW as PricePathTaxInfo, Q as QuantityPricingTier, N as Product, U as ProductWithDetails, bH as PaymentErrorDetails, bF as PaymentResponse, bG as PaymentStatusResponse } from './payment-5a21yzi7.js';
2
- import { P as ProductWithPrice } from './price-BS0Z5Oi9.js';
1
+ import { M as Money, a as CurrencyCode, b4 as PricePathTaxInfo, a2 as QuantityPricingTier, N as Product, a4 as ProductWithDetails, bR as PaymentErrorDetails, bP as PaymentResponse, bQ as PaymentStatusResponse } from './payment-BeLHpQMo.js';
2
+ import { P as ProductWithPrice } from './price-C6gfys5B.js';
3
3
  import { CountryCode } from 'libphonenumber-js';
4
4
 
5
5
  declare const CURRENCY_SYMBOLS: Record<string, string>;
@@ -1,5 +1,5 @@
1
- import { M as Money, a as CurrencyCode, aW as PricePathTaxInfo, Q as QuantityPricingTier, N as Product, U as ProductWithDetails, bH as PaymentErrorDetails, bF as PaymentResponse, bG as PaymentStatusResponse } from './payment-5a21yzi7.mjs';
2
- import { P as ProductWithPrice } from './price-CGPMlQUk.mjs';
1
+ import { M as Money, a as CurrencyCode, b4 as PricePathTaxInfo, a2 as QuantityPricingTier, N as Product, a4 as ProductWithDetails, bR as PaymentErrorDetails, bP as PaymentResponse, bQ as PaymentStatusResponse } from './payment-BeLHpQMo.mjs';
2
+ import { P as ProductWithPrice } from './price-Dvl1p9AM.mjs';
3
3
  import { CountryCode } from 'libphonenumber-js';
4
4
 
5
5
  declare const CURRENCY_SYMBOLS: Record<string, string>;
@@ -1,4 +1,4 @@
1
- import { a9 as Category, N as Product, a5 as AddOnWithOptions, d as Pagination, h as CimplifyError, U as ProductWithDetails, X as ProductVariant, _ as VariantAxis, a3 as VariantAxisSelection, a4 as AddOn, ab as Collection, ag as BundleSummary, af as Bundle, as as Composite, az as ComponentSelectionInput, aA as CompositePriceResult, C as ChosenPrice, aH as ProductTaxonomy, aI as TaxonomyWithChildren, bN as EligiblePlansQuery, bM as ProductBillingPlan, aG as ProductTimeProfile, aJ as ProductAvailabilityNow, aL as Deal, aM as ProductDealInfo, aN as DiscountValidation, aP as TagsResponse, B as CustomAttributeDefinition, F as CustomAttributeValue, J as PropertyFacet, T as TaxonomyAttributeTemplate, L as KnowledgeArticle, br as UICart, bc as Cart, bd as CartItem, bv as CartSummary, bt as AddToCartInput, bu as UpdateCartItemInput, a$ as DiscountDetails, M as Money, a as CurrencyCode, bb as LineConfiguration, bA as AuthorizationType, bC as PaymentMethod, bE as InitializePaymentResult, bI as SubmitAuthorizationInput, bG as PaymentStatusResponse, t as DurationUnit } from './payment-5a21yzi7.js';
1
+ import { aj as Category, N as Product, af as AddOnWithOptions, d as Pagination, h as CimplifyError, a4 as ProductWithDetails, a6 as ProductVariant, a8 as VariantAxis, ad as VariantAxisSelection, ae as AddOn, al as Collection, aq as BundleSummary, ap as Bundle, aC as Composite, aJ as ComponentSelectionInput, aK as CompositePriceResult, C as ChosenPrice, aR as ProductTaxonomy, aS as TaxonomyWithChildren, bX as EligiblePlansQuery, bW as ProductBillingPlan, aQ as ProductTimeProfile, aT as ProductAvailabilityNow, aV as Deal, aW as ProductDealInfo, aX as DiscountValidation, aZ as TagsResponse, B as CustomAttributeDefinition, F as CustomAttributeValue, J as PropertyFacet, T as TaxonomyAttributeTemplate, L as KnowledgeArticle, bB as UICart, bm as Cart, bn as CartItem, bF as CartSummary, bD as AddToCartInput, bE as UpdateCartItemInput, b9 as DiscountDetails, M as Money, a as CurrencyCode, bl as LineConfiguration, bK as AuthorizationType, bM as PaymentMethod, bO as InitializePaymentResult, bS as SubmitAuthorizationInput, bQ as PaymentStatusResponse, t as DurationUnit, b_ as Subscription, c1 as SubscriptionWithDetails } from './payment-BeLHpQMo.mjs';
2
2
 
3
3
  interface RequestContext {
4
4
  method: "GET" | "POST" | "PATCH" | "DELETE";
@@ -1770,6 +1770,71 @@ declare class ActivityService {
1770
1770
  private sendEvents;
1771
1771
  }
1772
1772
 
1773
+ declare class SubscriptionService {
1774
+ private client;
1775
+ constructor(client: CimplifyClient);
1776
+ list(): Promise<Result<Subscription[], CimplifyError>>;
1777
+ get(id: string): Promise<Result<SubscriptionWithDetails, CimplifyError>>;
1778
+ cancel(id: string, reason?: string): Promise<Result<{
1779
+ success: boolean;
1780
+ }, CimplifyError>>;
1781
+ pause(id: string): Promise<Result<{
1782
+ success: boolean;
1783
+ }, CimplifyError>>;
1784
+ resume(id: string): Promise<Result<{
1785
+ success: boolean;
1786
+ }, CimplifyError>>;
1787
+ skipNextRenewal(id: string): Promise<Result<{
1788
+ success: boolean;
1789
+ }, CimplifyError>>;
1790
+ }
1791
+
1792
+ interface UploadInitResponse {
1793
+ upload_id: string;
1794
+ upload_url: string;
1795
+ expires_in_secs: number;
1796
+ }
1797
+ interface UploadResult {
1798
+ id: string;
1799
+ url: string;
1800
+ filename: string;
1801
+ content_type: string;
1802
+ size_bytes: number;
1803
+ }
1804
+ declare class UploadService {
1805
+ private client;
1806
+ constructor(client: CimplifyClient);
1807
+ init(filename: string, contentType: string, sizeBytes: number): Promise<Result<UploadInitResponse, CimplifyError>>;
1808
+ confirm(uploadId: string): Promise<Result<UploadResult, CimplifyError>>;
1809
+ upload(file: File): Promise<Result<UploadResult, CimplifyError>>;
1810
+ }
1811
+
1812
+ interface AutocompletePrediction {
1813
+ description: string;
1814
+ place_id: string;
1815
+ }
1816
+ interface AutocompleteResponse {
1817
+ predictions: AutocompletePrediction[];
1818
+ }
1819
+ interface PlaceDetailsResponse {
1820
+ formatted_address: string;
1821
+ street_address?: string;
1822
+ apartment?: string;
1823
+ city?: string;
1824
+ region?: string;
1825
+ postal_code?: string;
1826
+ country?: string;
1827
+ latitude: number;
1828
+ longitude: number;
1829
+ place_id: string;
1830
+ }
1831
+ declare class PlacesService {
1832
+ private client;
1833
+ constructor(client: CimplifyClient);
1834
+ autocomplete(input: string, sessionToken?: string): Promise<Result<AutocompleteResponse, CimplifyError>>;
1835
+ details(placeId: string, sessionToken?: string): Promise<Result<PlaceDetailsResponse, CimplifyError>>;
1836
+ }
1837
+
1773
1838
  interface DeliveryFeeResponse {
1774
1839
  serviceable: boolean;
1775
1840
  fee: Money | null;
@@ -2142,6 +2207,9 @@ declare class CimplifyClient {
2142
2207
  private _cart?;
2143
2208
  private _checkout?;
2144
2209
  private _orders?;
2210
+ private _subscriptions?;
2211
+ private _uploads?;
2212
+ private _places?;
2145
2213
  private _link?;
2146
2214
  private _auth?;
2147
2215
  private _business?;
@@ -2186,6 +2254,9 @@ declare class CimplifyClient {
2186
2254
  get cart(): CartOperations;
2187
2255
  get checkout(): CheckoutService;
2188
2256
  get orders(): OrderQueries;
2257
+ get subscriptions(): SubscriptionService;
2258
+ get uploads(): UploadService;
2259
+ get places(): PlacesService;
2189
2260
  get link(): LinkService;
2190
2261
  get auth(): AuthService;
2191
2262
  get business(): BusinessService;
@@ -2199,4 +2270,4 @@ declare class CimplifyClient {
2199
2270
  }
2200
2271
  declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
2201
2272
 
2202
- export { type ElementEventType as $, AuthService as A, BusinessService as B, CimplifyClient as C, type DismissMessageResponse as D, type DeliveryFeeResponse as E, type FetchQuoteInput as F, type GetProductsOptions as G, type LiteBootstrap as H, InventoryService as I, type TableInfo as J, CimplifyElements as K, LinkService as L, CimplifyElement as M, createElements as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, SchedulingService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, MESSAGE_TYPES as V, EVENT_TYPES as W, ELEMENT_TYPES as X, type ElementsOptions as Y, type ElementOptions as Z, type ElementType as _, type CimplifyConfig as a, type FeeBearerType as a$, type CheckoutMode as a0, type CheckoutOrderType as a1, type CheckoutPaymentMethod as a2, type CheckoutStep as a3, type CheckoutFormData as a4, type CheckoutResult as a5, type NextAction as a6, type ProcessCheckoutOptions as a7, type ProcessCheckoutResult as a8, type ProcessAndResolveOptions as a9, type Err as aA, ok as aB, err as aC, isOk as aD, isErr as aE, mapResult as aF, mapError as aG, flatMap as aH, getOrElse as aI, unwrap as aJ, toNullable as aK, fromPromise as aL, tryCatch as aM, combine as aN, combineObject as aO, type CatalogueResult as aP, type CatalogueSnapshot as aQ, type OrderStatus as aR, type PaymentState as aS, type OrderChannel as aT, type LineType as aU, type OrderLineState as aV, type OrderLineStatus as aW, type FulfillmentType as aX, type FulfillmentStatus as aY, type FulfillmentLink as aZ, type OrderFulfillmentSummary as a_, type CheckoutStatus as aa, type CheckoutStatusContext as ab, type AbortablePromise as ac, type MobileMoneyProvider as ad, type DeviceType as ae, type ContactType as af, CHECKOUT_MODE as ag, ORDER_TYPE as ah, PAYMENT_METHOD as ai, CHECKOUT_STEP as aj, PAYMENT_STATE as ak, PICKUP_TIME_TYPE as al, MOBILE_MONEY_PROVIDER as am, AUTHORIZATION_TYPE as an, DEVICE_TYPE as ao, CONTACT_TYPE as ap, LINK_QUERY as aq, LINK_MUTATION as ar, AUTH_MUTATION as as, CHECKOUT_MUTATION as at, PAYMENT_MUTATION as au, ORDER_MUTATION as av, DEFAULT_CURRENCY as aw, DEFAULT_COUNTRY as ax, type Result as ay, type Ok as az, CatalogueQueries as b, type SlotStaffInfo as b$, type AmountToPay as b0, type LineItem as b1, type Order as b2, type OrderHistory as b3, type OrderGroupStatus as b4, type OrderGroupPaymentState as b5, type OrderGroupPaymentStatus as b6, type OrderGroup as b7, type OrderGroupPayment as b8, type OrderSplitDetail as b9, type DeliveryFeeDetails as bA, type RelationType as bB, type RelatedProduct as bC, type RelatedCandidate as bD, type RelatedProductsEnrichment as bE, type BusinessType as bF, type BusinessPreferences as bG, type Business as bH, type LocationTaxBehavior as bI, type LocationTaxOverrides as bJ, type Location as bK, type TimeRange as bL, type TimeRanges as bM, type LocationTimeProfile as bN, type Table as bO, type Room as bP, type ServiceCharge as bQ, type StorefrontBootstrap as bR, type BusinessWithLocations as bS, type LocationWithDetails as bT, type BusinessSettings as bU, type BusinessHours as bV, type CategoryInfo as bW, type Service as bX, type Staff as bY, type TimeSlot as bZ, type SlotResourceInfo as b_, type OrderGroupPaymentSummary as ba, type OrderGroupDetails as bb, type OrderPaymentEvent as bc, type OrderFilter as bd, type CheckoutInput as be, type UpdateOrderStatusInput as bf, type CancelOrderInput as bg, type RefundOrderInput as bh, type ServiceStatus as bi, type StaffRole as bj, type ReminderMethod as bk, type CustomerServicePreferences as bl, type BufferTimes as bm, type ReminderSettings as bn, type CancellationPolicy as bo, type ServiceNotes as bp, type PricingOverrides as bq, type SchedulingMetadata as br, type StaffAssignment as bs, type ResourceAssignment as bt, type SchedulingResult as bu, type DepositResult as bv, type ServiceScheduleRequest as bw, type StaffScheduleItem as bx, type LocationAppointment as by, type ProviderResolutionSource as bz, createCimplifyClient as c, type ElementsCustomerInfo as c$, type AvailableSlot as c0, type DayAvailability as c1, type BookingStatus as c2, type Booking as c3, type BookingWithDetails as c4, type CustomerBookingServiceItem as c5, type CustomerBooking as c6, type GetAvailableSlotsInput as c7, type CheckSlotAvailabilityInput as c8, type CheckSlotAvailabilityResult as c9, type EnrollAndLinkOrderResult as cA, type LinkSession as cB, type RevokeSessionResult as cC, type RevokeAllSessionsResult as cD, type RequestOtpInput as cE, type VerifyOtpInput as cF, type AuthResponse as cG, type PickupTimeType as cH, type PickupTime as cI, type CheckoutAddressInfo as cJ, type MobileMoneyDetails as cK, type CheckoutCustomerInfo as cL, type FxQuoteRequest as cM, type FxQuote as cN, type FxRateResponse as cO, type RequestContext as cP, type RequestStartEvent as cQ, type RequestSuccessEvent as cR, type RequestErrorEvent as cS, type RetryEvent as cT, type SessionChangeEvent as cU, type ObservabilityHooks as cV, type OrderType as cW, type ElementAppearance as cX, type AddressInfo as cY, type PaymentMethodInfo as cZ, type AuthenticatedCustomer as c_, type RescheduleBookingInput as ca, type CancelBookingInput as cb, type CancelBookingResult as cc, type RescheduleBookingResult as cd, type ServiceAvailabilityParams as ce, type ServiceAvailabilityResult as cf, type StockStatus as cg, type StockLevel as ch, type ProductStock as ci, type VariantStock as cj, type LocationStock as ck, type AvailabilityResult as cl, type Customer as cm, type CustomerAddress as cn, type CustomerMobileMoney as co, type CustomerLinkPreferences as cp, type LinkData as cq, type CreateAddressInput as cr, type UpdateAddressInput as cs, type CreateMobileMoneyInput as ct, type EnrollmentData as cu, type AddressData as cv, type MobileMoneyData as cw, type EnrollAndLinkOrderInput as cx, type LinkStatusResult as cy, type LinkEnrollResult as cz, type QuoteBundleSelectionInput as d, type AuthenticatedData as d0, type ElementsCheckoutData as d1, type ElementsCheckoutResult as d2, type CheckoutCartItem as d3, type CheckoutCartData as d4, type ParentToIframeMessage as d5, type IframeToParentMessage as d6, type ElementEventHandler as d7, type QuoteStatus as e, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RequestSource as h, type RefreshQuoteResult as i, CartOperations as j, type ReorderResult as k, CheckoutService as l, generateIdempotencyKey as m, type GetOrdersOptions as n, type AuthStatus as o, type OtpResult as p, LiteService as q, FxService as r, ActivityService as s, type TrackCategoryViewOptions as t, type SessionMessage as u, type SessionActivityData as v, type ActivityStateResponse as w, type ActivityRecommendation as x, type ActivityRecommendationsResponse as y, DeliveryService as z };
2273
+ export { CimplifyElement as $, AuthService as A, BusinessService as B, CimplifyClient as C, type PlaceDetailsResponse as D, type TrackCategoryViewOptions as E, type FetchQuoteInput as F, type GetProductsOptions as G, type SessionMessage as H, InventoryService as I, type SessionActivityData as J, type ActivityStateResponse as K, LinkService as L, type ActivityRecommendation as M, type ActivityRecommendationsResponse as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, SubscriptionService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, type DismissMessageResponse as V, DeliveryService as W, type DeliveryFeeResponse as X, type LiteBootstrap as Y, type TableInfo as Z, CimplifyElements as _, type CimplifyConfig as a, type OrderChannel as a$, createElements as a0, MESSAGE_TYPES as a1, EVENT_TYPES as a2, ELEMENT_TYPES as a3, type ElementsOptions as a4, type ElementOptions as a5, type ElementType as a6, type ElementEventType as a7, type CheckoutMode as a8, type CheckoutOrderType as a9, AUTH_MUTATION as aA, CHECKOUT_MUTATION as aB, PAYMENT_MUTATION as aC, ORDER_MUTATION as aD, DEFAULT_CURRENCY as aE, DEFAULT_COUNTRY as aF, type Result as aG, type Ok as aH, type Err as aI, ok as aJ, err as aK, isOk as aL, isErr as aM, mapResult as aN, mapError as aO, flatMap as aP, getOrElse as aQ, unwrap as aR, toNullable as aS, fromPromise as aT, tryCatch as aU, combine as aV, combineObject as aW, type CatalogueResult as aX, type CatalogueSnapshot as aY, type OrderStatus as aZ, type PaymentState as a_, type CheckoutPaymentMethod as aa, type CheckoutStep as ab, type CheckoutFormData as ac, type CheckoutResult as ad, type NextAction as ae, type ProcessCheckoutOptions as af, type ProcessCheckoutResult as ag, type ProcessAndResolveOptions as ah, type CheckoutStatus as ai, type CheckoutStatusContext as aj, type AbortablePromise as ak, type MobileMoneyProvider as al, type DeviceType as am, type ContactType as an, CHECKOUT_MODE as ao, ORDER_TYPE as ap, PAYMENT_METHOD as aq, CHECKOUT_STEP as ar, PAYMENT_STATE as as, PICKUP_TIME_TYPE as at, MOBILE_MONEY_PROVIDER as au, AUTHORIZATION_TYPE as av, DEVICE_TYPE as aw, CONTACT_TYPE as ax, LINK_QUERY as ay, LINK_MUTATION as az, CatalogueQueries as b, type LocationWithDetails as b$, type LineType as b0, type OrderLineState as b1, type OrderLineStatus as b2, type FulfillmentType as b3, type FulfillmentStatus as b4, type FulfillmentLink as b5, type OrderFulfillmentSummary as b6, type FeeBearerType as b7, type AmountToPay as b8, type LineItem as b9, type StaffAssignment as bA, type ResourceAssignment as bB, type SchedulingResult as bC, type DepositResult as bD, type ServiceScheduleRequest as bE, type StaffScheduleItem as bF, type LocationAppointment as bG, type ProviderResolutionSource as bH, type DeliveryFeeDetails as bI, type RelationType as bJ, type RelatedProduct as bK, type RelatedCandidate as bL, type RelatedProductsEnrichment as bM, type BusinessType as bN, type BusinessPreferences as bO, type Business as bP, type LocationTaxBehavior as bQ, type LocationTaxOverrides as bR, type Location as bS, type TimeRange as bT, type TimeRanges as bU, type LocationTimeProfile as bV, type Table as bW, type Room as bX, type ServiceCharge as bY, type StorefrontBootstrap as bZ, type BusinessWithLocations as b_, type Order as ba, type OrderHistory as bb, type OrderGroupStatus as bc, type OrderGroupPaymentState as bd, type OrderGroupPaymentStatus as be, type OrderGroup as bf, type OrderGroupPayment as bg, type OrderSplitDetail as bh, type OrderGroupPaymentSummary as bi, type OrderGroupDetails as bj, type OrderPaymentEvent as bk, type OrderFilter as bl, type CheckoutInput as bm, type UpdateOrderStatusInput as bn, type CancelOrderInput as bo, type RefundOrderInput as bp, type ServiceStatus as bq, type StaffRole as br, type ReminderMethod as bs, type CustomerServicePreferences as bt, type BufferTimes as bu, type ReminderSettings as bv, type CancellationPolicy as bw, type ServiceNotes as bx, type PricingOverrides as by, type SchedulingMetadata as bz, createCimplifyClient as c, type RetryEvent as c$, type BusinessSettings as c0, type BusinessHours as c1, type CategoryInfo as c2, type Service as c3, type Staff as c4, type TimeSlot as c5, type SlotResourceInfo as c6, type SlotStaffInfo as c7, type AvailableSlot as c8, type DayAvailability as c9, type UpdateAddressInput as cA, type CreateMobileMoneyInput as cB, type EnrollmentData as cC, type AddressData as cD, type MobileMoneyData as cE, type EnrollAndLinkOrderInput as cF, type LinkStatusResult as cG, type LinkEnrollResult as cH, type EnrollAndLinkOrderResult as cI, type LinkSession as cJ, type RevokeSessionResult as cK, type RevokeAllSessionsResult as cL, type RequestOtpInput as cM, type VerifyOtpInput as cN, type AuthResponse as cO, type PickupTimeType as cP, type PickupTime as cQ, type CheckoutAddressInfo as cR, type MobileMoneyDetails as cS, type CheckoutCustomerInfo as cT, type FxQuoteRequest as cU, type FxQuote as cV, type FxRateResponse as cW, type RequestContext as cX, type RequestStartEvent as cY, type RequestSuccessEvent as cZ, type RequestErrorEvent as c_, type BookingStatus as ca, type Booking as cb, type BookingWithDetails as cc, type CustomerBookingServiceItem as cd, type CustomerBooking as ce, type GetAvailableSlotsInput as cf, type CheckSlotAvailabilityInput as cg, type CheckSlotAvailabilityResult as ch, type RescheduleBookingInput as ci, type CancelBookingInput as cj, type CancelBookingResult as ck, type RescheduleBookingResult as cl, type ServiceAvailabilityParams as cm, type ServiceAvailabilityResult as cn, type StockStatus as co, type StockLevel as cp, type ProductStock as cq, type VariantStock as cr, type LocationStock as cs, type AvailabilityResult as ct, type Customer as cu, type CustomerAddress as cv, type CustomerMobileMoney as cw, type CustomerLinkPreferences as cx, type LinkData as cy, type CreateAddressInput as cz, type QuoteBundleSelectionInput as d, type SessionChangeEvent as d0, type ObservabilityHooks as d1, type OrderType as d2, type ElementAppearance as d3, type AddressInfo as d4, type PaymentMethodInfo as d5, type AuthenticatedCustomer as d6, type ElementsCustomerInfo as d7, type AuthenticatedData as d8, type ElementsCheckoutData as d9, type ElementsCheckoutResult as da, type CheckoutCartItem as db, type CheckoutCartData as dc, type ParentToIframeMessage as dd, type IframeToParentMessage as de, type ElementEventHandler as df, type QuoteStatus as e, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RequestSource as h, type RefreshQuoteResult as i, CartOperations as j, type ReorderResult as k, CheckoutService as l, generateIdempotencyKey as m, type GetOrdersOptions as n, type AuthStatus as o, type OtpResult as p, SchedulingService as q, LiteService as r, FxService as s, ActivityService as t, UploadService as u, type UploadResult as v, type UploadInitResponse as w, PlacesService as x, type AutocompletePrediction as y, type AutocompleteResponse as z };