@wix/auto_sdk_get-paid_billable-items 1.0.30 → 1.0.32

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.
Files changed (37) hide show
  1. package/build/cjs/{billable-items-v1-billable-item-billable-items.universal-CBsiEZYZ.d.ts → billable-items-v1-billable-item-billable-items.universal-BZB5Qy0i.d.ts} +44 -71
  2. package/build/cjs/index.d.ts +10 -17
  3. package/build/cjs/index.js +50 -1
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/index.typings.d.ts +2 -2
  6. package/build/cjs/index.typings.js +32 -0
  7. package/build/cjs/index.typings.js.map +1 -1
  8. package/build/cjs/meta.d.ts +39 -72
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/{billable-items-v1-billable-item-billable-items.universal-CBsiEZYZ.d.mts → billable-items-v1-billable-item-billable-items.universal-BZB5Qy0i.d.mts} +44 -71
  11. package/build/es/index.d.mts +10 -17
  12. package/build/es/index.mjs +50 -1
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +2 -2
  15. package/build/es/index.typings.mjs +31 -0
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +39 -72
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/{billable-items-v1-billable-item-billable-items.universal-CBsiEZYZ.d.ts → billable-items-v1-billable-item-billable-items.universal-BZB5Qy0i.d.ts} +44 -71
  20. package/build/internal/cjs/index.d.ts +10 -17
  21. package/build/internal/cjs/index.js +50 -1
  22. package/build/internal/cjs/index.js.map +1 -1
  23. package/build/internal/cjs/index.typings.d.ts +2 -2
  24. package/build/internal/cjs/index.typings.js +32 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -1
  26. package/build/internal/cjs/meta.d.ts +39 -72
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/{billable-items-v1-billable-item-billable-items.universal-CBsiEZYZ.d.mts → billable-items-v1-billable-item-billable-items.universal-BZB5Qy0i.d.mts} +44 -71
  29. package/build/internal/es/index.d.mts +10 -17
  30. package/build/internal/es/index.mjs +50 -1
  31. package/build/internal/es/index.mjs.map +1 -1
  32. package/build/internal/es/index.typings.d.mts +2 -2
  33. package/build/internal/es/index.typings.mjs +31 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -1
  35. package/build/internal/es/meta.d.mts +39 -72
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -118,68 +118,6 @@ interface TagList {
118
118
  */
119
119
  tagIds?: string[];
120
120
  }
