@wix/auto_sdk_get-paid_receipts 1.0.332 → 1.0.334

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,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,6 +1346,8 @@ interface ReceiptCreatedEnvelope {
1345
1346
  * Triggered when a receipt is created.
1346
1347
  * @permissionScope Manage Receipts
1347
1348
  * @permissionScopeId SCOPE.RECEIPTS.MANAGE
1349
+ * @permissionScope Manage Stores
1350
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1348
1351
  * @permissionId RECEIPTS.RECEIPT_READ
1349
1352
  * @webhook
1350
1353
  * @eventType wix.receipts.v1.receipt_created
@@ -1359,6 +1362,8 @@ interface ReceiptSentEnvelope {
1359
1362
  * Triggered when a receipt is sent.
1360
1363
  * @permissionScope Manage Receipts
1361
1364
  * @permissionScopeId SCOPE.RECEIPTS.MANAGE
1365
+ * @permissionScope Manage Stores
1366
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1362
1367
  * @permissionId RECEIPTS.RECEIPT_READ
1363
1368
  * @webhook
1364
1369
  * @eventType wix.receipts.v1.receipt_sent
@@ -1375,6 +1380,8 @@ interface ReceiptUpdatedEnvelope {
1375
1380
  * Triggered when a receipt's number allocation is updated or a receipt document is generated.
1376
1381
  * @permissionScope Manage Receipts
1377
1382
  * @permissionScopeId SCOPE.RECEIPTS.MANAGE
1383
+ * @permissionScope Manage Stores
1384
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1378
1385
  * @permissionId RECEIPTS.RECEIPT_READ
1379
1386
  * @webhook
1380
1387
  * @eventType wix.receipts.v1.receipt_updated
@@ -1573,6 +1580,9 @@ type ReceiptQuery = {
1573
1580
  order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
1574
1581
  }[];
1575
1582
  };
1583
+ declare const QueryBuilder: () => _wix_sdk_types.QueryBuilder<Receipt, ReceiptQuerySpec, ReceiptQuery>;
1584
+ declare const Filter: _wix_sdk_types.FilterFactory<Receipt, ReceiptQuerySpec>;
1585
+ declare const Sort: _wix_sdk_types.SortFactory<ReceiptQuerySpec>;
1576
1586
  /**
1577
1587
  * Retries generating a receipt document that has a `FAILED` or stuck in `PROCESSING` status.
1578
1588
  *
@@ -1651,4 +1661,4 @@ interface UpdateExtendedFieldsOptions {
1651
1661
  namespaceData: Record<string, any> | null;
1652
1662
  }
1653
1663
 
1654
- 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 };
1664
+ 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,