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