@wix/auto_sdk_get-paid_receipts 1.0.333 → 1.0.335
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/index.d.ts +1 -1
- package/build/cjs/index.js +8 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +5 -7
- package/build/cjs/index.typings.js +8 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +5 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +5 -7
- package/build/es/index.typings.mjs +5 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +8 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +5 -7
- package/build/internal/cjs/index.typings.js +8 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +5 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +5 -7
- package/build/internal/es/index.typings.mjs +5 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _wix_sdk_types from '@wix/sdk-types';
|
|
1
2
|
import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -1345,8 +1346,6 @@ interface ReceiptCreatedEnvelope {
|
|
|
1345
1346
|
* Triggered when a receipt is created.
|
|
1346
1347
|
* @permissionScope Manage Receipts
|
|
1347
1348
|
* @permissionScopeId SCOPE.RECEIPTS.MANAGE
|
|
1348
|
-
* @permissionScope Manage Stores
|
|
1349
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1350
1349
|
* @permissionId RECEIPTS.RECEIPT_READ
|
|
1351
1350
|
* @webhook
|
|
1352
1351
|
* @eventType wix.receipts.v1.receipt_created
|
|
@@ -1361,8 +1360,6 @@ interface ReceiptSentEnvelope {
|
|
|
1361
1360
|
* Triggered when a receipt is sent.
|
|
1362
1361
|
* @permissionScope Manage Receipts
|
|
1363
1362
|
* @permissionScopeId SCOPE.RECEIPTS.MANAGE
|
|
1364
|
-
* @permissionScope Manage Stores
|
|
1365
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1366
1363
|
* @permissionId RECEIPTS.RECEIPT_READ
|
|
1367
1364
|
* @webhook
|
|
1368
1365
|
* @eventType wix.receipts.v1.receipt_sent
|
|
@@ -1379,8 +1376,6 @@ interface ReceiptUpdatedEnvelope {
|
|
|
1379
1376
|
* Triggered when a receipt's number allocation is updated or a receipt document is generated.
|
|
1380
1377
|
* @permissionScope Manage Receipts
|
|
1381
1378
|
* @permissionScopeId SCOPE.RECEIPTS.MANAGE
|
|
1382
|
-
* @permissionScope Manage Stores
|
|
1383
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1384
1379
|
* @permissionId RECEIPTS.RECEIPT_READ
|
|
1385
1380
|
* @webhook
|
|
1386
1381
|
* @eventType wix.receipts.v1.receipt_updated
|
|
@@ -1579,6 +1574,9 @@ type ReceiptQuery = {
|
|
|
1579
1574
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1580
1575
|
}[];
|
|
1581
1576
|
};
|
|
1577
|
+
declare const QueryBuilder: () => _wix_sdk_types.QueryBuilder<Receipt, ReceiptQuerySpec, ReceiptQuery>;
|
|
1578
|
+
declare const Filter: _wix_sdk_types.FilterFactory<Receipt, ReceiptQuerySpec>;
|
|
1579
|
+
declare const Sort: _wix_sdk_types.SortFactory<ReceiptQuerySpec>;
|
|
1582
1580
|
/**
|
|
1583
1581
|
* Retries generating a receipt document that has a `FAILED` or stuck in `PROCESSING` status.
|
|
1584
1582
|
*
|
|
@@ -1657,4 +1655,4 @@ interface UpdateExtendedFieldsOptions {
|
|
|
1657
1655
|
namespaceData: Record<string, any> | null;
|
|
1658
1656
|
}
|
|
1659
1657
|
|
|
1660
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type AdditionalFeeTax, type Address, type AddressLocation, type AddressStreetOneOf, type BaseEventMetadata, type BusinessDetails, type CommonQueryWithEntityContext, type CreateReceiptApplicationErrors, type CreateReceiptRequest, type CreateReceiptResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomField, type CustomFields, type Customer, type Discount, type Document, DocumentStatus, type DocumentStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type Failed, type FooterCustomField, type FullAddressContactDetails, type GenerateReceiptDocument, type GetLatestReceiptNumberOptions, type GetLatestReceiptNumberRequest, type GetLatestReceiptNumberResponse, type GetReceiptRequest, type GetReceiptResponse, type IdentificationData, type IdentificationDataIdOneOf, type LineItem, type LineItemTax, type LineItemTotals, type Locale, type MessageEnvelope, type Numbering, type Payment, type QueryReceiptsRequest, type QueryReceiptsResponse, type Receipt, type ReceiptCreatedEnvelope, type ReceiptDocumentHandled, type ReceiptDocumentHandledResultOneOf, type ReceiptDocumentProcess, type ReceiptNumberingProcess, ReceiptOrderType, type ReceiptOrderTypeWithLiterals, type ReceiptQuery, type ReceiptQuerySpec, type ReceiptSentEnvelope, type ReceiptUpdatedEnvelope, type ReceiptsQueryBuilder, type ReceiptsQueryResult, type RegenerateReceiptDocumentApplicationErrors, type RegenerateReceiptDocumentRequest, type RegenerateReceiptDocumentResponse, type RegionalProperties, RequestOrigin, type RequestOriginWithLiterals, type RestoreInfo, type SendReceiptEmailApplicationErrors, type SendReceiptEmailOptions, type SendReceiptEmailRequest, type SendReceiptEmailResponse, type Sent, type ShippingAddressContactDetails, type ShippingInfo, type ShippingTax, SortOrder, type SortOrderWithLiterals, type Sorting, type SourceReference, type SourceReferenceOrderOneOf, type StandardDetails, type StreetAddress, type Subdivision, SubdivisionType, type SubdivisionTypeWithLiterals, type Succeeded, type Tax, type Totals, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, type UpdateReceiptRequest, type UpdateReceiptResponse, type VatId, VatType, type VatTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixEcom, type WixPayment, createReceipt, getLatestReceiptNumber, getReceipt, onReceiptCreated, onReceiptSent, onReceiptUpdated, queryReceipts, regenerateReceiptDocument, sendReceiptEmail, typedQueryReceipts, updateExtendedFields };
|
|
1658
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type AdditionalFeeTax, type Address, type AddressLocation, type AddressStreetOneOf, type BaseEventMetadata, type BusinessDetails, type CommonQueryWithEntityContext, type CreateReceiptApplicationErrors, type CreateReceiptRequest, type CreateReceiptResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomField, type CustomFields, type Customer, type Discount, type Document, DocumentStatus, type DocumentStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type Failed, Filter, type FooterCustomField, type FullAddressContactDetails, type GenerateReceiptDocument, type GetLatestReceiptNumberOptions, type GetLatestReceiptNumberRequest, type GetLatestReceiptNumberResponse, type GetReceiptRequest, type GetReceiptResponse, type IdentificationData, type IdentificationDataIdOneOf, type LineItem, type LineItemTax, type LineItemTotals, type Locale, type MessageEnvelope, type Numbering, type Payment, QueryBuilder, type QueryReceiptsRequest, type QueryReceiptsResponse, type Receipt, type ReceiptCreatedEnvelope, type ReceiptDocumentHandled, type ReceiptDocumentHandledResultOneOf, type ReceiptDocumentProcess, type ReceiptNumberingProcess, ReceiptOrderType, type ReceiptOrderTypeWithLiterals, type ReceiptQuery, type ReceiptQuerySpec, type ReceiptSentEnvelope, type ReceiptUpdatedEnvelope, type ReceiptsQueryBuilder, type ReceiptsQueryResult, type RegenerateReceiptDocumentApplicationErrors, type RegenerateReceiptDocumentRequest, type RegenerateReceiptDocumentResponse, type RegionalProperties, RequestOrigin, type RequestOriginWithLiterals, type RestoreInfo, type SendReceiptEmailApplicationErrors, type SendReceiptEmailOptions, type SendReceiptEmailRequest, type SendReceiptEmailResponse, type Sent, type ShippingAddressContactDetails, type ShippingInfo, type ShippingTax, Sort, SortOrder, type SortOrderWithLiterals, type Sorting, type SourceReference, type SourceReferenceOrderOneOf, type StandardDetails, type StreetAddress, type Subdivision, SubdivisionType, type SubdivisionTypeWithLiterals, type Succeeded, type Tax, type Totals, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, type UpdateReceiptRequest, type UpdateReceiptResponse, type VatId, VatType, type VatTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixEcom, type WixPayment, createReceipt, getLatestReceiptNumber, getReceipt, onReceiptCreated, onReceiptSent, onReceiptUpdated, queryReceipts, regenerateReceiptDocument, sendReceiptEmail, typedQueryReceipts, updateExtendedFields };
|
|
@@ -22,8 +22,11 @@ var index_typings_exports = {};
|
|
|
22
22
|
__export(index_typings_exports, {
|
|
23
23
|
AdditionalFeeSource: () => AdditionalFeeSource,
|
|
24
24
|
DocumentStatus: () => DocumentStatus,
|
|
25
|
+
Filter: () => Filter,
|
|
26
|
+
QueryBuilder: () => QueryBuilder,
|
|
25
27
|
ReceiptOrderType: () => ReceiptOrderType,
|
|
26
28
|
RequestOrigin: () => RequestOrigin,
|
|
29
|
+
Sort: () => Sort,
|
|
27
30
|
SortOrder: () => SortOrder,
|
|
28
31
|
SubdivisionType: () => SubdivisionType,
|
|
29
32
|
VatType: () => VatType,
|
|
@@ -357,6 +360,7 @@ var import_address2 = require("@wix/sdk-runtime/transformations/address");
|
|
|
357
360
|
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
358
361
|
var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
359
362
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
363
|
+
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
360
364
|
var ReceiptOrderType = /* @__PURE__ */ ((ReceiptOrderType2) => {
|
|
361
365
|
ReceiptOrderType2["UNKNOWN_ORDER_TYPE"] = "UNKNOWN_ORDER_TYPE";
|
|
362
366
|
ReceiptOrderType2["WIX_PAYMENT"] = "WIX_PAYMENT";
|
|
@@ -601,6 +605,7 @@ async function typedQueryReceipts(query) {
|
|
|
601
605
|
throw transformedError;
|
|
602
606
|
}
|
|
603
607
|
}
|
|
608
|
+
var { QueryBuilder, Filter, Sort } = (0, import_query_builder_utils.createQueryUtils)();
|
|
604
609
|
async function regenerateReceiptDocument2(receiptId) {
|
|
605
610
|
const { httpClient, sideEffects } = arguments[1];
|
|
606
611
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -730,8 +735,11 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
730
735
|
0 && (module.exports = {
|
|
731
736
|
AdditionalFeeSource,
|
|
732
737
|
DocumentStatus,
|
|
738
|
+
Filter,
|
|
739
|
+
QueryBuilder,
|
|
733
740
|
ReceiptOrderType,
|
|
734
741
|
RequestOrigin,
|
|
742
|
+
Sort,
|
|
735
743
|
SortOrder,
|
|
736
744
|
SubdivisionType,
|
|
737
745
|
VatType,
|