@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.
@@ -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
  /**
@@ -1350,8 +1351,6 @@ interface ReceiptCreatedEnvelope {
1350
1351
  * Triggered when a receipt is created.
1351
1352
  * @permissionScope Manage Receipts
1352
1353
  * @permissionScopeId SCOPE.RECEIPTS.MANAGE
1353
- * @permissionScope Manage Stores
1354
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1355
1354
  * @permissionId RECEIPTS.RECEIPT_READ
1356
1355
  * @webhook
1357
1356
  * @eventType wix.receipts.v1.receipt_created
@@ -1366,8 +1365,6 @@ interface ReceiptSentEnvelope {
1366
1365
  * Triggered when a receipt is sent.
1367
1366
  * @permissionScope Manage Receipts
1368
1367
  * @permissionScopeId SCOPE.RECEIPTS.MANAGE
1369
- * @permissionScope Manage Stores
1370
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1371
1368
  * @permissionId RECEIPTS.RECEIPT_READ
1372
1369
  * @webhook
1373
1370
  * @eventType wix.receipts.v1.receipt_sent
@@ -1384,8 +1381,6 @@ interface ReceiptUpdatedEnvelope {
1384
1381
  * Triggered when a receipt's number allocation is updated or a receipt document is generated.
1385
1382
  * @permissionScope Manage Receipts
1386
1383
  * @permissionScopeId SCOPE.RECEIPTS.MANAGE
1387
- * @permissionScope Manage Stores
1388
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1389
1384
  * @permissionId RECEIPTS.RECEIPT_READ
1390
1385
  * @webhook
1391
1386
  * @eventType wix.receipts.v1.receipt_updated
@@ -1584,6 +1579,9 @@ type ReceiptQuery = {
1584
1579
  order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
1585
1580
  }[];
1586
1581
  };
1582
+ declare const QueryBuilder: () => _wix_sdk_types.QueryBuilder<Receipt, ReceiptQuerySpec, ReceiptQuery>;
1583
+ declare const Filter: _wix_sdk_types.FilterFactory<Receipt, ReceiptQuerySpec>;
1584
+ declare const Sort: _wix_sdk_types.SortFactory<ReceiptQuerySpec>;
1587
1585
  /**
1588
1586
  * Retries generating a receipt document that has a `FAILED` or stuck in `PROCESSING` status.
1589
1587
  *
@@ -1662,4 +1660,4 @@ interface UpdateExtendedFieldsOptions {
1662
1660
  namespaceData: Record<string, any> | null;
1663
1661
  }
1664
1662
 
1665
- 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 };
1663
+ 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,