121
- interface BulkUpdateBillableItemTagsRequest {
122
- /**
123
- * IDs of billable items which tags will be updated.
124
- * @minSize 1
125
- * @maxSize 100
126
- * @format GUID
127
- */
128
- billableItemIds?: string[];
129
- /** List of tags to assign. */
130
- assignTags?: Tags;
131
- /** List of tags to unassign. */
132
- unassignTags?: Tags;
133
- }
134
- interface BulkUpdateBillableItemTagsResponse {
135
- /**
136
- * @minSize 1
137
- * @maxSize 100
138
- */
139
- results?: BulkUpdateBillableItemTagsResult[];
140
- bulkActionMetadata?: BulkActionMetadata;
141
- }
142
- interface ItemMetadata {
143
- /**
144
- * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
145
- * @format GUID
146
- */
147
- _id?: string | null;
148
- /** Index of the item within the request array. Allows for correlation between request and response items. */
149
- originalIndex?: number;
150
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
151
- success?: boolean;
152
- /** Details about the error in case of failure. */
153
- error?: ApplicationError;
154
- }
155
- interface ApplicationError {
156
- /** Error code. */
157
- code?: string;
158
- /** Description of the error. */
159
- description?: string;
160
- /** Data related to the error. */
161
- data?: Record<string, any> | null;
162
- }
163
- interface BulkUpdateBillableItemTagsResult {
164
- itemMetadata?: ItemMetadata;
165
- }
166
- interface BulkActionMetadata {
167
- /** Number of items that were successfully processed. */
168
- totalSuccesses?: number;
169
- /** Number of items that couldn't be processed. */
170
- totalFailures?: number;
171
- /** Number of failures without details because detailed failure threshold was exceeded. */
172
- undetailedFailures?: number;
173
- }
174
- interface BulkUpdateBillableItemTagsByFilterRequest {
175
- filter?: Record<string, any> | null;
176
- assignTags?: Tags;
177
- unassignTags?: Tags;
178
- }
179
- interface BulkUpdateBillableItemTagsByFilterResponse {
180
- /** @format GUID */
181
- jobId?: string;
182
- }
183
121
  interface DomainEvent extends DomainEventBodyOneOf {
184
122
  createdEvent?: EntityCreatedEvent;
185
123
  updatedEvent?: EntityUpdatedEvent;
@@ -508,12 +446,41 @@ interface BulkCreateBillableItemsResponse {
508
446
  /** Metadata regarding the bulk create operation. */
509
447
  bulkActionMetadata?: BulkActionMetadata;
510
448
  }
449
+ interface ItemMetadata {
450
+ /**
451
+ * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
452
+ * @format GUID
453
+ */
454
+ _id?: string | null;
455
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
456
+ originalIndex?: number;
457
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
458
+ success?: boolean;
459
+ /** Details about the error in case of failure. */
460
+ error?: ApplicationError;
461
+ }
462
+ interface ApplicationError {
463
+ /** Error code. */
464
+ code?: string;
465
+ /** Description of the error. */
466
+ description?: string;
467
+ /** Data related to the error. */
468
+ data?: Record<string, any> | null;
469
+ }
511
470
  interface BulkBillableItemResult {
512
471
  /** Billable item's create operation metadata. */
513
472
  itemMetadata?: ItemMetadata;
514
473
  /** Created billable item if `returnEntity` was set `true` in the request. */
515
474
  item?: BillableItem;
516
475
  }
476
+ interface BulkActionMetadata {
477
+ /** Number of items that were successfully processed. */
478
+ totalSuccesses?: number;
479
+ /** Number of items that couldn't be processed. */
480
+ totalFailures?: number;
481
+ /** Number of failures without details because detailed failure threshold was exceeded. */
482
+ undetailedFailures?: number;
483
+ }
517
484
  interface BulkUpdateBillableItemsRequest {
518
485
  /**
519
486
  * Billable items to update.
@@ -567,7 +534,7 @@ interface BulkDeleteBillableItemsResponseBulkBillableItemResult {
567
534
  /** Billable item's delete operation metadata. */
568
535
  itemMetadata?: ItemMetadata;
569
536
  }
570
- interface V1BulkUpdateBillableItemTagsRequest {
537
+ interface BulkUpdateBillableItemTagsRequest {
571
538
  /**
572
539
  * IDs of billable items which tags will be updated.
573
540
  * @minSize 1
@@ -580,21 +547,21 @@ interface V1BulkUpdateBillableItemTagsRequest {
580
547
  /** List of tags to unassign. */
581
548
  unassignTags?: Tags;
582
549
  }
583
- interface V1BulkUpdateBillableItemTagsResponse {
550
+ interface BulkUpdateBillableItemTagsResponse {
584
551
  /**
585
552
  * Billable items update tags results including metadata.
586
553
  * @minSize 1
587
554
  * @maxSize 100
588
555
  */
589
- results?: BulkUpdateBillableItemTagsResponseBulkUpdateBillableItemTagsResult[];
556
+ results?: BulkUpdateBillableItemTagsResult[];
590
557
  /** Bulk update tags metadata. */
591
558
  bulkActionMetadata?: BulkActionMetadata;
592
559
  }
593
- interface BulkUpdateBillableItemTagsResponseBulkUpdateBillableItemTagsResult {
560
+ interface BulkUpdateBillableItemTagsResult {
594
561
  /** Billable item's update tags operation metadata. */
595
562
  itemMetadata?: ItemMetadata;
596
563
  }
597
- interface V1BulkUpdateBillableItemTagsByFilterRequest {
564
+ interface BulkUpdateBillableItemTagsByFilterRequest {
598
565
  /** Filter to select relevant billable items. */
599
566
  filter: Record<string, any> | null;
600
567
  /** List of tags to assign. */
@@ -602,7 +569,7 @@ interface V1BulkUpdateBillableItemTagsByFilterRequest {
602
569
  /** List of tags to unassign. */
603
570
  unassignTags?: Tags;
604
571
  }
605
- interface V1BulkUpdateBillableItemTagsByFilterResponse {
572
+ interface BulkUpdateBillableItemTagsByFilterResponse {
606
573
  /**
607
574
  * Job ID. Pass this ID to Get Async Job ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/get-async-job) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/get-async-job)) to track the job's status.
608
575
  * @format GUID
@@ -1446,6 +1413,12 @@ interface BillableItemsQueryBuilder {
1446
1413
  /** @documentationMaturity preview */
1447
1414
  find: () => Promise<BillableItemsQueryResult>;
1448
1415
  }
1416
+ /**
1417
+ * @hidden
1418
+ * @fqn wix.billable_items.v1.BillableItems.QueryBillableItems
1419
+ * @requiredField query
1420
+ */
1421
+ declare function typedQueryBillableItems(query: CursorQuery): Promise<NonNullablePaths<QueryBillableItemsResponse, `billableItems` | `billableItems.${number}.name` | `billableItems.${number}.price`, 4>>;
1449
1422
  /**
1450
1423
  * Create multiple billable items.
1451
1424
  * @param billableItems - List of billable items to create.
@@ -1504,7 +1477,7 @@ declare function bulkDeleteBillableItems(billableItemIds: string[]): Promise<Non
1504
1477
  * @applicableIdentity APP
1505
1478
  * @fqn wix.billable_items.v1.BillableItems.BulkUpdateBillableItemTags
1506
1479
  */
1507
- declare function bulkUpdateBillableItemTags(billableItemIds: string[], options?: BulkUpdateBillableItemTagsOptions): Promise<NonNullablePaths<V1BulkUpdateBillableItemTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
1480
+ declare function bulkUpdateBillableItemTags(billableItemIds: string[], options?: BulkUpdateBillableItemTagsOptions): Promise<NonNullablePaths<BulkUpdateBillableItemTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
1508
1481
  __applicationErrorsType?: BulkUpdateBillableItemTagsApplicationErrors;
1509
1482
  }>;
1510
1483
  interface BulkUpdateBillableItemTagsOptions {
@@ -1530,7 +1503,7 @@ interface BulkUpdateBillableItemTagsOptions {
1530
1503
  * @applicableIdentity APP
1531
1504
  * @fqn wix.billable_items.v1.BillableItems.BulkUpdateBillableItemTagsByFilter
1532
1505
  */
1533
- declare function bulkUpdateBillableItemTagsByFilter(filter: Record<string, any>, options?: BulkUpdateBillableItemTagsByFilterOptions): Promise<NonNullablePaths<V1BulkUpdateBillableItemTagsByFilterResponse, `jobId`, 2> & {
1506
+ declare function bulkUpdateBillableItemTagsByFilter(filter: Record<string, any>, options?: BulkUpdateBillableItemTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateBillableItemTagsByFilterResponse, `jobId`, 2> & {
1534
1507
  __applicationErrorsType?: BulkUpdateBillableItemTagsByFilterApplicationErrors;
1535
1508
  }>;
1536
1509
  interface BulkUpdateBillableItemTagsByFilterOptions {
@@ -1682,4 +1655,4 @@ type BillableItemSearch = {
1682
1655
  timeZone?: CommonSearchWithEntityContext['timeZone'] | null;
1683
1656
  };
1684
1657
 
1685
- export { type CreateBillableItemResponse as $, AggregationType as A, type BillableItem as B, type CreateBillableItemApplicationErrors as C, type BulkUpdateBillableItemTagsResult as D, type ExtendedFields as E, type BulkActionMetadata as F, type BulkUpdateBillableItemTagsByFilterRequest as G, type BulkUpdateBillableItemTagsByFilterResponse as H, Interval as I, type DomainEvent as J, type DomainEventBodyOneOf as K, type EntityCreatedEvent as L, type MaskedBillableItem as M, NestedAggregationType as N, type EntityUpdatedEvent as O, type EntityDeletedEvent as P, type ActionEvent as Q, type RestoreInfo as R, type SearchBillableItemsResponse as S, type Tags as T, type UpdateBillableItem as U, type V1BulkUpdateBillableItemTagsResponse as V, WebhookIdentityType as W, type MessageEnvelope as X, type IdentificationData as Y, type IdentificationDataIdOneOf as Z, type CreateBillableItemRequest as _, type BillableItemsQueryBuilder as a, type NestedResults as a$, type GetBillableItemRequest as a0, type GetBillableItemResponse as a1, type UpdateBillableItemRequest as a2, type UpdateBillableItemResponse as a3, type DeleteBillableItemRequest as a4, type DeleteBillableItemResponse as a5, type QueryBillableItemsRequest as a6, type CursorQuery as a7, type CursorQueryPagingMethodOneOf as a8, type Sorting as a9, type ValueAggregationOptionsOneOf as aA, type RangeAggregation as aB, type ScalarAggregation as aC, type DateHistogramAggregation as aD, type NestedAggregationItem as aE, type NestedAggregationItemKindOneOf as aF, type NestedAggregation as aG, type SearchDetails as aH, type PagingMetadataV2 as aI, type AggregationData as aJ, type ValueAggregationResult as aK, type RangeAggregationResult as aL, type NestedAggregationResults as aM, type NestedAggregationResultsResultOneOf as aN, type ValueResults as aO, type RangeResults as aP, type AggregationResultsScalarResult as aQ, type NestedValueAggregationResult as aR, type ValueResult as aS, type RangeResult as aT, type ScalarResult as aU, type NestedResultValue as aV, type NestedResultValueResultOneOf as aW, type Results as aX, type DateHistogramResult as aY, type GroupByValueResults as aZ, type DateHistogramResults as a_, type CursorPaging as aa, type QueryBillableItemsResponse as ab, type CursorPagingMetadata as ac, type Cursors as ad, type InternalQueryBillableItemsRequest as ae, type InternalCursorQuery as af, type InternalCursorQueryPagingMethodOneOf as ag, type InternalCursorPaging as ah, type InternalQueryBillableItemsResponse as ai, type BulkCreateBillableItemsRequest as aj, type BulkBillableItemResult as ak, type BulkUpdateBillableItemsRequest as al, type BulkUpdateBillableItemsResponseBulkBillableItemResult as am, type BulkDeleteBillableItemsRequest as an, type BulkDeleteBillableItemsResponseBulkBillableItemResult as ao, type V1BulkUpdateBillableItemTagsRequest as ap, type BulkUpdateBillableItemTagsResponseBulkUpdateBillableItemTagsResult as aq, type V1BulkUpdateBillableItemTagsByFilterRequest as ar, type SearchBillableItemsRequest as as, type CursorSearch as at, type CursorSearchPagingMethodOneOf as au, type Aggregation as av, type AggregationKindOneOf as aw, type RangeBucket as ax, type IncludeMissingValuesOptions as ay, type ValueAggregation as az, type BulkCreateBillableItemsOptions as b, type AggregationResults as b0, type AggregationResultsResultOneOf as b1, type BaseEventMetadata as b2, type EventMetadata as b3, type BillableItemsQueryResult as b4, type BillableItemSearchSpec as b5, type WebhookIdentityTypeWithLiterals as b6, type SortOrderWithLiterals as b7, type SortTypeWithLiterals as b8, type SortDirectionWithLiterals as b9, type MissingValuesWithLiterals as ba, type ScalarTypeWithLiterals as bb, type NestedAggregationTypeWithLiterals as bc, type IntervalWithLiterals as bd, type AggregationTypeWithLiterals as be, type ModeWithLiterals as bf, type CommonSearchWithEntityContext as bg, onBillableItemCreated as bh, onBillableItemDeleted as bi, onBillableItemUpdated as bj, createBillableItem as bk, getBillableItem as bl, updateBillableItem as bm, deleteBillableItem as bn, queryBillableItems as bo, bulkCreateBillableItems as bp, bulkUpdateBillableItems as bq, bulkDeleteBillableItems as br, bulkUpdateBillableItemTags as bs, bulkUpdateBillableItemTagsByFilter as bt, type BulkCreateBillableItemsResponse as c, type BulkUpdateBillableItemsOptions as d, type BulkUpdateBillableItemsResponse as e, type BulkDeleteBillableItemsResponse as f, type BulkUpdateBillableItemTagsOptions as g, type BulkUpdateBillableItemTagsApplicationErrors as h, type BulkUpdateBillableItemTagsByFilterOptions as i, type V1BulkUpdateBillableItemTagsByFilterResponse as j, type BulkUpdateBillableItemTagsByFilterApplicationErrors as k, type BillableItemSearch as l, type BillableItemCreatedEnvelope as m, type BillableItemDeletedEnvelope as n, type BillableItemUpdatedEnvelope as o, SortOrder as p, SortType as q, SortDirection as r, MissingValues as s, ScalarType as t, Mode as u, type TagList as v, type BulkUpdateBillableItemTagsRequest as w, type BulkUpdateBillableItemTagsResponse as x, type ItemMetadata as y, type ApplicationError as z };
1658
+ export { type DeleteBillableItemResponse as $, AggregationType as A, type BillableItem as B, type CreateBillableItemApplicationErrors as C, type DomainEvent as D, type ExtendedFields as E, type EntityCreatedEvent as F, type EntityUpdatedEvent as G, type EntityDeletedEvent as H, Interval as I, type ActionEvent as J, type MessageEnvelope as K, type IdentificationData as L, type MaskedBillableItem as M, NestedAggregationType as N, type IdentificationDataIdOneOf as O, type CreateBillableItemRequest as P, type CreateBillableItemResponse as Q, type RestoreInfo as R, type SearchBillableItemsResponse as S, type Tags as T, type UpdateBillableItem as U, type GetBillableItemRequest as V, WebhookIdentityType as W, type GetBillableItemResponse as X, type UpdateBillableItemRequest as Y, type UpdateBillableItemResponse as Z, type DeleteBillableItemRequest as _, type BulkCreateBillableItemsOptions as a, type EventMetadata as a$, type QueryBillableItemsRequest as a0, type CursorQueryPagingMethodOneOf as a1, type Sorting as a2, type CursorPaging as a3, type QueryBillableItemsResponse as a4, type CursorPagingMetadata as a5, type Cursors as a6, type InternalQueryBillableItemsRequest as a7, type InternalCursorQuery as a8, type InternalCursorQueryPagingMethodOneOf as a9, type NestedAggregationItem as aA, type NestedAggregationItemKindOneOf as aB, type NestedAggregation as aC, type SearchDetails as aD, type PagingMetadataV2 as aE, type AggregationData as aF, type ValueAggregationResult as aG, type RangeAggregationResult as aH, type NestedAggregationResults as aI, type NestedAggregationResultsResultOneOf as aJ, type ValueResults as aK, type RangeResults as aL, type AggregationResultsScalarResult as aM, type NestedValueAggregationResult as aN, type ValueResult as aO, type RangeResult as aP, type ScalarResult as aQ, type NestedResultValue as aR, type NestedResultValueResultOneOf as aS, type Results as aT, type DateHistogramResult as aU, type GroupByValueResults as aV, type DateHistogramResults as aW, type NestedResults as aX, type AggregationResults as aY, type AggregationResultsResultOneOf as aZ, type BaseEventMetadata as a_, type InternalCursorPaging as aa, type InternalQueryBillableItemsResponse as ab, type BulkCreateBillableItemsRequest as ac, type ItemMetadata as ad, type ApplicationError as ae, type BulkBillableItemResult as af, type BulkActionMetadata as ag, type BulkUpdateBillableItemsRequest as ah, type BulkUpdateBillableItemsResponseBulkBillableItemResult as ai, type BulkDeleteBillableItemsRequest as aj, type BulkDeleteBillableItemsResponseBulkBillableItemResult as ak, type BulkUpdateBillableItemTagsRequest as al, type BulkUpdateBillableItemTagsResult as am, type BulkUpdateBillableItemTagsByFilterRequest as an, type SearchBillableItemsRequest as ao, type CursorSearch as ap, type CursorSearchPagingMethodOneOf as aq, type Aggregation as ar, type AggregationKindOneOf as as, type RangeBucket as at, type IncludeMissingValuesOptions as au, type ValueAggregation as av, type ValueAggregationOptionsOneOf as aw, type RangeAggregation as ax, type ScalarAggregation as ay, type DateHistogramAggregation as az, type BulkCreateBillableItemsResponse as b, type BillableItemsQueryResult as b0, type BillableItemSearchSpec as b1, type WebhookIdentityTypeWithLiterals as b2, type SortOrderWithLiterals as b3, type SortTypeWithLiterals as b4, type SortDirectionWithLiterals as b5, type MissingValuesWithLiterals as b6, type ScalarTypeWithLiterals as b7, type NestedAggregationTypeWithLiterals as b8, type IntervalWithLiterals as b9, type AggregationTypeWithLiterals as ba, type ModeWithLiterals as bb, type CommonSearchWithEntityContext as bc, onBillableItemCreated as bd, onBillableItemDeleted as be, onBillableItemUpdated as bf, createBillableItem as bg, getBillableItem as bh, updateBillableItem as bi, deleteBillableItem as bj, queryBillableItems as bk, bulkCreateBillableItems as bl, bulkUpdateBillableItems as bm, bulkDeleteBillableItems as bn, bulkUpdateBillableItemTags as bo, bulkUpdateBillableItemTagsByFilter as bp, type BulkUpdateBillableItemsOptions as c, type BulkUpdateBillableItemsResponse as d, type BulkDeleteBillableItemsResponse as e, type BulkUpdateBillableItemTagsOptions as f, type BulkUpdateBillableItemTagsResponse as g, type BulkUpdateBillableItemTagsApplicationErrors as h, type BulkUpdateBillableItemTagsByFilterOptions as i, type BulkUpdateBillableItemTagsByFilterResponse as j, type BulkUpdateBillableItemTagsByFilterApplicationErrors as k, type BillableItemSearch as l, type BillableItemCreatedEnvelope as m, type BillableItemDeletedEnvelope as n, type BillableItemUpdatedEnvelope as o, type BillableItemsQueryBuilder as p, type CursorQuery as q, SortOrder as r, SortType as s, typedQueryBillableItems as t, SortDirection as u, MissingValues as v, ScalarType as w, Mode as x, type TagList as y, type DomainEventBodyOneOf as z };
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { B as BillableItem, C as CreateBillableItemApplicationErrors, U as UpdateBillableItem, a as BillableItemsQueryBuilder, b as BulkCreateBillableItemsOptions, c as BulkCreateBillableItemsResponse, M as MaskedBillableItem, d as BulkUpdateBillableItemsOptions, e as BulkUpdateBillableItemsResponse, f as BulkDeleteBillableItemsResponse, g as BulkUpdateBillableItemTagsOptions, V as V1BulkUpdateBillableItemTagsResponse, h as BulkUpdateBillableItemTagsApplicationErrors, i as BulkUpdateBillableItemTagsByFilterOptions, j as V1BulkUpdateBillableItemTagsByFilterResponse, k as BulkUpdateBillableItemTagsByFilterApplicationErrors, l as BillableItemSearch, S as SearchBillableItemsResponse, m as BillableItemCreatedEnvelope, n as BillableItemDeletedEnvelope, o as BillableItemUpdatedEnvelope } from './billable-items-v1-billable-item-billable-items.universal-CBsiEZYZ.js';
3
- export { Q as ActionEvent, av as Aggregation, aJ as AggregationData, aw as AggregationKindOneOf, b0 as AggregationResults, b1 as AggregationResultsResultOneOf, aQ as AggregationResultsScalarResult, A as AggregationType, be as AggregationTypeWithLiterals, z as ApplicationError, b2 as BaseEventMetadata, b5 as BillableItemSearchSpec, b4 as BillableItemsQueryResult, F as BulkActionMetadata, ak as BulkBillableItemResult, aj as BulkCreateBillableItemsRequest, an as BulkDeleteBillableItemsRequest, ao as BulkDeleteBillableItemsResponseBulkBillableItemResult, G as BulkUpdateBillableItemTagsByFilterRequest, H as BulkUpdateBillableItemTagsByFilterResponse, w as BulkUpdateBillableItemTagsRequest, x as BulkUpdateBillableItemTagsResponse, aq as BulkUpdateBillableItemTagsResponseBulkUpdateBillableItemTagsResult, D as BulkUpdateBillableItemTagsResult, al as BulkUpdateBillableItemsRequest, am as BulkUpdateBillableItemsResponseBulkBillableItemResult, bg as CommonSearchWithEntityContext, _ as CreateBillableItemRequest, $ as CreateBillableItemResponse, aa as CursorPaging, ac as CursorPagingMetadata, a7 as CursorQuery, a8 as CursorQueryPagingMethodOneOf, at as CursorSearch, au as CursorSearchPagingMethodOneOf, ad as Cursors, aD as DateHistogramAggregation, aY as DateHistogramResult, a_ as DateHistogramResults, a4 as DeleteBillableItemRequest, a5 as DeleteBillableItemResponse, J as DomainEvent, K as DomainEventBodyOneOf, L as EntityCreatedEvent, P as EntityDeletedEvent, O as EntityUpdatedEvent, b3 as EventMetadata, E as ExtendedFields, a0 as GetBillableItemRequest, a1 as GetBillableItemResponse, aZ as GroupByValueResults, Y as IdentificationData, Z as IdentificationDataIdOneOf, ay as IncludeMissingValuesOptions, ah as InternalCursorPaging, af as InternalCursorQuery, ag as InternalCursorQueryPagingMethodOneOf, ae as InternalQueryBillableItemsRequest, ai as InternalQueryBillableItemsResponse, I as Interval, bd as IntervalWithLiterals, y as ItemMetadata, X as MessageEnvelope, s as MissingValues, ba as MissingValuesWithLiterals, u as Mode, bf as ModeWithLiterals, aG as NestedAggregation, aE as NestedAggregationItem, aF as NestedAggregationItemKindOneOf, aM as NestedAggregationResults, aN as NestedAggregationResultsResultOneOf, N as NestedAggregationType, bc as NestedAggregationTypeWithLiterals, aV as NestedResultValue, aW as NestedResultValueResultOneOf, a$ as NestedResults, aR as NestedValueAggregationResult, aI as PagingMetadataV2, a6 as QueryBillableItemsRequest, ab as QueryBillableItemsResponse, aB as RangeAggregation, aL as RangeAggregationResult, ax as RangeBucket, aT as RangeResult, aP as RangeResults, R as RestoreInfo, aX as Results, aC as ScalarAggregation, aU as ScalarResult, t as ScalarType, bb as ScalarTypeWithLiterals, as as SearchBillableItemsRequest, aH as SearchDetails, r as SortDirection, b9 as SortDirectionWithLiterals, p as SortOrder, b7 as SortOrderWithLiterals, q as SortType, b8 as SortTypeWithLiterals, a9 as Sorting, v as TagList, T as Tags, a2 as UpdateBillableItemRequest, a3 as UpdateBillableItemResponse, ar as V1BulkUpdateBillableItemTagsByFilterRequest, ap as V1BulkUpdateBillableItemTagsRequest, az as ValueAggregation, aA as ValueAggregationOptionsOneOf, aK as ValueAggregationResult, aS as ValueResult, aO as ValueResults, W as WebhookIdentityType, b6 as WebhookIdentityTypeWithLiterals } from './billable-items-v1-billable-item-billable-items.universal-CBsiEZYZ.js';
2
+ import { B as BillableItem, C as CreateBillableItemApplicationErrors, U as UpdateBillableItem, a as BulkCreateBillableItemsOptions, b as BulkCreateBillableItemsResponse, M as MaskedBillableItem, c as BulkUpdateBillableItemsOptions, d as BulkUpdateBillableItemsResponse, e as BulkDeleteBillableItemsResponse, f as BulkUpdateBillableItemTagsOptions, g as BulkUpdateBillableItemTagsResponse, h as BulkUpdateBillableItemTagsApplicationErrors, i as BulkUpdateBillableItemTagsByFilterOptions, j as BulkUpdateBillableItemTagsByFilterResponse, k as BulkUpdateBillableItemTagsByFilterApplicationErrors, l as BillableItemSearch, S as SearchBillableItemsResponse, m as BillableItemCreatedEnvelope, n as BillableItemDeletedEnvelope, o as BillableItemUpdatedEnvelope, p as BillableItemsQueryBuilder, q as CursorQuery, t as typedQueryBillableItems } from './billable-items-v1-billable-item-billable-items.universal-BZB5Qy0i.js';
3
+ export { J as ActionEvent, ar as Aggregation, aF as AggregationData, as as AggregationKindOneOf, aY as AggregationResults, aZ as AggregationResultsResultOneOf, aM as AggregationResultsScalarResult, A as AggregationType, ba as AggregationTypeWithLiterals, ae as ApplicationError, a_ as BaseEventMetadata, b1 as BillableItemSearchSpec, b0 as BillableItemsQueryResult, ag as BulkActionMetadata, af as BulkBillableItemResult, ac as BulkCreateBillableItemsRequest, aj as BulkDeleteBillableItemsRequest, ak as BulkDeleteBillableItemsResponseBulkBillableItemResult, an as BulkUpdateBillableItemTagsByFilterRequest, al as BulkUpdateBillableItemTagsRequest, am as BulkUpdateBillableItemTagsResult, ah as BulkUpdateBillableItemsRequest, ai as BulkUpdateBillableItemsResponseBulkBillableItemResult, bc as CommonSearchWithEntityContext, P as CreateBillableItemRequest, Q as CreateBillableItemResponse, a3 as CursorPaging, a5 as CursorPagingMetadata, a1 as CursorQueryPagingMethodOneOf, ap as CursorSearch, aq as CursorSearchPagingMethodOneOf, a6 as Cursors, az as DateHistogramAggregation, aU as DateHistogramResult, aW as DateHistogramResults, _ as DeleteBillableItemRequest, $ as DeleteBillableItemResponse, D as DomainEvent, z as DomainEventBodyOneOf, F as EntityCreatedEvent, H as EntityDeletedEvent, G as EntityUpdatedEvent, a$ as EventMetadata, E as ExtendedFields, V as GetBillableItemRequest, X as GetBillableItemResponse, aV as GroupByValueResults, L as IdentificationData, O as IdentificationDataIdOneOf, au as IncludeMissingValuesOptions, aa as InternalCursorPaging, a8 as InternalCursorQuery, a9 as InternalCursorQueryPagingMethodOneOf, a7 as InternalQueryBillableItemsRequest, ab as InternalQueryBillableItemsResponse, I as Interval, b9 as IntervalWithLiterals, ad as ItemMetadata, K as MessageEnvelope, v as MissingValues, b6 as MissingValuesWithLiterals, x as Mode, bb as ModeWithLiterals, aC as NestedAggregation, aA as NestedAggregationItem, aB as NestedAggregationItemKindOneOf, aI as NestedAggregationResults, aJ as NestedAggregationResultsResultOneOf, N as NestedAggregationType, b8 as NestedAggregationTypeWithLiterals, aR as NestedResultValue, aS as NestedResultValueResultOneOf, aX as NestedResults, aN as NestedValueAggregationResult, aE as PagingMetadataV2, a0 as QueryBillableItemsRequest, a4 as QueryBillableItemsResponse, ax as RangeAggregation, aH as RangeAggregationResult, at as RangeBucket, aP as RangeResult, aL as RangeResults, R as RestoreInfo, aT as Results, ay as ScalarAggregation, aQ as ScalarResult, w as ScalarType, b7 as ScalarTypeWithLiterals, ao as SearchBillableItemsRequest, aD as SearchDetails, u as SortDirection, b5 as SortDirectionWithLiterals, r as SortOrder, b3 as SortOrderWithLiterals, s as SortType, b4 as SortTypeWithLiterals, a2 as Sorting, y as TagList, T as Tags, Y as UpdateBillableItemRequest, Z as UpdateBillableItemResponse, av as ValueAggregation, aw as ValueAggregationOptionsOneOf, aG as ValueAggregationResult, aO as ValueResult, aK as ValueResults, W as WebhookIdentityType, b2 as WebhookIdentityTypeWithLiterals } from './billable-items-v1-billable-item-billable-items.universal-BZB5Qy0i.js';
4
4
 
5
5
  declare function createBillableItem$1(httpClient: HttpClient): CreateBillableItemSignature;
6
6
  interface CreateBillableItemSignature {
@@ -46,17 +46,6 @@ interface DeleteBillableItemSignature {
46
46
  */
47
47
  (billableItemId: string): Promise<void>;
48
48
  }
49
- declare function queryBillableItems$1(httpClient: HttpClient): QueryBillableItemsSignature;
50
- interface QueryBillableItemsSignature {
51
- /**
52
- * Retrieves a list of BillableItems, given the provided [paging, filtering, and sorting](https://dev.wix.com/api/rest/getting-started/sorting-and-paging).
53
- *
54
- * Up to 1,000 BillableItems can be returned per request.
55
- *
56
- * To learn how to query BillableItems, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
57
- */
58
- (): BillableItemsQueryBuilder;
59
- }
60
49
  declare function bulkCreateBillableItems$1(httpClient: HttpClient): BulkCreateBillableItemsSignature;
61
50
  interface BulkCreateBillableItemsSignature {
62
51
  /**
@@ -91,7 +80,7 @@ interface BulkUpdateBillableItemTagsSignature {
91
80
  * @param - IDs of billable items which tags will be updated.
92
81
  * @param - Field options.
93
82
  */
94
- (billableItemIds: string[], options?: BulkUpdateBillableItemTagsOptions): Promise<NonNullablePaths<V1BulkUpdateBillableItemTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
83
+ (billableItemIds: string[], options?: BulkUpdateBillableItemTagsOptions): Promise<NonNullablePaths<BulkUpdateBillableItemTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
95
84
  __applicationErrorsType?: BulkUpdateBillableItemTagsApplicationErrors;
96
85
  }>;
97
86
  }
@@ -108,7 +97,7 @@ interface BulkUpdateBillableItemTagsByFilterSignature {
108
97
  * @param - Filter to select relevant billable items.
109
98
  * @param - Field options.
110
99
  */
111
- (filter: Record<string, any>, options?: BulkUpdateBillableItemTagsByFilterOptions): Promise<NonNullablePaths<V1BulkUpdateBillableItemTagsByFilterResponse, `jobId`, 2> & {
100
+ (filter: Record<string, any>, options?: BulkUpdateBillableItemTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateBillableItemTagsByFilterResponse, `jobId`, 2> & {
112
101
  __applicationErrorsType?: BulkUpdateBillableItemTagsByFilterApplicationErrors;
113
102
  }>;
114
103
  }
@@ -124,17 +113,21 @@ declare const onBillableItemCreated$1: EventDefinition<BillableItemCreatedEnvelo
124
113
  declare const onBillableItemDeleted$1: EventDefinition<BillableItemDeletedEnvelope, "wix.billable_items.v1.billable_item_deleted">;
125
114
  declare const onBillableItemUpdated$1: EventDefinition<BillableItemUpdatedEnvelope, "wix.billable_items.v1.billable_item_updated">;
126
115
 
116
+ declare function customQueryBillableItems(httpClient: HttpClient): {
117
+ (): BillableItemsQueryBuilder;
118
+ (query: CursorQuery): ReturnType<typeof typedQueryBillableItems>;
119
+ };
127
120
  declare const createBillableItem: MaybeContext<BuildRESTFunction<typeof createBillableItem$1> & typeof createBillableItem$1>;
128
121
  declare const getBillableItem: MaybeContext<BuildRESTFunction<typeof getBillableItem$1> & typeof getBillableItem$1>;
129
122
  declare const updateBillableItem: MaybeContext<BuildRESTFunction<typeof updateBillableItem$1> & typeof updateBillableItem$1>;
130
123
  declare const deleteBillableItem: MaybeContext<BuildRESTFunction<typeof deleteBillableItem$1> & typeof deleteBillableItem$1>;
131
- declare const queryBillableItems: MaybeContext<BuildRESTFunction<typeof queryBillableItems$1> & typeof queryBillableItems$1>;
132
124
  declare const bulkCreateBillableItems: MaybeContext<BuildRESTFunction<typeof bulkCreateBillableItems$1> & typeof bulkCreateBillableItems$1>;
133
125
  declare const bulkUpdateBillableItems: MaybeContext<BuildRESTFunction<typeof bulkUpdateBillableItems$1> & typeof bulkUpdateBillableItems$1>;
134
126
  declare const bulkDeleteBillableItems: MaybeContext<BuildRESTFunction<typeof bulkDeleteBillableItems$1> & typeof bulkDeleteBillableItems$1>;
135
127
  declare const bulkUpdateBillableItemTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateBillableItemTags$1> & typeof bulkUpdateBillableItemTags$1>;
136
128
  declare const bulkUpdateBillableItemTagsByFilter: MaybeContext<BuildRESTFunction<typeof bulkUpdateBillableItemTagsByFilter$1> & typeof bulkUpdateBillableItemTagsByFilter$1>;
137
129
  declare const searchBillableItems: MaybeContext<BuildRESTFunction<typeof searchBillableItems$1> & typeof searchBillableItems$1>;
130
+ declare const queryBillableItems: MaybeContext<BuildRESTFunction<typeof customQueryBillableItems> & typeof customQueryBillableItems>;
138
131
  /**
139
132
  * Triggered when a billable item is created.
140
133
  */
@@ -148,4 +141,4 @@ declare const onBillableItemDeleted: BuildEventDefinition<typeof onBillableItemD
148
141
  */
149
142
  declare const onBillableItemUpdated: BuildEventDefinition<typeof onBillableItemUpdated$1> & typeof onBillableItemUpdated$1;
150
143
 
151
- export { BillableItem, BillableItemCreatedEnvelope, BillableItemDeletedEnvelope, BillableItemSearch, BillableItemUpdatedEnvelope, BillableItemsQueryBuilder, BulkCreateBillableItemsOptions, BulkCreateBillableItemsResponse, BulkDeleteBillableItemsResponse, BulkUpdateBillableItemTagsApplicationErrors, BulkUpdateBillableItemTagsByFilterApplicationErrors, BulkUpdateBillableItemTagsByFilterOptions, BulkUpdateBillableItemTagsOptions, BulkUpdateBillableItemsOptions, BulkUpdateBillableItemsResponse, CreateBillableItemApplicationErrors, MaskedBillableItem, SearchBillableItemsResponse, UpdateBillableItem, V1BulkUpdateBillableItemTagsByFilterResponse, V1BulkUpdateBillableItemTagsResponse, bulkCreateBillableItems, bulkDeleteBillableItems, bulkUpdateBillableItemTags, bulkUpdateBillableItemTagsByFilter, bulkUpdateBillableItems, createBillableItem, deleteBillableItem, getBillableItem, onBillableItemCreated, onBillableItemDeleted, onBillableItemUpdated, queryBillableItems, searchBillableItems, updateBillableItem };
144
+ export { BillableItem, BillableItemCreatedEnvelope, BillableItemDeletedEnvelope, BillableItemSearch, BillableItemUpdatedEnvelope, BillableItemsQueryBuilder, BulkCreateBillableItemsOptions, BulkCreateBillableItemsResponse, BulkDeleteBillableItemsResponse, BulkUpdateBillableItemTagsApplicationErrors, BulkUpdateBillableItemTagsByFilterApplicationErrors, BulkUpdateBillableItemTagsByFilterOptions, BulkUpdateBillableItemTagsByFilterResponse, BulkUpdateBillableItemTagsOptions, BulkUpdateBillableItemTagsResponse, BulkUpdateBillableItemsOptions, BulkUpdateBillableItemsResponse, CreateBillableItemApplicationErrors, CursorQuery, MaskedBillableItem, SearchBillableItemsResponse, UpdateBillableItem, bulkCreateBillableItems, bulkDeleteBillableItems, bulkUpdateBillableItemTags, bulkUpdateBillableItemTagsByFilter, bulkUpdateBillableItems, createBillableItem, deleteBillableItem, getBillableItem, onBillableItemCreated, onBillableItemDeleted, onBillableItemUpdated, queryBillableItems, searchBillableItems, updateBillableItem };
@@ -749,6 +749,36 @@ function queryBillableItems2() {
749
749
  transformationPaths: {}
750
750
  });
751
751
  }
752
+ async function typedQueryBillableItems(query) {
753
+ const { httpClient, sideEffects } = arguments[1];
754
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
755
+ const reqOpts = queryBillableItems(payload);
756
+ sideEffects?.onSiteCall?.();
757
+ try {
758
+ const result = await httpClient.request(reqOpts);
759
+ sideEffects?.onSuccess?.(result);
760
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
761
+ (0, import_transform_paths2.transformPaths)(result.data, [
762
+ {
763
+ transformFn: import_image2.transformRESTImageToSDKImage,
764
+ paths: [{ path: "billableItems.image" }]
765
+ }
766
+ ])
767
+ );
768
+ } catch (err) {
769
+ const transformedError = (0, import_transform_error.transformError)(
770
+ err,
771
+ {
772
+ spreadPathsToArguments: {},
773
+ explicitPathsToArguments: { query: "$[0]" },
774
+ singleArgumentUnchanged: false
775
+ },
776
+ ["query"]
777
+ );
778
+ sideEffects?.onError?.(err);
779
+ throw transformedError;
780
+ }
781
+ }
752
782
  async function bulkCreateBillableItems2(billableItems, options) {
753
783
  const { httpClient, sideEffects } = arguments[2];
754
784
  const payload = (0, import_transform_paths2.transformPaths)(
@@ -995,6 +1025,13 @@ function queryBillableItems3(httpClient) {
995
1025
  { httpClient }
996
1026
  );
997
1027
  }
1028
+ function typedQueryBillableItems2(httpClient) {
1029
+ return (query) => typedQueryBillableItems(
1030
+ query,
1031
+ // @ts-ignore
1032
+ { httpClient }
1033
+ );
1034
+ }
998
1035
  function bulkCreateBillableItems3(httpClient) {
999
1036
  return (billableItems, options) => bulkCreateBillableItems2(
1000
1037
  billableItems,
@@ -1105,17 +1142,29 @@ var onBillableItemUpdated = (0, import_sdk_types.EventDefinition)(
1105
1142
  // src/billable-items-v1-billable-item-billable-items.context.ts
1106
1143
  var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
1107
1144
  var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
1145
+ var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
1146
+ function customQueryBillableItems(httpClient) {
1147
+ const router = (0, import_query_method_router.createQueryOverloadRouter)({
1148
+ builderQueryFunction: () => queryBillableItems3(httpClient)(),
1149
+ typedQueryFunction: (query) => typedQueryBillableItems2(httpClient)(query),
1150
+ hasOptionsParameter: false
1151
+ });
1152
+ function overloadedQuery(query) {
1153
+ return router(...arguments);
1154
+ }
1155
+ return overloadedQuery;
1156
+ }
1108
1157
  var createBillableItem4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createBillableItem3);
1109
1158
  var getBillableItem4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getBillableItem3);
1110
1159
  var updateBillableItem4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateBillableItem3);
1111
1160
  var deleteBillableItem4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteBillableItem3);
1112
- var queryBillableItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryBillableItems3);
1113
1161
  var bulkCreateBillableItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateBillableItems3);
1114
1162
  var bulkUpdateBillableItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateBillableItems3);
1115
1163
  var bulkDeleteBillableItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteBillableItems3);
1116
1164
  var bulkUpdateBillableItemTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateBillableItemTags3);
1117
1165
  var bulkUpdateBillableItemTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateBillableItemTagsByFilter3);
1118
1166
  var searchBillableItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchBillableItems3);
1167
+ var queryBillableItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryBillableItems);
1119
1168
  var onBillableItemCreated2 = (0, import_event_definition_modules.createEventModule)(
1120
1169
  onBillableItemCreated
1121
1170
  );