@wix/auto_sdk_get-paid_billable-items 1.0.35 → 1.0.37
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/build/cjs/{billable-items-v1-billable-item-billable-items.universal-BZB5Qy0i.d.ts → billable-items-v1-billable-item-billable-items.universal-BB343sMo.d.ts} +69 -3
- package/build/cjs/index.d.ts +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/es/{billable-items-v1-billable-item-billable-items.universal-BZB5Qy0i.d.mts → billable-items-v1-billable-item-billable-items.universal-BB343sMo.d.mts} +69 -3
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/internal/cjs/{billable-items-v1-billable-item-billable-items.universal-BZB5Qy0i.d.ts → billable-items-v1-billable-item-billable-items.universal-BB343sMo.d.ts} +69 -3
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/es/{billable-items-v1-billable-item-billable-items.universal-BZB5Qy0i.d.mts → billable-items-v1-billable-item-billable-items.universal-BB343sMo.d.mts} +69 -3
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SearchSpec, Search, NonNullablePaths } from '@wix/sdk-types';
|
|
1
|
+
import { QuerySpec, SearchSpec, Query, Search, NonNullablePaths } from '@wix/sdk-types';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A billable item represents a billable product or service that can be added to invoices.
|
|
@@ -1418,7 +1418,73 @@ interface BillableItemsQueryBuilder {
|
|
|
1418
1418
|
* @fqn wix.billable_items.v1.BillableItems.QueryBillableItems
|
|
1419
1419
|
* @requiredField query
|
|
1420
1420
|
*/
|
|
1421
|
-
declare function typedQueryBillableItems(query:
|
|
1421
|
+
declare function typedQueryBillableItems(query: BillableItemQuery): Promise<NonNullablePaths<QueryBillableItemsResponse, `billableItems` | `billableItems.${number}.name` | `billableItems.${number}.price`, 4>>;
|
|
1422
|
+
interface BillableItemQuerySpec extends QuerySpec {
|
|
1423
|
+
paging: 'cursor';
|
|
1424
|
+
wql: [
|
|
1425
|
+
{
|
|
1426
|
+
fields: [
|
|
1427
|
+
'_createdDate',
|
|
1428
|
+
'_id',
|
|
1429
|
+
'_updatedDate',
|
|
1430
|
+
'description',
|
|
1431
|
+
'image',
|
|
1432
|
+
'name',
|
|
1433
|
+
'price',
|
|
1434
|
+
'tags',
|
|
1435
|
+
'taxGroupId'
|
|
1436
|
+
];
|
|
1437
|
+
operators: '*';
|
|
1438
|
+
sort: 'BOTH';
|
|
1439
|
+
}
|
|
1440
|
+
];
|
|
1441
|
+
}
|
|
1442
|
+
type CommonQueryWithEntityContext = Query<BillableItem, BillableItemQuerySpec>;
|
|
1443
|
+
type BillableItemQuery = {
|
|
1444
|
+
/**
|
|
1445
|
+
Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`.
|
|
1446
|
+
*/
|
|
1447
|
+
cursorPaging?: {
|
|
1448
|
+
/**
|
|
1449
|
+
Maximum number of items to return in the results.
|
|
1450
|
+
@max: 100
|
|
1451
|
+
*/
|
|
1452
|
+
limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
|
|
1453
|
+
/**
|
|
1454
|
+
Pointer to the next or previous page in the list of results.
|
|
1455
|
+
|
|
1456
|
+
Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1457
|
+
Not relevant for the first request.
|
|
1458
|
+
@maxLength: 16000
|
|
1459
|
+
*/
|
|
1460
|
+
cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
|
|
1461
|
+
};
|
|
1462
|
+
/**
|
|
1463
|
+
Filter object in the following format:
|
|
1464
|
+
`"filter" : {
|
|
1465
|
+
"fieldName1": "value1",
|
|
1466
|
+
"fieldName2":{"$operator":"value2"}
|
|
1467
|
+
}`
|
|
1468
|
+
Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
1469
|
+
*/
|
|
1470
|
+
filter?: CommonQueryWithEntityContext['filter'] | null;
|
|
1471
|
+
/**
|
|
1472
|
+
Sort object in the following format:
|
|
1473
|
+
`[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
1474
|
+
@maxSize: 5
|
|
1475
|
+
*/
|
|
1476
|
+
sort?: {
|
|
1477
|
+
/**
|
|
1478
|
+
Name of the field to sort by.
|
|
1479
|
+
@maxLength: 512
|
|
1480
|
+
*/
|
|
1481
|
+
fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
|
|
1482
|
+
/**
|
|
1483
|
+
Sort order.
|
|
1484
|
+
*/
|
|
1485
|
+
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1486
|
+
}[];
|
|
1487
|
+
};
|
|
1422
1488
|
/**
|
|
1423
1489
|
* Create multiple billable items.
|
|
1424
1490
|
* @param billableItems - List of billable items to create.
|
|
@@ -1655,4 +1721,4 @@ type BillableItemSearch = {
|
|
|
1655
1721
|
timeZone?: CommonSearchWithEntityContext['timeZone'] | null;
|
|
1656
1722
|
};
|
|
1657
1723
|
|
|
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
|
|
1724
|
+
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 BaseEventMetadata as a$, type QueryBillableItemsRequest as a0, type CursorQuery as a1, type CursorQueryPagingMethodOneOf as a2, type Sorting as a3, type CursorPaging as a4, type QueryBillableItemsResponse as a5, type CursorPagingMetadata as a6, type Cursors as a7, type InternalQueryBillableItemsRequest as a8, type InternalCursorQuery as a9, type DateHistogramAggregation as aA, type NestedAggregationItem as aB, type NestedAggregationItemKindOneOf as aC, type NestedAggregation as aD, type SearchDetails as aE, type PagingMetadataV2 as aF, type AggregationData as aG, type ValueAggregationResult as aH, type RangeAggregationResult as aI, type NestedAggregationResults as aJ, type NestedAggregationResultsResultOneOf as aK, type ValueResults as aL, type RangeResults as aM, type AggregationResultsScalarResult as aN, type NestedValueAggregationResult as aO, type ValueResult as aP, type RangeResult as aQ, type ScalarResult as aR, type NestedResultValue as aS, type NestedResultValueResultOneOf as aT, type Results as aU, type DateHistogramResult as aV, type GroupByValueResults as aW, type DateHistogramResults as aX, type NestedResults as aY, type AggregationResults as aZ, type AggregationResultsResultOneOf as a_, type InternalCursorQueryPagingMethodOneOf as aa, type InternalCursorPaging as ab, type InternalQueryBillableItemsResponse as ac, type BulkCreateBillableItemsRequest as ad, type ItemMetadata as ae, type ApplicationError as af, type BulkBillableItemResult as ag, type BulkActionMetadata as ah, type BulkUpdateBillableItemsRequest as ai, type BulkUpdateBillableItemsResponseBulkBillableItemResult as aj, type BulkDeleteBillableItemsRequest as ak, type BulkDeleteBillableItemsResponseBulkBillableItemResult as al, type BulkUpdateBillableItemTagsRequest as am, type BulkUpdateBillableItemTagsResult as an, type BulkUpdateBillableItemTagsByFilterRequest as ao, type SearchBillableItemsRequest as ap, type CursorSearch as aq, type CursorSearchPagingMethodOneOf as ar, type Aggregation as as, type AggregationKindOneOf as at, type RangeBucket as au, type IncludeMissingValuesOptions as av, type ValueAggregation as aw, type ValueAggregationOptionsOneOf as ax, type RangeAggregation as ay, type ScalarAggregation as az, type BulkCreateBillableItemsResponse as b, type EventMetadata as b0, type BillableItemsQueryResult as b1, type BillableItemQuerySpec as b2, type BillableItemSearchSpec as b3, type WebhookIdentityTypeWithLiterals as b4, type SortOrderWithLiterals as b5, type SortTypeWithLiterals as b6, type SortDirectionWithLiterals as b7, type MissingValuesWithLiterals as b8, type ScalarTypeWithLiterals as b9, type NestedAggregationTypeWithLiterals as ba, type IntervalWithLiterals as bb, type AggregationTypeWithLiterals as bc, type ModeWithLiterals as bd, type CommonQueryWithEntityContext as be, type CommonSearchWithEntityContext as bf, onBillableItemCreated as bg, onBillableItemDeleted as bh, onBillableItemUpdated as bi, createBillableItem as bj, getBillableItem as bk, updateBillableItem as bl, deleteBillableItem as bm, queryBillableItems as bn, bulkCreateBillableItems as bo, bulkUpdateBillableItems as bp, bulkDeleteBillableItems as bq, bulkUpdateBillableItemTags as br, bulkUpdateBillableItemTagsByFilter as bs, 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 BillableItemQuery 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 };
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -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 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
|
|
3
|
-
export { J as ActionEvent,
|
|
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 BillableItemQuery, t as typedQueryBillableItems } from './billable-items-v1-billable-item-billable-items.universal-BB343sMo.js';
|
|
3
|
+
export { J as ActionEvent, as as Aggregation, aG as AggregationData, at as AggregationKindOneOf, aZ as AggregationResults, a_ as AggregationResultsResultOneOf, aN as AggregationResultsScalarResult, A as AggregationType, bc as AggregationTypeWithLiterals, af as ApplicationError, a$ as BaseEventMetadata, b2 as BillableItemQuerySpec, b3 as BillableItemSearchSpec, b1 as BillableItemsQueryResult, ah as BulkActionMetadata, ag as BulkBillableItemResult, ad as BulkCreateBillableItemsRequest, ak as BulkDeleteBillableItemsRequest, al as BulkDeleteBillableItemsResponseBulkBillableItemResult, ao as BulkUpdateBillableItemTagsByFilterRequest, am as BulkUpdateBillableItemTagsRequest, an as BulkUpdateBillableItemTagsResult, ai as BulkUpdateBillableItemsRequest, aj as BulkUpdateBillableItemsResponseBulkBillableItemResult, be as CommonQueryWithEntityContext, bf as CommonSearchWithEntityContext, P as CreateBillableItemRequest, Q as CreateBillableItemResponse, a4 as CursorPaging, a6 as CursorPagingMetadata, a1 as CursorQuery, a2 as CursorQueryPagingMethodOneOf, aq as CursorSearch, ar as CursorSearchPagingMethodOneOf, a7 as Cursors, aA as DateHistogramAggregation, aV as DateHistogramResult, aX as DateHistogramResults, _ as DeleteBillableItemRequest, $ as DeleteBillableItemResponse, D as DomainEvent, z as DomainEventBodyOneOf, F as EntityCreatedEvent, H as EntityDeletedEvent, G as EntityUpdatedEvent, b0 as EventMetadata, E as ExtendedFields, V as GetBillableItemRequest, X as GetBillableItemResponse, aW as GroupByValueResults, L as IdentificationData, O as IdentificationDataIdOneOf, av as IncludeMissingValuesOptions, ab as InternalCursorPaging, a9 as InternalCursorQuery, aa as InternalCursorQueryPagingMethodOneOf, a8 as InternalQueryBillableItemsRequest, ac as InternalQueryBillableItemsResponse, I as Interval, bb as IntervalWithLiterals, ae as ItemMetadata, K as MessageEnvelope, v as MissingValues, b8 as MissingValuesWithLiterals, x as Mode, bd as ModeWithLiterals, aD as NestedAggregation, aB as NestedAggregationItem, aC as NestedAggregationItemKindOneOf, aJ as NestedAggregationResults, aK as NestedAggregationResultsResultOneOf, N as NestedAggregationType, ba as NestedAggregationTypeWithLiterals, aS as NestedResultValue, aT as NestedResultValueResultOneOf, aY as NestedResults, aO as NestedValueAggregationResult, aF as PagingMetadataV2, a0 as QueryBillableItemsRequest, a5 as QueryBillableItemsResponse, ay as RangeAggregation, aI as RangeAggregationResult, au as RangeBucket, aQ as RangeResult, aM as RangeResults, R as RestoreInfo, aU as Results, az as ScalarAggregation, aR as ScalarResult, w as ScalarType, b9 as ScalarTypeWithLiterals, ap as SearchBillableItemsRequest, aE as SearchDetails, u as SortDirection, b7 as SortDirectionWithLiterals, r as SortOrder, b5 as SortOrderWithLiterals, s as SortType, b6 as SortTypeWithLiterals, a3 as Sorting, y as TagList, T as Tags, Y as UpdateBillableItemRequest, Z as UpdateBillableItemResponse, aw as ValueAggregation, ax as ValueAggregationOptionsOneOf, aH as ValueAggregationResult, aP as ValueResult, aL as ValueResults, W as WebhookIdentityType, b4 as WebhookIdentityTypeWithLiterals } from './billable-items-v1-billable-item-billable-items.universal-BB343sMo.js';
|
|
4
4
|
|
|
5
5
|
declare function createBillableItem$1(httpClient: HttpClient): CreateBillableItemSignature;
|
|
6
6
|
interface CreateBillableItemSignature {
|
|
@@ -115,7 +115,7 @@ declare const onBillableItemUpdated$1: EventDefinition<BillableItemUpdatedEnvelo
|
|
|
115
115
|
|
|
116
116
|
declare function customQueryBillableItems(httpClient: HttpClient): {
|
|
117
117
|
(): BillableItemsQueryBuilder;
|
|
118
|
-
(query:
|
|
118
|
+
(query: BillableItemQuery): ReturnType<typeof typedQueryBillableItems>;
|
|
119
119
|
};
|
|
120
120
|
declare const createBillableItem: MaybeContext<BuildRESTFunction<typeof createBillableItem$1> & typeof createBillableItem$1>;
|
|
121
121
|
declare const getBillableItem: MaybeContext<BuildRESTFunction<typeof getBillableItem$1> & typeof getBillableItem$1>;
|
|
@@ -141,4 +141,4 @@ declare const onBillableItemDeleted: BuildEventDefinition<typeof onBillableItemD
|
|
|
141
141
|
*/
|
|
142
142
|
declare const onBillableItemUpdated: BuildEventDefinition<typeof onBillableItemUpdated$1> & typeof onBillableItemUpdated$1;
|
|
143
143
|
|
|
144
|
-
export { BillableItem, BillableItemCreatedEnvelope, BillableItemDeletedEnvelope, BillableItemSearch, BillableItemUpdatedEnvelope, BillableItemsQueryBuilder, BulkCreateBillableItemsOptions, BulkCreateBillableItemsResponse, BulkDeleteBillableItemsResponse, BulkUpdateBillableItemTagsApplicationErrors, BulkUpdateBillableItemTagsByFilterApplicationErrors, BulkUpdateBillableItemTagsByFilterOptions, BulkUpdateBillableItemTagsByFilterResponse, BulkUpdateBillableItemTagsOptions, BulkUpdateBillableItemTagsResponse, BulkUpdateBillableItemsOptions, BulkUpdateBillableItemsResponse, CreateBillableItemApplicationErrors,
|
|
144
|
+
export { BillableItem, BillableItemCreatedEnvelope, BillableItemDeletedEnvelope, BillableItemQuery, BillableItemSearch, BillableItemUpdatedEnvelope, BillableItemsQueryBuilder, BulkCreateBillableItemsOptions, BulkCreateBillableItemsResponse, BulkDeleteBillableItemsResponse, BulkUpdateBillableItemTagsApplicationErrors, BulkUpdateBillableItemTagsByFilterApplicationErrors, BulkUpdateBillableItemTagsByFilterOptions, BulkUpdateBillableItemTagsByFilterResponse, BulkUpdateBillableItemTagsOptions, BulkUpdateBillableItemTagsResponse, BulkUpdateBillableItemsOptions, BulkUpdateBillableItemsResponse, CreateBillableItemApplicationErrors, MaskedBillableItem, SearchBillableItemsResponse, UpdateBillableItem, bulkCreateBillableItems, bulkDeleteBillableItems, bulkUpdateBillableItemTags, bulkUpdateBillableItemTagsByFilter, bulkUpdateBillableItems, createBillableItem, deleteBillableItem, getBillableItem, onBillableItemCreated, onBillableItemDeleted, onBillableItemUpdated, queryBillableItems, searchBillableItems, updateBillableItem };
|