@smartbills/sdk 0.0.2-alpha.40 → 0.0.2-alpha.42
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/LICENSE.md +20 -20
- package/README.md +41 -41
- package/package.json +2 -2
- package/dist/@types/client/SBClient.d.ts +0 -72
- package/dist/@types/client/SBClient.d.ts.map +0 -1
- package/dist/@types/client/SBClientOptions.d.ts +0 -19
- package/dist/@types/client/SBClientOptions.d.ts.map +0 -1
- package/dist/@types/client/SBCredentials.d.ts +0 -29
- package/dist/@types/client/SBCredentials.d.ts.map +0 -1
- package/dist/@types/client/SBEnvironment.d.ts +0 -8
- package/dist/@types/client/SBEnvironment.d.ts.map +0 -1
- package/dist/@types/client/SBError.d.ts +0 -9
- package/dist/@types/client/SBError.d.ts.map +0 -1
- package/dist/@types/client/SBErrorResponse.d.ts +0 -11
- package/dist/@types/client/SBErrorResponse.d.ts.map +0 -1
- package/dist/@types/client/SBException.d.ts +0 -17
- package/dist/@types/client/SBException.d.ts.map +0 -1
- package/dist/@types/client/SBInstance.d.ts +0 -12
- package/dist/@types/client/SBInstance.d.ts.map +0 -1
- package/dist/@types/client/SBLogger.d.ts +0 -8
- package/dist/@types/client/SBLogger.d.ts.map +0 -1
- package/dist/@types/client/SBPermission.d.ts +0 -49
- package/dist/@types/client/SBPermission.d.ts.map +0 -1
- package/dist/@types/client/SBRequestOption.d.ts +0 -14
- package/dist/@types/client/SBRequestOption.d.ts.map +0 -1
- package/dist/@types/client/SBServiceOptions.d.ts +0 -11
- package/dist/@types/client/SBServiceOptions.d.ts.map +0 -1
- package/dist/@types/constants/login/LoginError.d.ts +0 -8
- package/dist/@types/constants/login/LoginError.d.ts.map +0 -1
- package/dist/@types/entities/account/SBExternalProvider.d.ts +0 -8
- package/dist/@types/entities/account/SBExternalProvider.d.ts.map +0 -1
- package/dist/@types/entities/account/SBGenderEnum.d.ts +0 -8
- package/dist/@types/entities/account/SBGenderEnum.d.ts.map +0 -1
- package/dist/@types/entities/account/SBUserAccount.d.ts +0 -24
- package/dist/@types/entities/account/SBUserAccount.d.ts.map +0 -1
- package/dist/@types/entities/address/SBAddress.d.ts +0 -18
- package/dist/@types/entities/address/SBAddress.d.ts.map +0 -1
- package/dist/@types/entities/address/SBBillingAddress.d.ts +0 -14
- package/dist/@types/entities/address/SBBillingAddress.d.ts.map +0 -1
- package/dist/@types/entities/address/SBCoordinate.d.ts +0 -9
- package/dist/@types/entities/address/SBCoordinate.d.ts.map +0 -1
- package/dist/@types/entities/api-logs/SBLog.d.ts +0 -19
- package/dist/@types/entities/api-logs/SBLog.d.ts.map +0 -1
- package/dist/@types/entities/attachments/SBAttachment.d.ts +0 -27
- package/dist/@types/entities/attachments/SBAttachment.d.ts.map +0 -1
- package/dist/@types/entities/banks/SBBalanceHistory.d.ts +0 -11
- package/dist/@types/entities/banks/SBBalanceHistory.d.ts.map +0 -1
- package/dist/@types/entities/banks/SBBank.d.ts +0 -18
- package/dist/@types/entities/banks/SBBank.d.ts.map +0 -1
- package/dist/@types/entities/banks/SBBankAccount.d.ts +0 -19
- package/dist/@types/entities/banks/SBBankAccount.d.ts.map +0 -1
- package/dist/@types/entities/banks/SBBankBalance.d.ts +0 -11
- package/dist/@types/entities/banks/SBBankBalance.d.ts.map +0 -1
- package/dist/@types/entities/banks/SBBankInstitution.d.ts +0 -12
- package/dist/@types/entities/banks/SBBankInstitution.d.ts.map +0 -1
- package/dist/@types/entities/banks/SBBankState.d.ts +0 -9
- package/dist/@types/entities/banks/SBBankState.d.ts.map +0 -1
- package/dist/@types/entities/banks/SBBankTransaction.d.ts +0 -36
- package/dist/@types/entities/banks/SBBankTransaction.d.ts.map +0 -1
- package/dist/@types/entities/barcode/SBBarcode.d.ts +0 -10
- package/dist/@types/entities/barcode/SBBarcode.d.ts.map +0 -1
- package/dist/@types/entities/barcode/SBBarcodeType.d.ts +0 -27
- package/dist/@types/entities/barcode/SBBarcodeType.d.ts.map +0 -1
- package/dist/@types/entities/base.d.ts +0 -58
- package/dist/@types/entities/base.d.ts.map +0 -1
- package/dist/@types/entities/batches/SBBatch.d.ts +0 -6
- package/dist/@types/entities/batches/SBBatch.d.ts.map +0 -1
- package/dist/@types/entities/businesses/SBBusiness.d.ts +0 -19
- package/dist/@types/entities/businesses/SBBusiness.d.ts.map +0 -1
- package/dist/@types/entities/businesses/customers/SBCustomer.d.ts +0 -35
- package/dist/@types/entities/businesses/customers/SBCustomer.d.ts.map +0 -1
- package/dist/@types/entities/businesses/customers/balance-transactions/SBCustomerBalanceTransaction.d.ts +0 -12
- package/dist/@types/entities/businesses/customers/balance-transactions/SBCustomerBalanceTransaction.d.ts.map +0 -1
- package/dist/@types/entities/businesses/departments/SBDepartment.d.ts +0 -35
- package/dist/@types/entities/businesses/departments/SBDepartment.d.ts.map +0 -1
- package/dist/@types/entities/businesses/departments/SBDepartmentTeamMember.d.ts +0 -22
- package/dist/@types/entities/businesses/departments/SBDepartmentTeamMember.d.ts.map +0 -1
- package/dist/@types/entities/businesses/fees/SBFee.d.ts +0 -12
- package/dist/@types/entities/businesses/fees/SBFee.d.ts.map +0 -1
- package/dist/@types/entities/businesses/fees/SBFeeType.d.ts +0 -7
- package/dist/@types/entities/businesses/fees/SBFeeType.d.ts.map +0 -1
- package/dist/@types/entities/businesses/locations/SBLocation.d.ts +0 -16
- package/dist/@types/entities/businesses/locations/SBLocation.d.ts.map +0 -1
- package/dist/@types/entities/businesses/locations/SBLocationBatch.d.ts +0 -9
- package/dist/@types/entities/businesses/locations/SBLocationBatch.d.ts.map +0 -1
- package/dist/@types/entities/businesses/products/SBProduct.d.ts +0 -21
- package/dist/@types/entities/businesses/products/SBProduct.d.ts.map +0 -1
- package/dist/@types/entities/businesses/products/SBProductImage.d.ts +0 -8
- package/dist/@types/entities/businesses/products/SBProductImage.d.ts.map +0 -1
- package/dist/@types/entities/businesses/products/SBProductTranslation.d.ts +0 -11
- package/dist/@types/entities/businesses/products/SBProductTranslation.d.ts.map +0 -1
- package/dist/@types/entities/businesses/products/SBProductVariant.d.ts +0 -18
- package/dist/@types/entities/businesses/products/SBProductVariant.d.ts.map +0 -1
- package/dist/@types/entities/businesses/products/SBProductVariantOption.d.ts +0 -7
- package/dist/@types/entities/businesses/products/SBProductVariantOption.d.ts.map +0 -1
- package/dist/@types/entities/businesses/products/SBProductVendor.d.ts +0 -7
- package/dist/@types/entities/businesses/products/SBProductVendor.d.ts.map +0 -1
- package/dist/@types/entities/businesses/products/modifiers/SBProductModifier.d.ts +0 -10
- package/dist/@types/entities/businesses/products/modifiers/SBProductModifier.d.ts.map +0 -1
- package/dist/@types/entities/businesses/products/options/SBProductOption.d.ts +0 -33
- package/dist/@types/entities/businesses/products/options/SBProductOption.d.ts.map +0 -1
- package/dist/@types/entities/businesses/promo-codes/SBPromoCode.d.ts +0 -13
- package/dist/@types/entities/businesses/promo-codes/SBPromoCode.d.ts.map +0 -1
- package/dist/@types/entities/businesses/promo-codes/SBPromoCodeType.d.ts +0 -4
- package/dist/@types/entities/businesses/promo-codes/SBPromoCodeType.d.ts.map +0 -1
- package/dist/@types/entities/businesses/reviews/SBBusinessReview.d.ts +0 -9
- package/dist/@types/entities/businesses/reviews/SBBusinessReview.d.ts.map +0 -1
- package/dist/@types/entities/businesses/taxes/SBReceiptItemTax.d.ts +0 -10
- package/dist/@types/entities/businesses/taxes/SBReceiptItemTax.d.ts.map +0 -1
- package/dist/@types/entities/businesses/taxes/SBReceiptTax.d.ts +0 -12
- package/dist/@types/entities/businesses/taxes/SBReceiptTax.d.ts.map +0 -1
- package/dist/@types/entities/businesses/taxes/SBTax.d.ts +0 -17
- package/dist/@types/entities/businesses/taxes/SBTax.d.ts.map +0 -1
- package/dist/@types/entities/businesses/taxes/SBTaxType.d.ts +0 -4
- package/dist/@types/entities/businesses/taxes/SBTaxType.d.ts.map +0 -1
- package/dist/@types/entities/businesses/team/invitations/SBTeamMemberInvitation.d.ts +0 -17
- package/dist/@types/entities/businesses/team/invitations/SBTeamMemberInvitation.d.ts.map +0 -1
- package/dist/@types/entities/businesses/team/invitations/SBTeamMemberInvitationStatus.d.ts +0 -9
- package/dist/@types/entities/businesses/team/invitations/SBTeamMemberInvitationStatus.d.ts.map +0 -1
- package/dist/@types/entities/businesses/team/members/SBTeamMember.d.ts +0 -22
- package/dist/@types/entities/businesses/team/members/SBTeamMember.d.ts.map +0 -1
- package/dist/@types/entities/businesses/team/members/SBTeamMemberRole.d.ts +0 -10
- package/dist/@types/entities/businesses/team/members/SBTeamMemberRole.d.ts.map +0 -1
- package/dist/@types/entities/businesses/team/members/SBTeamMemberStatus.d.ts +0 -10
- package/dist/@types/entities/businesses/team/members/SBTeamMemberStatus.d.ts.map +0 -1
- package/dist/@types/entities/cards/SBCard.d.ts +0 -20
- package/dist/@types/entities/cards/SBCard.d.ts.map +0 -1
- package/dist/@types/entities/cards/SBCardSetupIntent.d.ts +0 -7
- package/dist/@types/entities/cards/SBCardSetupIntent.d.ts.map +0 -1
- package/dist/@types/entities/cards/SBCardType.d.ts +0 -9
- package/dist/@types/entities/cards/SBCardType.d.ts.map +0 -1
- package/dist/@types/entities/common/ImageUploadRequest.d.ts +0 -8
- package/dist/@types/entities/common/ImageUploadRequest.d.ts.map +0 -1
- package/dist/@types/entities/documents/SBDocument.d.ts +0 -16
- package/dist/@types/entities/documents/SBDocument.d.ts.map +0 -1
- package/dist/@types/entities/documents/SBDocumentUpload.d.ts +0 -8
- package/dist/@types/entities/documents/SBDocumentUpload.d.ts.map +0 -1
- package/dist/@types/entities/documents/ocr/SBBoundingBox.d.ts +0 -10
- package/dist/@types/entities/documents/ocr/SBBoundingBox.d.ts.map +0 -1
- package/dist/@types/entities/documents/ocr/SBDocumentOCR.d.ts +0 -10
- package/dist/@types/entities/documents/ocr/SBDocumentOCR.d.ts.map +0 -1
- package/dist/@types/entities/documents/ocr/SBExpenseDetection.d.ts +0 -11
- package/dist/@types/entities/documents/ocr/SBExpenseDetection.d.ts.map +0 -1
- package/dist/@types/entities/documents/ocr/SBExpenseField.d.ts +0 -13
- package/dist/@types/entities/documents/ocr/SBExpenseField.d.ts.map +0 -1
- package/dist/@types/entities/documents/ocr/SBExpenseType.d.ts +0 -8
- package/dist/@types/entities/documents/ocr/SBExpenseType.d.ts.map +0 -1
- package/dist/@types/entities/documents/ocr/SBGeometry.d.ts +0 -11
- package/dist/@types/entities/documents/ocr/SBGeometry.d.ts.map +0 -1
- package/dist/@types/entities/documents/ocr/SBLineItemFields.d.ts +0 -9
- package/dist/@types/entities/documents/ocr/SBLineItemFields.d.ts.map +0 -1
- package/dist/@types/entities/documents/ocr/SBLineItemGroup.d.ts +0 -10
- package/dist/@types/entities/documents/ocr/SBLineItemGroup.d.ts.map +0 -1
- package/dist/@types/entities/documents/ocr/SBOCRResult.d.ts +0 -12
- package/dist/@types/entities/documents/ocr/SBOCRResult.d.ts.map +0 -1
- package/dist/@types/entities/documents/ocr/SBPoint.d.ts +0 -7
- package/dist/@types/entities/documents/ocr/SBPoint.d.ts.map +0 -1
- package/dist/@types/entities/domains/SBDomain.d.ts +0 -10
- package/dist/@types/entities/domains/SBDomain.d.ts.map +0 -1
- package/dist/@types/entities/expense-groups/SBExpenseGroup.d.ts +0 -15
- package/dist/@types/entities/expense-groups/SBExpenseGroup.d.ts.map +0 -1
- package/dist/@types/entities/expense-groups/SBExpenseGroupAutomation.d.ts +0 -5
- package/dist/@types/entities/expense-groups/SBExpenseGroupAutomation.d.ts.map +0 -1
- package/dist/@types/entities/expense-groups/SBExpenseGroupBudget.d.ts +0 -7
- package/dist/@types/entities/expense-groups/SBExpenseGroupBudget.d.ts.map +0 -1
- package/dist/@types/entities/expense-groups/SBExpenseGroupForm.d.ts +0 -12
- package/dist/@types/entities/expense-groups/SBExpenseGroupForm.d.ts.map +0 -1
- package/dist/@types/entities/explore/SBExploreBusiness.d.ts +0 -14
- package/dist/@types/entities/explore/SBExploreBusiness.d.ts.map +0 -1
- package/dist/@types/entities/friends/SBFriend.d.ts +0 -10
- package/dist/@types/entities/friends/SBFriend.d.ts.map +0 -1
- package/dist/@types/entities/friends/SBFriendRequest.d.ts +0 -10
- package/dist/@types/entities/friends/SBFriendRequest.d.ts.map +0 -1
- package/dist/@types/entities/fulfillment/SBFulfillment.d.ts +0 -24
- package/dist/@types/entities/fulfillment/SBFulfillment.d.ts.map +0 -1
- package/dist/@types/entities/fulfillment/SBFulfillmentItem.d.ts +0 -13
- package/dist/@types/entities/fulfillment/SBFulfillmentItem.d.ts.map +0 -1
- package/dist/@types/entities/images/SBImage.d.ts +0 -13
- package/dist/@types/entities/images/SBImage.d.ts.map +0 -1
- package/dist/@types/entities/invoices/SBInvoice.d.ts +0 -7
- package/dist/@types/entities/invoices/SBInvoice.d.ts.map +0 -1
- package/dist/@types/entities/loyalty.d.ts +0 -266
- package/dist/@types/entities/loyalty.d.ts.map +0 -1
- package/dist/@types/entities/money/SBMoney.d.ts +0 -7
- package/dist/@types/entities/money/SBMoney.d.ts.map +0 -1
- package/dist/@types/entities/notifications/SBNotification.d.ts +0 -29
- package/dist/@types/entities/notifications/SBNotification.d.ts.map +0 -1
- package/dist/@types/entities/oauth/JwtToken.d.ts +0 -10
- package/dist/@types/entities/oauth/JwtToken.d.ts.map +0 -1
- package/dist/@types/entities/payment-methods/SBPaymentMethod.d.ts +0 -25
- package/dist/@types/entities/payment-methods/SBPaymentMethod.d.ts.map +0 -1
- package/dist/@types/entities/payment-methods/SBPaymentMethodBank.d.ts +0 -10
- package/dist/@types/entities/payment-methods/SBPaymentMethodBank.d.ts.map +0 -1
- package/dist/@types/entities/payment-methods/SBPaymentMethodCard.d.ts +0 -19
- package/dist/@types/entities/payment-methods/SBPaymentMethodCard.d.ts.map +0 -1
- package/dist/@types/entities/payment-methods/SBPaymentMethodFingerprint.d.ts +0 -7
- package/dist/@types/entities/payment-methods/SBPaymentMethodFingerprint.d.ts.map +0 -1
- package/dist/@types/entities/payment-methods/SBPaymentMethodFingerprintProvider.d.ts +0 -7
- package/dist/@types/entities/payment-methods/SBPaymentMethodFingerprintProvider.d.ts.map +0 -1
- package/dist/@types/entities/payment-methods/SBPaymentMethodSetup.d.ts +0 -8
- package/dist/@types/entities/payment-methods/SBPaymentMethodSetup.d.ts.map +0 -1
- package/dist/@types/entities/payments/SBPaymentStatus.d.ts +0 -28
- package/dist/@types/entities/payments/SBPaymentStatus.d.ts.map +0 -1
- package/dist/@types/entities/prices/SBPrice.d.ts +0 -13
- package/dist/@types/entities/prices/SBPrice.d.ts.map +0 -1
- package/dist/@types/entities/receipts/SBReceipt.d.ts +0 -65
- package/dist/@types/entities/receipts/SBReceipt.d.ts.map +0 -1
- package/dist/@types/entities/receipts/SBReceiptBatch.d.ts +0 -8
- package/dist/@types/entities/receipts/SBReceiptBatch.d.ts.map +0 -1
- package/dist/@types/entities/receipts/SBReceiptFee.d.ts +0 -11
- package/dist/@types/entities/receipts/SBReceiptFee.d.ts.map +0 -1
- package/dist/@types/entities/receipts/SBReceiptItem.d.ts +0 -23
- package/dist/@types/entities/receipts/SBReceiptItem.d.ts.map +0 -1
- package/dist/@types/entities/receipts/SBReceiptItemSplit.d.ts +0 -14
- package/dist/@types/entities/receipts/SBReceiptItemSplit.d.ts.map +0 -1
- package/dist/@types/entities/receipts/SBReceiptSource.d.ts +0 -10
- package/dist/@types/entities/receipts/SBReceiptSource.d.ts.map +0 -1
- package/dist/@types/entities/receipts/SBReceiptTransaction.d.ts +0 -23
- package/dist/@types/entities/receipts/SBReceiptTransaction.d.ts.map +0 -1
- package/dist/@types/entities/receipts/SBReceiptType.d.ts +0 -9
- package/dist/@types/entities/receipts/SBReceiptType.d.ts.map +0 -1
- package/dist/@types/entities/receipts/SBReceiptUser.d.ts +0 -12
- package/dist/@types/entities/receipts/SBReceiptUser.d.ts.map +0 -1
- package/dist/@types/entities/receipts/discounts/SBReceiptDiscount.d.ts +0 -14
- package/dist/@types/entities/receipts/discounts/SBReceiptDiscount.d.ts.map +0 -1
- package/dist/@types/entities/receipts/metadata/SBBrowserMetadata.d.ts +0 -11
- package/dist/@types/entities/receipts/metadata/SBBrowserMetadata.d.ts.map +0 -1
- package/dist/@types/entities/receipts/metadata/SBMetadata.d.ts +0 -4
- package/dist/@types/entities/receipts/metadata/SBMetadata.d.ts.map +0 -1
- package/dist/@types/entities/receipts/metadata/SBReceiptMetadata.d.ts +0 -15
- package/dist/@types/entities/receipts/metadata/SBReceiptMetadata.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPayment.d.ts +0 -40
- package/dist/@types/entities/receipts/payments/SBReceiptPayment.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentBalance.d.ts +0 -5
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentBalance.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentBankAccount.d.ts +0 -12
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentBankAccount.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCard.d.ts +0 -23
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCard.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardAvsResult.d.ts +0 -15
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardAvsResult.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardCvvResult.d.ts +0 -8
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardCvvResult.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardEMV.d.ts +0 -5
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardEMV.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardEntryMethod.d.ts +0 -10
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardEntryMethod.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardError.d.ts +0 -7
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardError.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardTimeline.d.ts +0 -8
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCardTimeline.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCash.d.ts +0 -9
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentCash.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentExternal.d.ts +0 -12
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentExternal.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentExternalType.d.ts +0 -17
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentExternalType.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentMethodCard.d.ts +0 -19
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentMethodCard.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentRefund.d.ts +0 -7
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentRefund.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentRiskEvaluation.d.ts +0 -9
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentRiskEvaluation.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentRiskLevel.d.ts +0 -8
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentRiskLevel.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentStatus.d.ts +0 -10
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentStatus.d.ts.map +0 -1
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentType.d.ts +0 -11
- package/dist/@types/entities/receipts/payments/SBReceiptPaymentType.d.ts.map +0 -1
- package/dist/@types/entities/receipts/transactions/SBPaymentDetail.d.ts +0 -11
- package/dist/@types/entities/receipts/transactions/SBPaymentDetail.d.ts.map +0 -1
- package/dist/@types/entities/refund/SBReceiptItemRefund.d.ts +0 -17
- package/dist/@types/entities/refund/SBReceiptItemRefund.d.ts.map +0 -1
- package/dist/@types/entities/refund/SBRefund.d.ts +0 -18
- package/dist/@types/entities/refund/SBRefund.d.ts.map +0 -1
- package/dist/@types/entities/refund/SBRefundAjustment.d.ts +0 -15
- package/dist/@types/entities/refund/SBRefundAjustment.d.ts.map +0 -1
- package/dist/@types/entities/reports/SBDateRange.d.ts +0 -7
- package/dist/@types/entities/reports/SBDateRange.d.ts.map +0 -1
- package/dist/@types/entities/reports/SBPeriodReport.d.ts +0 -9
- package/dist/@types/entities/reports/SBPeriodReport.d.ts.map +0 -1
- package/dist/@types/entities/reports/SBPeriodReportData.d.ts +0 -9
- package/dist/@types/entities/reports/SBPeriodReportData.d.ts.map +0 -1
- package/dist/@types/entities/settlements/SBSettlement.d.ts +0 -18
- package/dist/@types/entities/settlements/SBSettlement.d.ts.map +0 -1
- package/dist/@types/entities/settlements/SBSettlementPayment.d.ts +0 -15
- package/dist/@types/entities/settlements/SBSettlementPayment.d.ts.map +0 -1
- package/dist/@types/entities/subscriptions/SBSubscription.d.ts +0 -43
- package/dist/@types/entities/subscriptions/SBSubscription.d.ts.map +0 -1
- package/dist/@types/entities/suppliers/SBSupplier.d.ts +0 -21
- package/dist/@types/entities/suppliers/SBSupplier.d.ts.map +0 -1
- package/dist/@types/entities/suppliers/SBSupplierStatus.d.ts +0 -20
- package/dist/@types/entities/suppliers/SBSupplierStatus.d.ts.map +0 -1
- package/dist/@types/entities/transactions/SBTransaction.d.ts +0 -15
- package/dist/@types/entities/transactions/SBTransaction.d.ts.map +0 -1
- package/dist/@types/entities/transactions/SBTransactionType.d.ts +0 -9
- package/dist/@types/entities/transactions/SBTransactionType.d.ts.map +0 -1
- package/dist/@types/entities/users/SBUser.d.ts +0 -10
- package/dist/@types/entities/users/SBUser.d.ts.map +0 -1
- package/dist/@types/entities/vendors/SBVendor.d.ts +0 -13
- package/dist/@types/entities/vendors/SBVendor.d.ts.map +0 -1
- package/dist/@types/entities/wallet/SBWallet.d.ts +0 -27
- package/dist/@types/entities/wallet/SBWallet.d.ts.map +0 -1
- package/dist/@types/index.d.ts +0 -337
- package/dist/@types/index.d.ts.map +0 -1
- package/dist/@types/interfaces/IBatchable.d.ts +0 -40
- package/dist/@types/interfaces/IBatchable.d.ts.map +0 -1
- package/dist/@types/interfaces/ICreatable.d.ts +0 -37
- package/dist/@types/interfaces/ICreatable.d.ts.map +0 -1
- package/dist/@types/interfaces/IDeletable.d.ts +0 -35
- package/dist/@types/interfaces/IDeletable.d.ts.map +0 -1
- package/dist/@types/interfaces/IListable.d.ts +0 -38
- package/dist/@types/interfaces/IListable.d.ts.map +0 -1
- package/dist/@types/interfaces/IRetrievable.d.ts +0 -35
- package/dist/@types/interfaces/IRetrievable.d.ts.map +0 -1
- package/dist/@types/interfaces/IRetrievableById.d.ts +0 -50
- package/dist/@types/interfaces/IRetrievableById.d.ts.map +0 -1
- package/dist/@types/interfaces/ITimestamp.d.ts +0 -13
- package/dist/@types/interfaces/ITimestamp.d.ts.map +0 -1
- package/dist/@types/interfaces/IUpdatable.d.ts +0 -39
- package/dist/@types/interfaces/IUpdatable.d.ts.map +0 -1
- package/dist/@types/services/BatchUpsertRequest.d.ts +0 -17
- package/dist/@types/services/BatchUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/ListRequest.d.ts +0 -21
- package/dist/@types/services/ListRequest.d.ts.map +0 -1
- package/dist/@types/services/SBService.d.ts +0 -88
- package/dist/@types/services/SBService.d.ts.map +0 -1
- package/dist/@types/services/UpsertRequest.d.ts +0 -20
- package/dist/@types/services/UpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/addresses/AddressRequest.d.ts +0 -13
- package/dist/@types/services/addresses/AddressRequest.d.ts.map +0 -1
- package/dist/@types/services/addresses/BillingAddressRequest.d.ts +0 -12
- package/dist/@types/services/addresses/BillingAddressRequest.d.ts.map +0 -1
- package/dist/@types/services/api-logs/LogListRequest.d.ts +0 -7
- package/dist/@types/services/api-logs/LogListRequest.d.ts.map +0 -1
- package/dist/@types/services/api-logs/LogService.d.ts +0 -18
- package/dist/@types/services/api-logs/LogService.d.ts.map +0 -1
- package/dist/@types/services/attachments/AttachmentCreateRequest.d.ts +0 -20
- package/dist/@types/services/attachments/AttachmentCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/attachments/AttachmentListRequest.d.ts +0 -19
- package/dist/@types/services/attachments/AttachmentListRequest.d.ts.map +0 -1
- package/dist/@types/services/attachments/AttachmentService.d.ts +0 -85
- package/dist/@types/services/attachments/AttachmentService.d.ts.map +0 -1
- package/dist/@types/services/attachments/AttachmentUpdateRequest.d.ts +0 -23
- package/dist/@types/services/attachments/AttachmentUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/attachments/AttachmentUpsertRequest.d.ts +0 -23
- package/dist/@types/services/attachments/AttachmentUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/banks/BankCreateRequest.d.ts +0 -32
- package/dist/@types/services/banks/BankCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/banks/BankLinkResponse.d.ts +0 -7
- package/dist/@types/services/banks/BankLinkResponse.d.ts.map +0 -1
- package/dist/@types/services/banks/BankLinkTokenResponse.d.ts +0 -7
- package/dist/@types/services/banks/BankLinkTokenResponse.d.ts.map +0 -1
- package/dist/@types/services/banks/BankListRequest.d.ts +0 -13
- package/dist/@types/services/banks/BankListRequest.d.ts.map +0 -1
- package/dist/@types/services/banks/BankService.d.ts +0 -169
- package/dist/@types/services/banks/BankService.d.ts.map +0 -1
- package/dist/@types/services/banks/BankUpdateRequest.d.ts +0 -9
- package/dist/@types/services/banks/BankUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/banks/accounts/BankAccountCreateRequest.d.ts +0 -11
- package/dist/@types/services/banks/accounts/BankAccountCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/banks/accounts/BankAccountListRequest.d.ts +0 -5
- package/dist/@types/services/banks/accounts/BankAccountListRequest.d.ts.map +0 -1
- package/dist/@types/services/banks/accounts/BankAccountService.d.ts +0 -22
- package/dist/@types/services/banks/accounts/BankAccountService.d.ts.map +0 -1
- package/dist/@types/services/banks/accounts/BankAccountUpdateRequest.d.ts +0 -10
- package/dist/@types/services/banks/accounts/BankAccountUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/banks/institutions/BankInstitutionListRequest.d.ts +0 -7
- package/dist/@types/services/banks/institutions/BankInstitutionListRequest.d.ts.map +0 -1
- package/dist/@types/services/banks/institutions/BankInstitutionService.d.ts +0 -18
- package/dist/@types/services/banks/institutions/BankInstitutionService.d.ts.map +0 -1
- package/dist/@types/services/banks/transactions/BankTransactionListRequest.d.ts +0 -8
- package/dist/@types/services/banks/transactions/BankTransactionListRequest.d.ts.map +0 -1
- package/dist/@types/services/banks/transactions/BankTransactionService.d.ts +0 -24
- package/dist/@types/services/banks/transactions/BankTransactionService.d.ts.map +0 -1
- package/dist/@types/services/billing/subscriptions/SubscriptionCreateRequest.d.ts +0 -28
- package/dist/@types/services/billing/subscriptions/SubscriptionCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/billing/subscriptions/SubscriptionListRequest.d.ts +0 -31
- package/dist/@types/services/billing/subscriptions/SubscriptionListRequest.d.ts.map +0 -1
- package/dist/@types/services/billing/subscriptions/SubscriptionService.d.ts +0 -120
- package/dist/@types/services/billing/subscriptions/SubscriptionService.d.ts.map +0 -1
- package/dist/@types/services/billing/subscriptions/SubscriptionUpdateRequest.d.ts +0 -29
- package/dist/@types/services/billing/subscriptions/SubscriptionUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/billing/subscriptions/SubscriptionUpsertRequest.d.ts +0 -33
- package/dist/@types/services/billing/subscriptions/SubscriptionUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/BusinessCreateRequest.d.ts +0 -37
- package/dist/@types/services/businesses/BusinessCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/BusinessListRequest.d.ts +0 -7
- package/dist/@types/services/businesses/BusinessListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/BusinessService.d.ts +0 -64
- package/dist/@types/services/businesses/BusinessService.d.ts.map +0 -1
- package/dist/@types/services/businesses/BusinessUpdateRequest.d.ts +0 -36
- package/dist/@types/services/businesses/BusinessUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/customers/CustomerBatchUpsertRequest.d.ts +0 -8
- package/dist/@types/services/businesses/customers/CustomerBatchUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/customers/CustomerCreateRequest.d.ts +0 -19
- package/dist/@types/services/businesses/customers/CustomerCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/customers/CustomerListRequest.d.ts +0 -8
- package/dist/@types/services/businesses/customers/CustomerListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/customers/CustomerService.d.ts +0 -94
- package/dist/@types/services/businesses/customers/CustomerService.d.ts.map +0 -1
- package/dist/@types/services/businesses/customers/CustomerUpdateRequest.d.ts +0 -5
- package/dist/@types/services/businesses/customers/CustomerUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/customers/CustomerUpsertRequest.d.ts +0 -8
- package/dist/@types/services/businesses/customers/CustomerUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/customers/balance-transactions/CustomerBalanceTransactionCreateRequest.d.ts +0 -10
- package/dist/@types/services/businesses/customers/balance-transactions/CustomerBalanceTransactionCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/customers/balance-transactions/CustomerBalanceTransactionListRequest.d.ts +0 -7
- package/dist/@types/services/businesses/customers/balance-transactions/CustomerBalanceTransactionListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/customers/balance-transactions/CustomerBalanceTransactionService.d.ts +0 -75
- package/dist/@types/services/businesses/customers/balance-transactions/CustomerBalanceTransactionService.d.ts.map +0 -1
- package/dist/@types/services/businesses/customers/balance-transactions/CustomerBalanceTransactionUpdateRequest.d.ts +0 -6
- package/dist/@types/services/businesses/customers/balance-transactions/CustomerBalanceTransactionUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/customers/payment-methods/CustomerPaymentMethodCreateRequest.d.ts +0 -5
- package/dist/@types/services/businesses/customers/payment-methods/CustomerPaymentMethodCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/customers/payment-methods/CustomerPaymentMethodListRequest.d.ts +0 -7
- package/dist/@types/services/businesses/customers/payment-methods/CustomerPaymentMethodListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/customers/payment-methods/CustomerPaymentMethodService.d.ts +0 -75
- package/dist/@types/services/businesses/customers/payment-methods/CustomerPaymentMethodService.d.ts.map +0 -1
- package/dist/@types/services/businesses/customers/payment-methods/CustomerPaymentMethodUpdateRequest.d.ts +0 -5
- package/dist/@types/services/businesses/customers/payment-methods/CustomerPaymentMethodUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/departments/DepartmentBatchUpsertRequest.d.ts +0 -11
- package/dist/@types/services/businesses/departments/DepartmentBatchUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/departments/DepartmentCreateRequest.d.ts +0 -36
- package/dist/@types/services/businesses/departments/DepartmentCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/departments/DepartmentService.d.ts +0 -149
- package/dist/@types/services/businesses/departments/DepartmentService.d.ts.map +0 -1
- package/dist/@types/services/businesses/departments/DepartmentUpdateRequest.d.ts +0 -40
- package/dist/@types/services/businesses/departments/DepartmentUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/departments/DepartmentUpsertRequest.d.ts +0 -8
- package/dist/@types/services/businesses/departments/DepartmentUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/departments/DepartmentsListRequest.d.ts +0 -26
- package/dist/@types/services/businesses/departments/DepartmentsListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/departments/Employees/DepartmentEmployeeCreateRequest.d.ts +0 -9
- package/dist/@types/services/businesses/departments/Employees/DepartmentEmployeeCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/departments/Employees/DepartmentEmployeeListRequest.d.ts +0 -11
- package/dist/@types/services/businesses/departments/Employees/DepartmentEmployeeListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/departments/Employees/DepartmentEmployeeService.d.ts +0 -75
- package/dist/@types/services/businesses/departments/Employees/DepartmentEmployeeService.d.ts.map +0 -1
- package/dist/@types/services/businesses/departments/Employees/DepartmentEmployeeUpdateRequest.d.ts +0 -10
- package/dist/@types/services/businesses/departments/Employees/DepartmentEmployeeUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/domains/CreateDomainRequest.d.ts +0 -6
- package/dist/@types/services/businesses/domains/CreateDomainRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/domains/DomainService.d.ts +0 -21
- package/dist/@types/services/businesses/domains/DomainService.d.ts.map +0 -1
- package/dist/@types/services/businesses/domains/GetDomainsRequest.d.ts +0 -7
- package/dist/@types/services/businesses/domains/GetDomainsRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/fees/FeeCreateRequest.d.ts +0 -12
- package/dist/@types/services/businesses/fees/FeeCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/fees/FeeListRequest.d.ts +0 -7
- package/dist/@types/services/businesses/fees/FeeListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/fees/FeeService.d.ts +0 -93
- package/dist/@types/services/businesses/fees/FeeService.d.ts.map +0 -1
- package/dist/@types/services/businesses/fees/FeeUpdateRequest.d.ts +0 -9
- package/dist/@types/services/businesses/fees/FeeUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/fees/FeeUpsertRequest.d.ts +0 -8
- package/dist/@types/services/businesses/fees/FeeUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/locations/LocationBatchUpsertRequest.d.ts +0 -8
- package/dist/@types/services/businesses/locations/LocationBatchUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/locations/LocationCreateRequest.d.ts +0 -13
- package/dist/@types/services/businesses/locations/LocationCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/locations/LocationService.d.ts +0 -126
- package/dist/@types/services/businesses/locations/LocationService.d.ts.map +0 -1
- package/dist/@types/services/businesses/locations/LocationUpdateRequest.d.ts +0 -11
- package/dist/@types/services/businesses/locations/LocationUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/locations/LocationUpsertRequest.d.ts +0 -8
- package/dist/@types/services/businesses/locations/LocationUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/locations/LocationsListRequest.d.ts +0 -7
- package/dist/@types/services/businesses/locations/LocationsListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/prices/PriceCreateRequest.d.ts +0 -5
- package/dist/@types/services/businesses/prices/PriceCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/prices/PriceService.d.ts +0 -23
- package/dist/@types/services/businesses/prices/PriceService.d.ts.map +0 -1
- package/dist/@types/services/businesses/prices/PriceUpdateRequest.d.ts +0 -5
- package/dist/@types/services/businesses/prices/PriceUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/prices/PricesListRequest.d.ts +0 -7
- package/dist/@types/services/businesses/prices/PricesListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/ListImageRequest.d.ts +0 -5
- package/dist/@types/services/businesses/products/ListImageRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/ProductBatchUpsertRequest.d.ts +0 -8
- package/dist/@types/services/businesses/products/ProductBatchUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/ProductCreateRequest.d.ts +0 -19
- package/dist/@types/services/businesses/products/ProductCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/ProductListRequest.d.ts +0 -7
- package/dist/@types/services/businesses/products/ProductListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/ProductService.d.ts +0 -118
- package/dist/@types/services/businesses/products/ProductService.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/ProductUpdateRequest.d.ts +0 -17
- package/dist/@types/services/businesses/products/ProductUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/ProductUpsertRequest.d.ts +0 -8
- package/dist/@types/services/businesses/products/ProductUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/images/ProductImageCreateRequest.d.ts +0 -8
- package/dist/@types/services/businesses/products/images/ProductImageCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/images/ProductImageListRequest.d.ts +0 -7
- package/dist/@types/services/businesses/products/images/ProductImageListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/images/ProductImageService.d.ts +0 -75
- package/dist/@types/services/businesses/products/images/ProductImageService.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/images/ProductImageUpdateRequest.d.ts +0 -5
- package/dist/@types/services/businesses/products/images/ProductImageUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/modifiers/ProductModifierCreateRequest.d.ts +0 -28
- package/dist/@types/services/businesses/products/modifiers/ProductModifierCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/modifiers/ProductModifierListRequest.d.ts +0 -26
- package/dist/@types/services/businesses/products/modifiers/ProductModifierListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/modifiers/ProductModifierService.d.ts +0 -88
- package/dist/@types/services/businesses/products/modifiers/ProductModifierService.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/modifiers/ProductModifierUpdateRequest.d.ts +0 -28
- package/dist/@types/services/businesses/products/modifiers/ProductModifierUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/modifiers/ProductModifierUpsertRequest.d.ts +0 -30
- package/dist/@types/services/businesses/products/modifiers/ProductModifierUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/options/ProductOptionCreateRequest.d.ts +0 -28
- package/dist/@types/services/businesses/products/options/ProductOptionCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/options/ProductOptionListRequest.d.ts +0 -26
- package/dist/@types/services/businesses/products/options/ProductOptionListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/options/ProductOptionService.d.ts +0 -88
- package/dist/@types/services/businesses/products/options/ProductOptionService.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/options/ProductOptionUpdateRequest.d.ts +0 -28
- package/dist/@types/services/businesses/products/options/ProductOptionUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/options/ProductOptionUpsertRequest.d.ts +0 -30
- package/dist/@types/services/businesses/products/options/ProductOptionUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/variants/ProductVariantCreateRequest.d.ts +0 -14
- package/dist/@types/services/businesses/products/variants/ProductVariantCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/variants/ProductVariantListRequest.d.ts +0 -7
- package/dist/@types/services/businesses/products/variants/ProductVariantListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/variants/ProductVariantService.d.ts +0 -75
- package/dist/@types/services/businesses/products/variants/ProductVariantService.d.ts.map +0 -1
- package/dist/@types/services/businesses/products/variants/ProductVariantUpdateRequest.d.ts +0 -5
- package/dist/@types/services/businesses/products/variants/ProductVariantUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/promo-codes/PromoCodeBatchUpsertRequest.d.ts +0 -8
- package/dist/@types/services/businesses/promo-codes/PromoCodeBatchUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/promo-codes/PromoCodeCreateRequest.d.ts +0 -11
- package/dist/@types/services/businesses/promo-codes/PromoCodeCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/promo-codes/PromoCodeListRequest.d.ts +0 -7
- package/dist/@types/services/businesses/promo-codes/PromoCodeListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/promo-codes/PromoCodeService.d.ts +0 -94
- package/dist/@types/services/businesses/promo-codes/PromoCodeService.d.ts.map +0 -1
- package/dist/@types/services/businesses/promo-codes/PromoCodeUpdateRequest.d.ts +0 -6
- package/dist/@types/services/businesses/promo-codes/PromoCodeUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/promo-codes/PromoCodeUpsertRequest.d.ts +0 -8
- package/dist/@types/services/businesses/promo-codes/PromoCodeUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/reviews/BusinessReviewCreateRequest.d.ts +0 -8
- package/dist/@types/services/businesses/reviews/BusinessReviewCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/reviews/BusinessReviewListRequest.d.ts +0 -10
- package/dist/@types/services/businesses/reviews/BusinessReviewListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/reviews/BusinessReviewService.d.ts +0 -30
- package/dist/@types/services/businesses/reviews/BusinessReviewService.d.ts.map +0 -1
- package/dist/@types/services/businesses/reviews/BusinessReviewUpdateRequest.d.ts +0 -7
- package/dist/@types/services/businesses/reviews/BusinessReviewUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/taxes/TaxBatchUpsertRequest.d.ts +0 -8
- package/dist/@types/services/businesses/taxes/TaxBatchUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/taxes/TaxCreateRequest.d.ts +0 -17
- package/dist/@types/services/businesses/taxes/TaxCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/taxes/TaxListRequest.d.ts +0 -9
- package/dist/@types/services/businesses/taxes/TaxListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/taxes/TaxService.d.ts +0 -89
- package/dist/@types/services/businesses/taxes/TaxService.d.ts.map +0 -1
- package/dist/@types/services/businesses/taxes/TaxUpdateRequest.d.ts +0 -12
- package/dist/@types/services/businesses/taxes/TaxUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/taxes/TaxUpsertRequest.d.ts +0 -8
- package/dist/@types/services/businesses/taxes/TaxUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationCreateRequest.d.ts +0 -13
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationListRequest.d.ts +0 -7
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationRequest.d.ts +0 -9
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationResponseRequest.d.ts +0 -8
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationResponseRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationService.d.ts +0 -25
- package/dist/@types/services/businesses/team/invitations/TeamMemberInvitationService.d.ts.map +0 -1
- package/dist/@types/services/businesses/team/members/TeamMemberListRequest.d.ts +0 -10
- package/dist/@types/services/businesses/team/members/TeamMemberListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/team/members/TeamMemberService.d.ts +0 -20
- package/dist/@types/services/businesses/team/members/TeamMemberService.d.ts.map +0 -1
- package/dist/@types/services/businesses/vendors/VendorCreateRequest.d.ts +0 -11
- package/dist/@types/services/businesses/vendors/VendorCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/vendors/VendorListRequest.d.ts +0 -7
- package/dist/@types/services/businesses/vendors/VendorListRequest.d.ts.map +0 -1
- package/dist/@types/services/businesses/vendors/VendorService.d.ts +0 -80
- package/dist/@types/services/businesses/vendors/VendorService.d.ts.map +0 -1
- package/dist/@types/services/businesses/vendors/VendorUpdateRequest.d.ts +0 -5
- package/dist/@types/services/businesses/vendors/VendorUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/cards/AttachCardRequest.d.ts +0 -12
- package/dist/@types/services/cards/AttachCardRequest.d.ts.map +0 -1
- package/dist/@types/services/cards/CardService.d.ts +0 -28
- package/dist/@types/services/cards/CardService.d.ts.map +0 -1
- package/dist/@types/services/cards/CreateCardRequest.d.ts +0 -15
- package/dist/@types/services/cards/CreateCardRequest.d.ts.map +0 -1
- package/dist/@types/services/cards/GetCardRequest.d.ts +0 -5
- package/dist/@types/services/cards/GetCardRequest.d.ts.map +0 -1
- package/dist/@types/services/cards/ListCardRequest.d.ts +0 -5
- package/dist/@types/services/cards/ListCardRequest.d.ts.map +0 -1
- package/dist/@types/services/documents/DocumentListRequest.d.ts +0 -7
- package/dist/@types/services/documents/DocumentListRequest.d.ts.map +0 -1
- package/dist/@types/services/documents/DocumentRenameRequest.d.ts +0 -6
- package/dist/@types/services/documents/DocumentRenameRequest.d.ts.map +0 -1
- package/dist/@types/services/documents/DocumentService.d.ts +0 -24
- package/dist/@types/services/documents/DocumentService.d.ts.map +0 -1
- package/dist/@types/services/documents/DocumentUploadRequest.d.ts +0 -10
- package/dist/@types/services/documents/DocumentUploadRequest.d.ts.map +0 -1
- package/dist/@types/services/explore/ExploreService.d.ts +0 -13
- package/dist/@types/services/explore/ExploreService.d.ts.map +0 -1
- package/dist/@types/services/friends/FriendListRequest.d.ts +0 -7
- package/dist/@types/services/friends/FriendListRequest.d.ts.map +0 -1
- package/dist/@types/services/friends/FriendRequestListRequest.d.ts +0 -7
- package/dist/@types/services/friends/FriendRequestListRequest.d.ts.map +0 -1
- package/dist/@types/services/friends/FriendService.d.ts +0 -22
- package/dist/@types/services/friends/FriendService.d.ts.map +0 -1
- package/dist/@types/services/images/ImageBase64CreateRequest.d.ts +0 -8
- package/dist/@types/services/images/ImageBase64CreateRequest.d.ts.map +0 -1
- package/dist/@types/services/images/ImageBaseCreateRequest.d.ts +0 -6
- package/dist/@types/services/images/ImageBaseCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/images/ImageCreateRequest.d.ts +0 -7
- package/dist/@types/services/images/ImageCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/images/ImageUrlCreateRequest.d.ts +0 -8
- package/dist/@types/services/images/ImageUrlCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/invoices/InvoiceBatchUpsertRequest.d.ts +0 -8
- package/dist/@types/services/invoices/InvoiceBatchUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/invoices/InvoiceCreateRequest.d.ts +0 -118
- package/dist/@types/services/invoices/InvoiceCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/invoices/InvoiceListRequest.d.ts +0 -11
- package/dist/@types/services/invoices/InvoiceListRequest.d.ts.map +0 -1
- package/dist/@types/services/invoices/InvoiceService.d.ts +0 -216
- package/dist/@types/services/invoices/InvoiceService.d.ts.map +0 -1
- package/dist/@types/services/invoices/InvoiceUpdateRequest.d.ts +0 -73
- package/dist/@types/services/invoices/InvoiceUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/invoices/InvoiceUpsertRequest.d.ts +0 -5
- package/dist/@types/services/invoices/InvoiceUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/loyalty/LoyaltyProgramService.d.ts +0 -172
- package/dist/@types/services/loyalty/LoyaltyProgramService.d.ts.map +0 -1
- package/dist/@types/services/notifications/NotificationCreateRequest.d.ts +0 -20
- package/dist/@types/services/notifications/NotificationCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/notifications/NotificationService.d.ts +0 -66
- package/dist/@types/services/notifications/NotificationService.d.ts.map +0 -1
- package/dist/@types/services/oauth/AccessTokenResponse.d.ts +0 -10
- package/dist/@types/services/oauth/AccessTokenResponse.d.ts.map +0 -1
- package/dist/@types/services/oauth/AuthorizationCodeResponse.d.ts +0 -11
- package/dist/@types/services/oauth/AuthorizationCodeResponse.d.ts.map +0 -1
- package/dist/@types/services/oauth/AuthorizeRequest.d.ts +0 -18
- package/dist/@types/services/oauth/AuthorizeRequest.d.ts.map +0 -1
- package/dist/@types/services/oauth/OAuthService.d.ts +0 -17
- package/dist/@types/services/oauth/OAuthService.d.ts.map +0 -1
- package/dist/@types/services/oauth/RefreshTokenRequest.d.ts +0 -9
- package/dist/@types/services/oauth/RefreshTokenRequest.d.ts.map +0 -1
- package/dist/@types/services/oauth/TokenExchangeRequest.d.ts +0 -15
- package/dist/@types/services/oauth/TokenExchangeRequest.d.ts.map +0 -1
- package/dist/@types/services/payment-methods/PaymentMethodBankCreateRequest.d.ts +0 -14
- package/dist/@types/services/payment-methods/PaymentMethodBankCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/payment-methods/PaymentMethodCardCreateRequest.d.ts +0 -19
- package/dist/@types/services/payment-methods/PaymentMethodCardCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/payment-methods/PaymentMethodCreateRequest.d.ts +0 -16
- package/dist/@types/services/payment-methods/PaymentMethodCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/payment-methods/PaymentMethodListRequest.d.ts +0 -5
- package/dist/@types/services/payment-methods/PaymentMethodListRequest.d.ts.map +0 -1
- package/dist/@types/services/payment-methods/PaymentMethodService.d.ts +0 -28
- package/dist/@types/services/payment-methods/PaymentMethodService.d.ts.map +0 -1
- package/dist/@types/services/payment-methods/PaymentMethodVerifyRequest.d.ts +0 -6
- package/dist/@types/services/payment-methods/PaymentMethodVerifyRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/BankTransactionAssociateRequest.d.ts +0 -6
- package/dist/@types/services/receipts/BankTransactionAssociateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/ListReceiptRequest.d.ts +0 -5
- package/dist/@types/services/receipts/ListReceiptRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/ReceipTransactionPaymentDetailCreateRequest.d.ts +0 -24
- package/dist/@types/services/receipts/ReceipTransactionPaymentDetailCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/ReceiptBatchUpsertRequest.d.ts +0 -8
- package/dist/@types/services/receipts/ReceiptBatchUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/ReceiptBulkJobCreateRequest.d.ts +0 -6
- package/dist/@types/services/receipts/ReceiptBulkJobCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/ReceiptCreateRequest.d.ts +0 -118
- package/dist/@types/services/receipts/ReceiptCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/ReceiptListRequest.d.ts +0 -12
- package/dist/@types/services/receipts/ReceiptListRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/ReceiptService.d.ts +0 -250
- package/dist/@types/services/receipts/ReceiptService.d.ts.map +0 -1
- package/dist/@types/services/receipts/ReceiptUpdateRequest.d.ts +0 -73
- package/dist/@types/services/receipts/ReceiptUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/ReceiptUpsertRequest.d.ts +0 -8
- package/dist/@types/services/receipts/ReceiptUpsertRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/discounts/ReceiptDiscountCreateRequest.d.ts +0 -6
- package/dist/@types/services/receipts/discounts/ReceiptDiscountCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/discounts/ReceiptDiscountUpdateRequest.d.ts +0 -6
- package/dist/@types/services/receipts/discounts/ReceiptDiscountUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/fees/ReceiptFeeCreateRequest.d.ts +0 -11
- package/dist/@types/services/receipts/fees/ReceiptFeeCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/fees/ReceiptFeeUpdateRequest.d.ts +0 -5
- package/dist/@types/services/receipts/fees/ReceiptFeeUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/line-items/ReceiptLineItemCreateRequest.d.ts +0 -18
- package/dist/@types/services/receipts/line-items/ReceiptLineItemCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/line-items/ReceiptLineItemUpdateRequest.d.ts +0 -13
- package/dist/@types/services/receipts/line-items/ReceiptLineItemUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/metadata/BrowserMetadataCreateRequest.d.ts +0 -29
- package/dist/@types/services/receipts/metadata/BrowserMetadataCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/metadata/ReceiptMetadataCreateRequest.d.ts +0 -36
- package/dist/@types/services/receipts/metadata/ReceiptMetadataCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/payments/ReceiptPaymentUpdateRequest.d.ts +0 -31
- package/dist/@types/services/receipts/payments/ReceiptPaymentUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/payments/ReceiptTransactionCreateRequest.d.ts +0 -48
- package/dist/@types/services/receipts/payments/ReceiptTransactionCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/payments/ReceiptTransactionUpdateRequest.d.ts +0 -20
- package/dist/@types/services/receipts/payments/ReceiptTransactionUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/reviews/ReceiptReviewCreateRequest.d.ts +0 -8
- package/dist/@types/services/receipts/reviews/ReceiptReviewCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/reviews/ReceiptReviewUpdateRequest.d.ts +0 -8
- package/dist/@types/services/receipts/reviews/ReceiptReviewUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/taxes/ReceiptTaxCreateRequest.d.ts +0 -7
- package/dist/@types/services/receipts/taxes/ReceiptTaxCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/receipts/taxes/ReceiptTaxUpdateRequest.d.ts +0 -9
- package/dist/@types/services/receipts/taxes/ReceiptTaxUpdateRequest.d.ts.map +0 -1
- package/dist/@types/services/settlements/SettlementListRequest.d.ts +0 -9
- package/dist/@types/services/settlements/SettlementListRequest.d.ts.map +0 -1
- package/dist/@types/services/settlements/SettlementPayRequest.d.ts +0 -6
- package/dist/@types/services/settlements/SettlementPayRequest.d.ts.map +0 -1
- package/dist/@types/services/settlements/SettlementService.d.ts +0 -25
- package/dist/@types/services/settlements/SettlementService.d.ts.map +0 -1
- package/dist/@types/services/suppliers/SupplierConnectResponse.d.ts +0 -6
- package/dist/@types/services/suppliers/SupplierConnectResponse.d.ts.map +0 -1
- package/dist/@types/services/suppliers/SupplierCreateRequest.d.ts +0 -16
- package/dist/@types/services/suppliers/SupplierCreateRequest.d.ts.map +0 -1
- package/dist/@types/services/suppliers/SupplierService.d.ts +0 -79
- package/dist/@types/services/suppliers/SupplierService.d.ts.map +0 -1
- package/dist/@types/services/transactions/ListTransactionRequest.d.ts +0 -10
- package/dist/@types/services/transactions/ListTransactionRequest.d.ts.map +0 -1
- package/dist/@types/services/transactions/TransactionService.d.ts +0 -20
- package/dist/@types/services/transactions/TransactionService.d.ts.map +0 -1
- package/dist/@types/services/user/UserService.d.ts +0 -17
- package/dist/@types/services/user/UserService.d.ts.map +0 -1
- package/dist/@types/services/users/SearchUsersRequest.d.ts +0 -8
- package/dist/@types/services/users/SearchUsersRequest.d.ts.map +0 -1
- package/dist/@types/services/users/UserService.d.ts +0 -21
- package/dist/@types/services/users/UserService.d.ts.map +0 -1
- package/dist/@types/services/users/UserUpdateRequest.d.ts +0 -12
- package/dist/@types/services/users/UserUpdateRequest.d.ts.map +0 -1
- package/dist/@types/utilities/FileFormData.d.ts +0 -8
- package/dist/@types/utilities/FileFormData.d.ts.map +0 -1
- package/dist/@types/utilities/SBAbortSignal.d.ts +0 -6
- package/dist/@types/utilities/SBAbortSignal.d.ts.map +0 -1
- package/dist/cjs/_virtual/__polyfill-node.util.cjs +0 -11
- package/dist/cjs/_virtual/__polyfill-node.util.cjs.map +0 -1
- package/dist/cjs/_virtual/_commonjsHelpers.cjs +0 -37
- package/dist/cjs/_virtual/_commonjsHelpers.cjs.map +0 -1
- package/dist/cjs/_virtual/_polyfill-node._inherits.cjs +0 -28
- package/dist/cjs/_virtual/_polyfill-node._inherits.cjs.map +0 -1
- package/dist/cjs/_virtual/_polyfill-node.buffer.cjs +0 -1985
- package/dist/cjs/_virtual/_polyfill-node.buffer.cjs.map +0 -1
- package/dist/cjs/_virtual/_polyfill-node.global.cjs +0 -10
- package/dist/cjs/_virtual/_polyfill-node.global.cjs.map +0 -1
- package/dist/cjs/_virtual/_polyfill-node.process.cjs +0 -253
- package/dist/cjs/_virtual/_polyfill-node.process.cjs.map +0 -1
- package/dist/cjs/_virtual/_polyfill-node.util.cjs +0 -710
- package/dist/cjs/_virtual/_polyfill-node.util.cjs.map +0 -1
- package/dist/cjs/_virtual/index.cjs +0 -6
- package/dist/cjs/_virtual/index.cjs.map +0 -1
- package/dist/cjs/client/SBClient.cjs +0 -238
- package/dist/cjs/client/SBClient.cjs.map +0 -1
- package/dist/cjs/client/SBCredentials.cjs +0 -60
- package/dist/cjs/client/SBCredentials.cjs.map +0 -1
- package/dist/cjs/client/SBEnvironment.cjs +0 -15
- package/dist/cjs/client/SBEnvironment.cjs.map +0 -1
- package/dist/cjs/client/SBException.cjs +0 -38
- package/dist/cjs/client/SBException.cjs.map +0 -1
- package/dist/cjs/client/SBInstance.cjs +0 -59
- package/dist/cjs/client/SBInstance.cjs.map +0 -1
- package/dist/cjs/client/SBLogger.cjs +0 -16
- package/dist/cjs/client/SBLogger.cjs.map +0 -1
- package/dist/cjs/client/SBPermission.cjs +0 -50
- package/dist/cjs/client/SBPermission.cjs.map +0 -1
- package/dist/cjs/client/SBServiceOptions.cjs +0 -22
- package/dist/cjs/client/SBServiceOptions.cjs.map +0 -1
- package/dist/cjs/client/constants.cjs +0 -8
- package/dist/cjs/client/constants.cjs.map +0 -1
- package/dist/cjs/constants/login/LoginError.cjs +0 -9
- package/dist/cjs/constants/login/LoginError.cjs.map +0 -1
- package/dist/cjs/entities/account/SBGenderEnum.cjs +0 -9
- package/dist/cjs/entities/account/SBGenderEnum.cjs.map +0 -1
- package/dist/cjs/entities/banks/SBBankState.cjs +0 -10
- package/dist/cjs/entities/banks/SBBankState.cjs.map +0 -1
- package/dist/cjs/entities/barcode/SBBarcodeType.cjs +0 -28
- package/dist/cjs/entities/barcode/SBBarcodeType.cjs.map +0 -1
- package/dist/cjs/entities/businesses/fees/SBFeeType.cjs +0 -8
- package/dist/cjs/entities/businesses/fees/SBFeeType.cjs.map +0 -1
- package/dist/cjs/entities/businesses/team/invitations/SBTeamMemberInvitationStatus.cjs +0 -10
- package/dist/cjs/entities/businesses/team/invitations/SBTeamMemberInvitationStatus.cjs.map +0 -1
- package/dist/cjs/entities/businesses/team/members/SBTeamMemberRole.cjs +0 -11
- package/dist/cjs/entities/businesses/team/members/SBTeamMemberRole.cjs.map +0 -1
- package/dist/cjs/entities/businesses/team/members/SBTeamMemberStatus.cjs +0 -11
- package/dist/cjs/entities/businesses/team/members/SBTeamMemberStatus.cjs.map +0 -1
- package/dist/cjs/entities/cards/SBCardType.cjs +0 -10
- package/dist/cjs/entities/cards/SBCardType.cjs.map +0 -1
- package/dist/cjs/entities/payment-methods/SBPaymentMethod.cjs +0 -8
- package/dist/cjs/entities/payment-methods/SBPaymentMethod.cjs.map +0 -1
- package/dist/cjs/entities/payment-methods/SBPaymentMethodFingerprintProvider.cjs +0 -8
- package/dist/cjs/entities/payment-methods/SBPaymentMethodFingerprintProvider.cjs.map +0 -1
- package/dist/cjs/entities/receipts/SBReceiptSource.cjs +0 -11
- package/dist/cjs/entities/receipts/SBReceiptSource.cjs.map +0 -1
- package/dist/cjs/entities/receipts/SBReceiptType.cjs +0 -10
- package/dist/cjs/entities/receipts/SBReceiptType.cjs.map +0 -1
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentCardAvsResult.cjs +0 -16
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentCardAvsResult.cjs.map +0 -1
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentCardCvvResult.cjs +0 -9
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentCardCvvResult.cjs.map +0 -1
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentCardEntryMethod.cjs +0 -11
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentCardEntryMethod.cjs.map +0 -1
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentExternalType.cjs +0 -18
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentExternalType.cjs.map +0 -1
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentRiskLevel.cjs +0 -9
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentRiskLevel.cjs.map +0 -1
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentStatus.cjs +0 -11
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentStatus.cjs.map +0 -1
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentType.cjs +0 -12
- package/dist/cjs/entities/receipts/payments/SBReceiptPaymentType.cjs.map +0 -1
- package/dist/cjs/entities/suppliers/SBSupplierStatus.cjs +0 -21
- package/dist/cjs/entities/suppliers/SBSupplierStatus.cjs.map +0 -1
- package/dist/cjs/entities/transactions/SBTransactionType.cjs +0 -10
- package/dist/cjs/entities/transactions/SBTransactionType.cjs.map +0 -1
- package/dist/cjs/index.cjs +0 -221
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +0 -17
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs.map +0 -1
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +0 -19
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs.map +0 -1
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +0 -14
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs.map +0 -1
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/typeof.cjs +0 -16
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/typeof.cjs.map +0 -1
- package/dist/cjs/node_modules/call-bind/index.cjs +0 -31
- package/dist/cjs/node_modules/call-bind/index.cjs.map +0 -1
- package/dist/cjs/node_modules/call-bind-apply-helpers/actualApply.cjs +0 -17
- package/dist/cjs/node_modules/call-bind-apply-helpers/actualApply.cjs.map +0 -1
- package/dist/cjs/node_modules/call-bind-apply-helpers/applyBind.cjs +0 -17
- package/dist/cjs/node_modules/call-bind-apply-helpers/applyBind.cjs.map +0 -1
- package/dist/cjs/node_modules/call-bind-apply-helpers/functionApply.cjs +0 -15
- package/dist/cjs/node_modules/call-bind-apply-helpers/functionApply.cjs.map +0 -1
- package/dist/cjs/node_modules/call-bind-apply-helpers/functionCall.cjs +0 -15
- package/dist/cjs/node_modules/call-bind-apply-helpers/functionCall.cjs.map +0 -1
- package/dist/cjs/node_modules/call-bind-apply-helpers/index.cjs +0 -22
- package/dist/cjs/node_modules/call-bind-apply-helpers/index.cjs.map +0 -1
- package/dist/cjs/node_modules/call-bind-apply-helpers/reflectApply.cjs +0 -7
- package/dist/cjs/node_modules/call-bind-apply-helpers/reflectApply.cjs.map +0 -1
- package/dist/cjs/node_modules/call-bound/index.cjs +0 -23
- package/dist/cjs/node_modules/call-bound/index.cjs.map +0 -1
- package/dist/cjs/node_modules/define-data-property/index.cjs +0 -56
- package/dist/cjs/node_modules/define-data-property/index.cjs.map +0 -1
- package/dist/cjs/node_modules/dunder-proto/get.cjs +0 -31
- package/dist/cjs/node_modules/dunder-proto/get.cjs.map +0 -1
- package/dist/cjs/node_modules/es-define-property/index.cjs +0 -18
- package/dist/cjs/node_modules/es-define-property/index.cjs.map +0 -1
- package/dist/cjs/node_modules/es-errors/eval.cjs +0 -7
- package/dist/cjs/node_modules/es-errors/eval.cjs.map +0 -1
- package/dist/cjs/node_modules/es-errors/index.cjs +0 -7
- package/dist/cjs/node_modules/es-errors/index.cjs.map +0 -1
- package/dist/cjs/node_modules/es-errors/range.cjs +0 -7
- package/dist/cjs/node_modules/es-errors/range.cjs.map +0 -1
- package/dist/cjs/node_modules/es-errors/ref.cjs +0 -7
- package/dist/cjs/node_modules/es-errors/ref.cjs.map +0 -1
- package/dist/cjs/node_modules/es-errors/syntax.cjs +0 -7
- package/dist/cjs/node_modules/es-errors/syntax.cjs.map +0 -1
- package/dist/cjs/node_modules/es-errors/type.cjs +0 -7
- package/dist/cjs/node_modules/es-errors/type.cjs.map +0 -1
- package/dist/cjs/node_modules/es-errors/uri.cjs +0 -7
- package/dist/cjs/node_modules/es-errors/uri.cjs.map +0 -1
- package/dist/cjs/node_modules/function-bind/implementation.cjs +0 -77
- package/dist/cjs/node_modules/function-bind/implementation.cjs.map +0 -1
- package/dist/cjs/node_modules/function-bind/index.cjs +0 -16
- package/dist/cjs/node_modules/function-bind/index.cjs.map +0 -1
- package/dist/cjs/node_modules/get-intrinsic/index.cjs +0 -341
- package/dist/cjs/node_modules/get-intrinsic/index.cjs.map +0 -1
- package/dist/cjs/node_modules/gopd/gOPD.cjs +0 -7
- package/dist/cjs/node_modules/gopd/gOPD.cjs.map +0 -1
- package/dist/cjs/node_modules/gopd/index.cjs +0 -18
- package/dist/cjs/node_modules/gopd/index.cjs.map +0 -1
- package/dist/cjs/node_modules/has-property-descriptors/index.cjs +0 -26
- package/dist/cjs/node_modules/has-property-descriptors/index.cjs.map +0 -1
- package/dist/cjs/node_modules/has-symbols/index.cjs +0 -33
- package/dist/cjs/node_modules/has-symbols/index.cjs.map +0 -1
- package/dist/cjs/node_modules/has-symbols/shams.cjs +0 -72
- package/dist/cjs/node_modules/has-symbols/shams.cjs.map +0 -1
- package/dist/cjs/node_modules/hasown/index.cjs +0 -20
- package/dist/cjs/node_modules/hasown/index.cjs.map +0 -1
- package/dist/cjs/node_modules/object-inspect/index.cjs +0 -535
- package/dist/cjs/node_modules/object-inspect/index.cjs.map +0 -1
- package/dist/cjs/node_modules/object-inspect/util.inspect.cjs +0 -8
- package/dist/cjs/node_modules/object-inspect/util.inspect.cjs.map +0 -1
- package/dist/cjs/node_modules/qs/lib/formats.cjs +0 -24
- package/dist/cjs/node_modules/qs/lib/formats.cjs.map +0 -1
- package/dist/cjs/node_modules/qs/lib/index.cjs +0 -21
- package/dist/cjs/node_modules/qs/lib/index.cjs.map +0 -1
- package/dist/cjs/node_modules/qs/lib/parse.cjs +0 -265
- package/dist/cjs/node_modules/qs/lib/parse.cjs.map +0 -1
- package/dist/cjs/node_modules/qs/lib/stringify.cjs +0 -253
- package/dist/cjs/node_modules/qs/lib/stringify.cjs.map +0 -1
- package/dist/cjs/node_modules/qs/lib/utils.cjs +0 -231
- package/dist/cjs/node_modules/qs/lib/utils.cjs.map +0 -1
- package/dist/cjs/node_modules/set-function-length/index.cjs +0 -47
- package/dist/cjs/node_modules/set-function-length/index.cjs.map +0 -1
- package/dist/cjs/node_modules/side-channel/index.cjs +0 -50
- package/dist/cjs/node_modules/side-channel/index.cjs.map +0 -1
- package/dist/cjs/node_modules/side-channel-list/index.cjs +0 -119
- package/dist/cjs/node_modules/side-channel-list/index.cjs.map +0 -1
- package/dist/cjs/node_modules/side-channel-map/index.cjs +0 -76
- package/dist/cjs/node_modules/side-channel-map/index.cjs.map +0 -1
- package/dist/cjs/node_modules/side-channel-weakmap/index.cjs +0 -92
- package/dist/cjs/node_modules/side-channel-weakmap/index.cjs.map +0 -1
- package/dist/cjs/packages/sdk/package.json.cjs +0 -6
- package/dist/cjs/packages/sdk/package.json.cjs.map +0 -1
- package/dist/cjs/services/SBService.cjs +0 -161
- package/dist/cjs/services/SBService.cjs.map +0 -1
- package/dist/cjs/services/api-logs/LogService.cjs +0 -19
- package/dist/cjs/services/api-logs/LogService.cjs.map +0 -1
- package/dist/cjs/services/attachments/AttachmentService.cjs +0 -86
- package/dist/cjs/services/attachments/AttachmentService.cjs.map +0 -1
- package/dist/cjs/services/banks/BankService.cjs +0 -183
- package/dist/cjs/services/banks/BankService.cjs.map +0 -1
- package/dist/cjs/services/banks/accounts/BankAccountService.cjs +0 -25
- package/dist/cjs/services/banks/accounts/BankAccountService.cjs.map +0 -1
- package/dist/cjs/services/banks/institutions/BankInstitutionService.cjs +0 -19
- package/dist/cjs/services/banks/institutions/BankInstitutionService.cjs.map +0 -1
- package/dist/cjs/services/banks/transactions/BankTransactionService.cjs +0 -28
- package/dist/cjs/services/banks/transactions/BankTransactionService.cjs.map +0 -1
- package/dist/cjs/services/billing/subscriptions/SubscriptionService.cjs +0 -129
- package/dist/cjs/services/billing/subscriptions/SubscriptionService.cjs.map +0 -1
- package/dist/cjs/services/businesses/BusinessService.cjs +0 -95
- package/dist/cjs/services/businesses/BusinessService.cjs.map +0 -1
- package/dist/cjs/services/businesses/customers/CustomerService.cjs +0 -94
- package/dist/cjs/services/businesses/customers/CustomerService.cjs.map +0 -1
- package/dist/cjs/services/businesses/customers/balance-transactions/CustomerBalanceTransactionService.cjs +0 -82
- package/dist/cjs/services/businesses/customers/balance-transactions/CustomerBalanceTransactionService.cjs.map +0 -1
- package/dist/cjs/services/businesses/customers/payment-methods/CustomerPaymentMethodService.cjs +0 -82
- package/dist/cjs/services/businesses/customers/payment-methods/CustomerPaymentMethodService.cjs.map +0 -1
- package/dist/cjs/services/businesses/departments/DepartmentService.cjs +0 -159
- package/dist/cjs/services/businesses/departments/DepartmentService.cjs.map +0 -1
- package/dist/cjs/services/businesses/departments/Employees/DepartmentEmployeeService.cjs +0 -81
- package/dist/cjs/services/businesses/departments/Employees/DepartmentEmployeeService.cjs.map +0 -1
- package/dist/cjs/services/businesses/domains/DomainService.cjs +0 -21
- package/dist/cjs/services/businesses/domains/DomainService.cjs.map +0 -1
- package/dist/cjs/services/businesses/fees/FeeService.cjs +0 -93
- package/dist/cjs/services/businesses/fees/FeeService.cjs.map +0 -1
- package/dist/cjs/services/businesses/locations/LocationService.cjs +0 -139
- package/dist/cjs/services/businesses/locations/LocationService.cjs.map +0 -1
- package/dist/cjs/services/businesses/prices/PriceService.cjs +0 -24
- package/dist/cjs/services/businesses/prices/PriceService.cjs.map +0 -1
- package/dist/cjs/services/businesses/products/ProductService.cjs +0 -123
- package/dist/cjs/services/businesses/products/ProductService.cjs.map +0 -1
- package/dist/cjs/services/businesses/products/images/ProductImageService.cjs +0 -99
- package/dist/cjs/services/businesses/products/images/ProductImageService.cjs.map +0 -1
- package/dist/cjs/services/businesses/products/modifiers/ProductModifierService.cjs +0 -94
- package/dist/cjs/services/businesses/products/modifiers/ProductModifierService.cjs.map +0 -1
- package/dist/cjs/services/businesses/products/options/ProductOptionService.cjs +0 -94
- package/dist/cjs/services/businesses/products/options/ProductOptionService.cjs.map +0 -1
- package/dist/cjs/services/businesses/products/variants/ProductVariantService.cjs +0 -83
- package/dist/cjs/services/businesses/products/variants/ProductVariantService.cjs.map +0 -1
- package/dist/cjs/services/businesses/promo-codes/PromoCodeService.cjs +0 -94
- package/dist/cjs/services/businesses/promo-codes/PromoCodeService.cjs.map +0 -1
- package/dist/cjs/services/businesses/reviews/BusinessReviewService.cjs +0 -32
- package/dist/cjs/services/businesses/reviews/BusinessReviewService.cjs.map +0 -1
- package/dist/cjs/services/businesses/taxes/TaxService.cjs +0 -89
- package/dist/cjs/services/businesses/taxes/TaxService.cjs.map +0 -1
- package/dist/cjs/services/businesses/team/invitations/TeamMemberInvitationService.cjs +0 -34
- package/dist/cjs/services/businesses/team/invitations/TeamMemberInvitationService.cjs.map +0 -1
- package/dist/cjs/services/businesses/team/members/TeamMemberService.cjs +0 -26
- package/dist/cjs/services/businesses/team/members/TeamMemberService.cjs.map +0 -1
- package/dist/cjs/services/businesses/vendors/VendorService.cjs +0 -82
- package/dist/cjs/services/businesses/vendors/VendorService.cjs.map +0 -1
- package/dist/cjs/services/cards/CardService.cjs +0 -40
- package/dist/cjs/services/cards/CardService.cjs.map +0 -1
- package/dist/cjs/services/documents/DocumentService.cjs +0 -40
- package/dist/cjs/services/documents/DocumentService.cjs.map +0 -1
- package/dist/cjs/services/explore/ExploreService.cjs +0 -16
- package/dist/cjs/services/explore/ExploreService.cjs.map +0 -1
- package/dist/cjs/services/friends/FriendService.cjs +0 -28
- package/dist/cjs/services/friends/FriendService.cjs.map +0 -1
- package/dist/cjs/services/invoices/InvoiceService.cjs +0 -271
- package/dist/cjs/services/invoices/InvoiceService.cjs.map +0 -1
- package/dist/cjs/services/loyalty/LoyaltyProgramService.cjs +0 -197
- package/dist/cjs/services/loyalty/LoyaltyProgramService.cjs.map +0 -1
- package/dist/cjs/services/notifications/NotificationService.cjs +0 -75
- package/dist/cjs/services/notifications/NotificationService.cjs.map +0 -1
- package/dist/cjs/services/oauth/AccessTokenResponse.cjs +0 -16
- package/dist/cjs/services/oauth/AccessTokenResponse.cjs.map +0 -1
- package/dist/cjs/services/oauth/AuthorizationCodeResponse.cjs +0 -25
- package/dist/cjs/services/oauth/AuthorizationCodeResponse.cjs.map +0 -1
- package/dist/cjs/services/oauth/OAuthService.cjs +0 -44
- package/dist/cjs/services/oauth/OAuthService.cjs.map +0 -1
- package/dist/cjs/services/payment-methods/PaymentMethodService.cjs +0 -35
- package/dist/cjs/services/payment-methods/PaymentMethodService.cjs.map +0 -1
- package/dist/cjs/services/receipts/ReceiptService.cjs +0 -294
- package/dist/cjs/services/receipts/ReceiptService.cjs.map +0 -1
- package/dist/cjs/services/settlements/SettlementService.cjs +0 -29
- package/dist/cjs/services/settlements/SettlementService.cjs.map +0 -1
- package/dist/cjs/services/suppliers/SupplierService.cjs +0 -87
- package/dist/cjs/services/suppliers/SupplierService.cjs.map +0 -1
- package/dist/cjs/services/transactions/TransactionService.cjs +0 -20
- package/dist/cjs/services/transactions/TransactionService.cjs.map +0 -1
- package/dist/cjs/services/user/UserService.cjs +0 -20
- package/dist/cjs/services/user/UserService.cjs.map +0 -1
- package/dist/cjs/services/users/UserService.cjs +0 -34
- package/dist/cjs/services/users/UserService.cjs.map +0 -1
- package/dist/esm/_virtual/__polyfill-node.util.mjs +0 -7
- package/dist/esm/_virtual/__polyfill-node.util.mjs.map +0 -1
- package/dist/esm/_virtual/_commonjsHelpers.mjs +0 -33
- package/dist/esm/_virtual/_commonjsHelpers.mjs.map +0 -1
- package/dist/esm/_virtual/_polyfill-node._inherits.mjs +0 -26
- package/dist/esm/_virtual/_polyfill-node._inherits.mjs.map +0 -1
- package/dist/esm/_virtual/_polyfill-node.buffer.mjs +0 -1981
- package/dist/esm/_virtual/_polyfill-node.buffer.mjs.map +0 -1
- package/dist/esm/_virtual/_polyfill-node.global.mjs +0 -6
- package/dist/esm/_virtual/_polyfill-node.global.mjs.map +0 -1
- package/dist/esm/_virtual/_polyfill-node.process.mjs +0 -226
- package/dist/esm/_virtual/_polyfill-node.process.mjs.map +0 -1
- package/dist/esm/_virtual/_polyfill-node.util.mjs +0 -679
- package/dist/esm/_virtual/_polyfill-node.util.mjs.map +0 -1
- package/dist/esm/_virtual/index.mjs +0 -4
- package/dist/esm/_virtual/index.mjs.map +0 -1
- package/dist/esm/client/SBClient.mjs +0 -236
- package/dist/esm/client/SBClient.mjs.map +0 -1
- package/dist/esm/client/SBCredentials.mjs +0 -57
- package/dist/esm/client/SBCredentials.mjs.map +0 -1
- package/dist/esm/client/SBEnvironment.mjs +0 -13
- package/dist/esm/client/SBEnvironment.mjs.map +0 -1
- package/dist/esm/client/SBException.mjs +0 -35
- package/dist/esm/client/SBException.mjs.map +0 -1
- package/dist/esm/client/SBInstance.mjs +0 -57
- package/dist/esm/client/SBInstance.mjs.map +0 -1
- package/dist/esm/client/SBLogger.mjs +0 -14
- package/dist/esm/client/SBLogger.mjs.map +0 -1
- package/dist/esm/client/SBPermission.mjs +0 -50
- package/dist/esm/client/SBPermission.mjs.map +0 -1
- package/dist/esm/client/SBServiceOptions.mjs +0 -19
- package/dist/esm/client/SBServiceOptions.mjs.map +0 -1
- package/dist/esm/client/constants.mjs +0 -5
- package/dist/esm/client/constants.mjs.map +0 -1
- package/dist/esm/constants/login/LoginError.mjs +0 -9
- package/dist/esm/constants/login/LoginError.mjs.map +0 -1
- package/dist/esm/entities/account/SBGenderEnum.mjs +0 -9
- package/dist/esm/entities/account/SBGenderEnum.mjs.map +0 -1
- package/dist/esm/entities/banks/SBBankState.mjs +0 -10
- package/dist/esm/entities/banks/SBBankState.mjs.map +0 -1
- package/dist/esm/entities/barcode/SBBarcodeType.mjs +0 -28
- package/dist/esm/entities/barcode/SBBarcodeType.mjs.map +0 -1
- package/dist/esm/entities/businesses/fees/SBFeeType.mjs +0 -8
- package/dist/esm/entities/businesses/fees/SBFeeType.mjs.map +0 -1
- package/dist/esm/entities/businesses/team/invitations/SBTeamMemberInvitationStatus.mjs +0 -10
- package/dist/esm/entities/businesses/team/invitations/SBTeamMemberInvitationStatus.mjs.map +0 -1
- package/dist/esm/entities/businesses/team/members/SBTeamMemberRole.mjs +0 -11
- package/dist/esm/entities/businesses/team/members/SBTeamMemberRole.mjs.map +0 -1
- package/dist/esm/entities/businesses/team/members/SBTeamMemberStatus.mjs +0 -11
- package/dist/esm/entities/businesses/team/members/SBTeamMemberStatus.mjs.map +0 -1
- package/dist/esm/entities/cards/SBCardType.mjs +0 -10
- package/dist/esm/entities/cards/SBCardType.mjs.map +0 -1
- package/dist/esm/entities/payment-methods/SBPaymentMethod.mjs +0 -8
- package/dist/esm/entities/payment-methods/SBPaymentMethod.mjs.map +0 -1
- package/dist/esm/entities/payment-methods/SBPaymentMethodFingerprintProvider.mjs +0 -8
- package/dist/esm/entities/payment-methods/SBPaymentMethodFingerprintProvider.mjs.map +0 -1
- package/dist/esm/entities/receipts/SBReceiptSource.mjs +0 -11
- package/dist/esm/entities/receipts/SBReceiptSource.mjs.map +0 -1
- package/dist/esm/entities/receipts/SBReceiptType.mjs +0 -8
- package/dist/esm/entities/receipts/SBReceiptType.mjs.map +0 -1
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentCardAvsResult.mjs +0 -16
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentCardAvsResult.mjs.map +0 -1
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentCardCvvResult.mjs +0 -9
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentCardCvvResult.mjs.map +0 -1
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentCardEntryMethod.mjs +0 -11
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentCardEntryMethod.mjs.map +0 -1
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentExternalType.mjs +0 -18
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentExternalType.mjs.map +0 -1
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentRiskLevel.mjs +0 -9
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentRiskLevel.mjs.map +0 -1
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentStatus.mjs +0 -11
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentStatus.mjs.map +0 -1
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentType.mjs +0 -12
- package/dist/esm/entities/receipts/payments/SBReceiptPaymentType.mjs.map +0 -1
- package/dist/esm/entities/suppliers/SBSupplierStatus.mjs +0 -21
- package/dist/esm/entities/suppliers/SBSupplierStatus.mjs.map +0 -1
- package/dist/esm/entities/transactions/SBTransactionType.mjs +0 -10
- package/dist/esm/entities/transactions/SBTransactionType.mjs.map +0 -1
- package/dist/esm/index.mjs +0 -74
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +0 -13
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs.map +0 -1
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +0 -15
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs.map +0 -1
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +0 -10
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs.map +0 -1
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/typeof.mjs +0 -12
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/typeof.mjs.map +0 -1
- package/dist/esm/node_modules/call-bind/index.mjs +0 -29
- package/dist/esm/node_modules/call-bind/index.mjs.map +0 -1
- package/dist/esm/node_modules/call-bind-apply-helpers/actualApply.mjs +0 -15
- package/dist/esm/node_modules/call-bind-apply-helpers/actualApply.mjs.map +0 -1
- package/dist/esm/node_modules/call-bind-apply-helpers/applyBind.mjs +0 -15
- package/dist/esm/node_modules/call-bind-apply-helpers/applyBind.mjs.map +0 -1
- package/dist/esm/node_modules/call-bind-apply-helpers/functionApply.mjs +0 -13
- package/dist/esm/node_modules/call-bind-apply-helpers/functionApply.mjs.map +0 -1
- package/dist/esm/node_modules/call-bind-apply-helpers/functionCall.mjs +0 -13
- package/dist/esm/node_modules/call-bind-apply-helpers/functionCall.mjs.map +0 -1
- package/dist/esm/node_modules/call-bind-apply-helpers/index.mjs +0 -20
- package/dist/esm/node_modules/call-bind-apply-helpers/index.mjs.map +0 -1
- package/dist/esm/node_modules/call-bind-apply-helpers/reflectApply.mjs +0 -5
- package/dist/esm/node_modules/call-bind-apply-helpers/reflectApply.mjs.map +0 -1
- package/dist/esm/node_modules/call-bound/index.mjs +0 -21
- package/dist/esm/node_modules/call-bound/index.mjs.map +0 -1
- package/dist/esm/node_modules/define-data-property/index.mjs +0 -54
- package/dist/esm/node_modules/define-data-property/index.mjs.map +0 -1
- package/dist/esm/node_modules/dunder-proto/get.mjs +0 -29
- package/dist/esm/node_modules/dunder-proto/get.mjs.map +0 -1
- package/dist/esm/node_modules/es-define-property/index.mjs +0 -16
- package/dist/esm/node_modules/es-define-property/index.mjs.map +0 -1
- package/dist/esm/node_modules/es-errors/eval.mjs +0 -5
- package/dist/esm/node_modules/es-errors/eval.mjs.map +0 -1
- package/dist/esm/node_modules/es-errors/index.mjs +0 -5
- package/dist/esm/node_modules/es-errors/index.mjs.map +0 -1
- package/dist/esm/node_modules/es-errors/range.mjs +0 -5
- package/dist/esm/node_modules/es-errors/range.mjs.map +0 -1
- package/dist/esm/node_modules/es-errors/ref.mjs +0 -5
- package/dist/esm/node_modules/es-errors/ref.mjs.map +0 -1
- package/dist/esm/node_modules/es-errors/syntax.mjs +0 -5
- package/dist/esm/node_modules/es-errors/syntax.mjs.map +0 -1
- package/dist/esm/node_modules/es-errors/type.mjs +0 -5
- package/dist/esm/node_modules/es-errors/type.mjs.map +0 -1
- package/dist/esm/node_modules/es-errors/uri.mjs +0 -5
- package/dist/esm/node_modules/es-errors/uri.mjs.map +0 -1
- package/dist/esm/node_modules/function-bind/implementation.mjs +0 -75
- package/dist/esm/node_modules/function-bind/implementation.mjs.map +0 -1
- package/dist/esm/node_modules/function-bind/index.mjs +0 -14
- package/dist/esm/node_modules/function-bind/index.mjs.map +0 -1
- package/dist/esm/node_modules/get-intrinsic/index.mjs +0 -339
- package/dist/esm/node_modules/get-intrinsic/index.mjs.map +0 -1
- package/dist/esm/node_modules/gopd/gOPD.mjs +0 -5
- package/dist/esm/node_modules/gopd/gOPD.mjs.map +0 -1
- package/dist/esm/node_modules/gopd/index.mjs +0 -16
- package/dist/esm/node_modules/gopd/index.mjs.map +0 -1
- package/dist/esm/node_modules/has-property-descriptors/index.mjs +0 -24
- package/dist/esm/node_modules/has-property-descriptors/index.mjs.map +0 -1
- package/dist/esm/node_modules/has-symbols/index.mjs +0 -31
- package/dist/esm/node_modules/has-symbols/index.mjs.map +0 -1
- package/dist/esm/node_modules/has-symbols/shams.mjs +0 -70
- package/dist/esm/node_modules/has-symbols/shams.mjs.map +0 -1
- package/dist/esm/node_modules/hasown/index.mjs +0 -18
- package/dist/esm/node_modules/hasown/index.mjs.map +0 -1
- package/dist/esm/node_modules/object-inspect/index.mjs +0 -533
- package/dist/esm/node_modules/object-inspect/index.mjs.map +0 -1
- package/dist/esm/node_modules/object-inspect/util.inspect.mjs +0 -6
- package/dist/esm/node_modules/object-inspect/util.inspect.mjs.map +0 -1
- package/dist/esm/node_modules/qs/lib/formats.mjs +0 -22
- package/dist/esm/node_modules/qs/lib/formats.mjs.map +0 -1
- package/dist/esm/node_modules/qs/lib/index.mjs +0 -17
- package/dist/esm/node_modules/qs/lib/index.mjs.map +0 -1
- package/dist/esm/node_modules/qs/lib/parse.mjs +0 -263
- package/dist/esm/node_modules/qs/lib/parse.mjs.map +0 -1
- package/dist/esm/node_modules/qs/lib/stringify.mjs +0 -251
- package/dist/esm/node_modules/qs/lib/stringify.mjs.map +0 -1
- package/dist/esm/node_modules/qs/lib/utils.mjs +0 -229
- package/dist/esm/node_modules/qs/lib/utils.mjs.map +0 -1
- package/dist/esm/node_modules/set-function-length/index.mjs +0 -45
- package/dist/esm/node_modules/set-function-length/index.mjs.map +0 -1
- package/dist/esm/node_modules/side-channel/index.mjs +0 -48
- package/dist/esm/node_modules/side-channel/index.mjs.map +0 -1
- package/dist/esm/node_modules/side-channel-list/index.mjs +0 -117
- package/dist/esm/node_modules/side-channel-list/index.mjs.map +0 -1
- package/dist/esm/node_modules/side-channel-map/index.mjs +0 -74
- package/dist/esm/node_modules/side-channel-map/index.mjs.map +0 -1
- package/dist/esm/node_modules/side-channel-weakmap/index.mjs +0 -90
- package/dist/esm/node_modules/side-channel-weakmap/index.mjs.map +0 -1
- package/dist/esm/packages/sdk/package.json.mjs +0 -4
- package/dist/esm/packages/sdk/package.json.mjs.map +0 -1
- package/dist/esm/services/SBService.mjs +0 -159
- package/dist/esm/services/SBService.mjs.map +0 -1
- package/dist/esm/services/api-logs/LogService.mjs +0 -17
- package/dist/esm/services/api-logs/LogService.mjs.map +0 -1
- package/dist/esm/services/attachments/AttachmentService.mjs +0 -84
- package/dist/esm/services/attachments/AttachmentService.mjs.map +0 -1
- package/dist/esm/services/banks/BankService.mjs +0 -181
- package/dist/esm/services/banks/BankService.mjs.map +0 -1
- package/dist/esm/services/banks/accounts/BankAccountService.mjs +0 -23
- package/dist/esm/services/banks/accounts/BankAccountService.mjs.map +0 -1
- package/dist/esm/services/banks/institutions/BankInstitutionService.mjs +0 -17
- package/dist/esm/services/banks/institutions/BankInstitutionService.mjs.map +0 -1
- package/dist/esm/services/banks/transactions/BankTransactionService.mjs +0 -26
- package/dist/esm/services/banks/transactions/BankTransactionService.mjs.map +0 -1
- package/dist/esm/services/billing/subscriptions/SubscriptionService.mjs +0 -127
- package/dist/esm/services/billing/subscriptions/SubscriptionService.mjs.map +0 -1
- package/dist/esm/services/businesses/BusinessService.mjs +0 -93
- package/dist/esm/services/businesses/BusinessService.mjs.map +0 -1
- package/dist/esm/services/businesses/customers/CustomerService.mjs +0 -92
- package/dist/esm/services/businesses/customers/CustomerService.mjs.map +0 -1
- package/dist/esm/services/businesses/customers/balance-transactions/CustomerBalanceTransactionService.mjs +0 -80
- package/dist/esm/services/businesses/customers/balance-transactions/CustomerBalanceTransactionService.mjs.map +0 -1
- package/dist/esm/services/businesses/customers/payment-methods/CustomerPaymentMethodService.mjs +0 -80
- package/dist/esm/services/businesses/customers/payment-methods/CustomerPaymentMethodService.mjs.map +0 -1
- package/dist/esm/services/businesses/departments/DepartmentService.mjs +0 -157
- package/dist/esm/services/businesses/departments/DepartmentService.mjs.map +0 -1
- package/dist/esm/services/businesses/departments/Employees/DepartmentEmployeeService.mjs +0 -79
- package/dist/esm/services/businesses/departments/Employees/DepartmentEmployeeService.mjs.map +0 -1
- package/dist/esm/services/businesses/domains/DomainService.mjs +0 -19
- package/dist/esm/services/businesses/domains/DomainService.mjs.map +0 -1
- package/dist/esm/services/businesses/fees/FeeService.mjs +0 -91
- package/dist/esm/services/businesses/fees/FeeService.mjs.map +0 -1
- package/dist/esm/services/businesses/locations/LocationService.mjs +0 -137
- package/dist/esm/services/businesses/locations/LocationService.mjs.map +0 -1
- package/dist/esm/services/businesses/prices/PriceService.mjs +0 -22
- package/dist/esm/services/businesses/prices/PriceService.mjs.map +0 -1
- package/dist/esm/services/businesses/products/ProductService.mjs +0 -121
- package/dist/esm/services/businesses/products/ProductService.mjs.map +0 -1
- package/dist/esm/services/businesses/products/images/ProductImageService.mjs +0 -97
- package/dist/esm/services/businesses/products/images/ProductImageService.mjs.map +0 -1
- package/dist/esm/services/businesses/products/modifiers/ProductModifierService.mjs +0 -92
- package/dist/esm/services/businesses/products/modifiers/ProductModifierService.mjs.map +0 -1
- package/dist/esm/services/businesses/products/options/ProductOptionService.mjs +0 -92
- package/dist/esm/services/businesses/products/options/ProductOptionService.mjs.map +0 -1
- package/dist/esm/services/businesses/products/variants/ProductVariantService.mjs +0 -81
- package/dist/esm/services/businesses/products/variants/ProductVariantService.mjs.map +0 -1
- package/dist/esm/services/businesses/promo-codes/PromoCodeService.mjs +0 -92
- package/dist/esm/services/businesses/promo-codes/PromoCodeService.mjs.map +0 -1
- package/dist/esm/services/businesses/reviews/BusinessReviewService.mjs +0 -30
- package/dist/esm/services/businesses/reviews/BusinessReviewService.mjs.map +0 -1
- package/dist/esm/services/businesses/taxes/TaxService.mjs +0 -87
- package/dist/esm/services/businesses/taxes/TaxService.mjs.map +0 -1
- package/dist/esm/services/businesses/team/invitations/TeamMemberInvitationService.mjs +0 -32
- package/dist/esm/services/businesses/team/invitations/TeamMemberInvitationService.mjs.map +0 -1
- package/dist/esm/services/businesses/team/members/TeamMemberService.mjs +0 -24
- package/dist/esm/services/businesses/team/members/TeamMemberService.mjs.map +0 -1
- package/dist/esm/services/businesses/vendors/VendorService.mjs +0 -80
- package/dist/esm/services/businesses/vendors/VendorService.mjs.map +0 -1
- package/dist/esm/services/cards/CardService.mjs +0 -38
- package/dist/esm/services/cards/CardService.mjs.map +0 -1
- package/dist/esm/services/documents/DocumentService.mjs +0 -38
- package/dist/esm/services/documents/DocumentService.mjs.map +0 -1
- package/dist/esm/services/explore/ExploreService.mjs +0 -14
- package/dist/esm/services/explore/ExploreService.mjs.map +0 -1
- package/dist/esm/services/friends/FriendService.mjs +0 -26
- package/dist/esm/services/friends/FriendService.mjs.map +0 -1
- package/dist/esm/services/invoices/InvoiceService.mjs +0 -269
- package/dist/esm/services/invoices/InvoiceService.mjs.map +0 -1
- package/dist/esm/services/loyalty/LoyaltyProgramService.mjs +0 -195
- package/dist/esm/services/loyalty/LoyaltyProgramService.mjs.map +0 -1
- package/dist/esm/services/notifications/NotificationService.mjs +0 -73
- package/dist/esm/services/notifications/NotificationService.mjs.map +0 -1
- package/dist/esm/services/oauth/AccessTokenResponse.mjs +0 -14
- package/dist/esm/services/oauth/AccessTokenResponse.mjs.map +0 -1
- package/dist/esm/services/oauth/AuthorizationCodeResponse.mjs +0 -23
- package/dist/esm/services/oauth/AuthorizationCodeResponse.mjs.map +0 -1
- package/dist/esm/services/oauth/OAuthService.mjs +0 -42
- package/dist/esm/services/oauth/OAuthService.mjs.map +0 -1
- package/dist/esm/services/payment-methods/PaymentMethodService.mjs +0 -33
- package/dist/esm/services/payment-methods/PaymentMethodService.mjs.map +0 -1
- package/dist/esm/services/receipts/ReceiptService.mjs +0 -292
- package/dist/esm/services/receipts/ReceiptService.mjs.map +0 -1
- package/dist/esm/services/settlements/SettlementService.mjs +0 -27
- package/dist/esm/services/settlements/SettlementService.mjs.map +0 -1
- package/dist/esm/services/suppliers/SupplierService.mjs +0 -85
- package/dist/esm/services/suppliers/SupplierService.mjs.map +0 -1
- package/dist/esm/services/transactions/TransactionService.mjs +0 -18
- package/dist/esm/services/transactions/TransactionService.mjs.map +0 -1
- package/dist/esm/services/user/UserService.mjs +0 -18
- package/dist/esm/services/user/UserService.mjs.map +0 -1
- package/dist/esm/services/users/UserService.mjs +0 -32
- package/dist/esm/services/users/UserService.mjs.map +0 -1
- package/dist/umd/index.js +0 -9362
- package/dist/umd/index.js.map +0 -1
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { defaultAPIServiceOptions } from '../../../../client/SBServiceOptions.mjs';
|
|
2
|
-
import { SBService } from '../../../SBService.mjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Service for managing product options in the Smartbills system
|
|
6
|
-
* Provides functionality for CRUD operations on product options as nested resources under products
|
|
7
|
-
*/
|
|
8
|
-
class ProductOptionService extends SBService {
|
|
9
|
-
/**
|
|
10
|
-
* Creates a new instance of the product option service
|
|
11
|
-
* @param options - Service configuration options
|
|
12
|
-
*/
|
|
13
|
-
constructor(options = defaultAPIServiceOptions) {
|
|
14
|
-
super(options);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Lists product options with pagination
|
|
18
|
-
* @param businessId - The business ID
|
|
19
|
-
* @param productId - The product ID
|
|
20
|
-
* @param request - List request parameters
|
|
21
|
-
* @param options - Request options
|
|
22
|
-
* @param config - Axios request configuration
|
|
23
|
-
* @returns Promise that resolves with paginated product option data
|
|
24
|
-
*/
|
|
25
|
-
async listAsync(businessId, productId, request, options, config) {
|
|
26
|
-
return await super.listEntities(`/v1/business/${businessId}/products/${productId}/options`, request, options, config);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Retrieves a product option by ID
|
|
30
|
-
* @param businessId - The business ID
|
|
31
|
-
* @param productId - The product ID
|
|
32
|
-
* @param id - The option ID
|
|
33
|
-
* @param options - Request options
|
|
34
|
-
* @param config - Axios request configuration
|
|
35
|
-
* @returns Promise that resolves with the product option data
|
|
36
|
-
*/
|
|
37
|
-
async getByIdAsync(businessId, productId, id, options, config) {
|
|
38
|
-
return await super.getEntityById(`/v1/business/${businessId}/products/${productId}/options/${id}`, options, config);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Deletes a product option
|
|
42
|
-
* @param businessId - The business ID
|
|
43
|
-
* @param productId - The product ID
|
|
44
|
-
* @param id - The option ID to delete
|
|
45
|
-
* @param options - Request options
|
|
46
|
-
* @param config - Axios request configuration
|
|
47
|
-
* @returns Promise that resolves with the deleted product option
|
|
48
|
-
*/
|
|
49
|
-
async deleteAsync(businessId, productId, id, options, config) {
|
|
50
|
-
return await super.deleteEntity(`/v1/business/${businessId}/products/${productId}/options/${id}`, options, config);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Creates a new product option
|
|
54
|
-
* @param businessId - The business ID
|
|
55
|
-
* @param productId - The product ID
|
|
56
|
-
* @param request - Product option creation request data
|
|
57
|
-
* @param options - Request options
|
|
58
|
-
* @param config - Axios request configuration
|
|
59
|
-
* @returns Promise that resolves with the created product option
|
|
60
|
-
*/
|
|
61
|
-
async createAsync(businessId, productId, request, options, config) {
|
|
62
|
-
return await super.createEntity(`/v1/business/${businessId}/products/${productId}/options`, request, options, config);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Updates an existing product option
|
|
66
|
-
* @param businessId - The business ID
|
|
67
|
-
* @param productId - The product ID
|
|
68
|
-
* @param id - The option ID to update
|
|
69
|
-
* @param request - Product option update request data
|
|
70
|
-
* @param options - Request options
|
|
71
|
-
* @param config - Axios request configuration
|
|
72
|
-
* @returns Promise that resolves with the updated product option
|
|
73
|
-
*/
|
|
74
|
-
async updateAsync(businessId, productId, id, request, options, config) {
|
|
75
|
-
return await super.updateEntity(`/v1/business/${businessId}/products/${productId}/options/${id}`, request, options, config);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Performs a batch operation on product options
|
|
79
|
-
* @param businessId - The business ID
|
|
80
|
-
* @param productId - The product ID
|
|
81
|
-
* @param request - Batch upsert request data
|
|
82
|
-
* @param options - Request options
|
|
83
|
-
* @param config - Axios request configuration
|
|
84
|
-
* @returns Promise that resolves with the batch result
|
|
85
|
-
*/
|
|
86
|
-
async batch(businessId, productId, request, options, config) {
|
|
87
|
-
return await super.createEntity(`/v1/business/${businessId}/products/${productId}/options/batch`, request, options, config);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export { ProductOptionService };
|
|
92
|
-
//# sourceMappingURL=ProductOptionService.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductOptionService.mjs","sources":["../../../../../../src/services/businesses/products/options/ProductOptionService.ts"],"sourcesContent":["import { SBRequestOptions } from \"@/client/SBRequestOption\";\r\nimport {\r\n\tSBServiceOptions,\r\n\tdefaultAPIServiceOptions,\r\n} from \"@/client/SBServiceOptions\";\r\nimport { AxiosRequestConfig } from \"axios\";\r\nimport {\r\n\tINestedBatchable,\r\n\tINestedCreatable,\r\n\tINestedDeletable,\r\n\tINestedListable,\r\n\tINestedRetrievableById,\r\n\tINestedUpdatable,\r\n} from \"@/interfaces\";\r\nimport { SBService } from \"@/services/SBService\";\r\nimport { SBList } from \"@/entities/base\";\r\nimport { SBBatch } from \"@/entities\";\r\nimport { SBProductOption } from \"@/entities/businesses/products/options\";\r\nimport { ProductOptionCreateRequest } from \"./ProductOptionCreateRequest\";\r\nimport { ProductOptionUpdateRequest } from \"./ProductOptionUpdateRequest\";\r\nimport { ProductOptionListRequest } from \"./ProductOptionListRequest\";\r\nimport { BatchUpsertRequest } from \"@/services/BatchUpsertRequest\";\r\nimport { ProductOptionUpsertRequest } from \"./ProductOptionUpsertRequest\";\r\n\r\n/**\r\n * Service for managing product options in the Smartbills system\r\n * Provides functionality for CRUD operations on product options as nested resources under products\r\n */\r\nexport class ProductOptionService extends SBService {\r\n\t/**\r\n\t * Creates a new instance of the product option service\r\n\t * @param options - Service configuration options\r\n\t */\r\n\tpublic constructor(options: SBServiceOptions = defaultAPIServiceOptions) {\r\n\t\tsuper(options);\r\n\t}\r\n\r\n\t/**\r\n\t * Lists product options with pagination\r\n\t * @param businessId - The business ID\r\n\t * @param productId - The product ID\r\n\t * @param request - List request parameters\r\n\t * @param options - Request options\r\n\t * @param config - Axios request configuration\r\n\t * @returns Promise that resolves with paginated product option data\r\n\t */\r\n\tpublic async listAsync(\r\n\t\tbusinessId: number,\r\n\t\tproductId: number,\r\n\t\trequest: ProductOptionListRequest,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig,\r\n\t): Promise<SBList<SBProductOption>> {\r\n\t\treturn await super.listEntities(\r\n\t\t\t`/v1/business/${businessId}/products/${productId}/options`,\r\n\t\t\trequest,\r\n\t\t\toptions,\r\n\t\t\tconfig,\r\n\t\t);\r\n\t}\r\n\r\n\t/**\r\n\t * Retrieves a product option by ID\r\n\t * @param businessId - The business ID\r\n\t * @param productId - The product ID\r\n\t * @param id - The option ID\r\n\t * @param options - Request options\r\n\t * @param config - Axios request configuration\r\n\t * @returns Promise that resolves with the product option data\r\n\t */\r\n\tpublic async getByIdAsync(\r\n\t\tbusinessId: number,\r\n\t\tproductId: number,\r\n\t\tid: number,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig,\r\n\t): Promise<SBProductOption> {\r\n\t\treturn await super.getEntityById(\r\n\t\t\t`/v1/business/${businessId}/products/${productId}/options/${id}`,\r\n\t\t\toptions,\r\n\t\t\tconfig,\r\n\t\t);\r\n\t}\r\n\r\n\t/**\r\n\t * Deletes a product option\r\n\t * @param businessId - The business ID\r\n\t * @param productId - The product ID\r\n\t * @param id - The option ID to delete\r\n\t * @param options - Request options\r\n\t * @param config - Axios request configuration\r\n\t * @returns Promise that resolves with the deleted product option\r\n\t */\r\n\tpublic async deleteAsync(\r\n\t\tbusinessId: number,\r\n\t\tproductId: number,\r\n\t\tid: number,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig,\r\n\t): Promise<SBProductOption> {\r\n\t\treturn await super.deleteEntity(\r\n\t\t\t`/v1/business/${businessId}/products/${productId}/options/${id}`,\r\n\t\t\toptions,\r\n\t\t\tconfig,\r\n\t\t);\r\n\t}\r\n\r\n\t/**\r\n\t * Creates a new product option\r\n\t * @param businessId - The business ID\r\n\t * @param productId - The product ID\r\n\t * @param request - Product option creation request data\r\n\t * @param options - Request options\r\n\t * @param config - Axios request configuration\r\n\t * @returns Promise that resolves with the created product option\r\n\t */\r\n\tpublic async createAsync(\r\n\t\tbusinessId: number,\r\n\t\tproductId: number,\r\n\t\trequest: ProductOptionCreateRequest,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig<ProductOptionCreateRequest>,\r\n\t): Promise<SBProductOption> {\r\n\t\treturn await super.createEntity(\r\n\t\t\t`/v1/business/${businessId}/products/${productId}/options`,\r\n\t\t\trequest,\r\n\t\t\toptions,\r\n\t\t\tconfig,\r\n\t\t);\r\n\t}\r\n\r\n\t/**\r\n\t * Updates an existing product option\r\n\t * @param businessId - The business ID\r\n\t * @param productId - The product ID\r\n\t * @param id - The option ID to update\r\n\t * @param request - Product option update request data\r\n\t * @param options - Request options\r\n\t * @param config - Axios request configuration\r\n\t * @returns Promise that resolves with the updated product option\r\n\t */\r\n\tpublic async updateAsync(\r\n\t\tbusinessId: number,\r\n\t\tproductId: number,\r\n\t\tid: number,\r\n\t\trequest: ProductOptionUpdateRequest,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig<ProductOptionUpdateRequest>,\r\n\t): Promise<SBProductOption> {\r\n\t\treturn await super.updateEntity(\r\n\t\t\t`/v1/business/${businessId}/products/${productId}/options/${id}`,\r\n\t\t\trequest,\r\n\t\t\toptions,\r\n\t\t\tconfig,\r\n\t\t);\r\n\t}\r\n\r\n\t/**\r\n\t * Performs a batch operation on product options\r\n\t * @param businessId - The business ID\r\n\t * @param productId - The product ID\r\n\t * @param request - Batch upsert request data\r\n\t * @param options - Request options\r\n\t * @param config - Axios request configuration\r\n\t * @returns Promise that resolves with the batch result\r\n\t */\r\n\tpublic async batch(\r\n\t\tbusinessId: number,\r\n\t\tproductId: number,\r\n\t\trequest: BatchUpsertRequest<ProductOptionUpsertRequest>,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig<\r\n\t\t\tBatchUpsertRequest<ProductOptionUpsertRequest>\r\n\t\t>,\r\n\t): Promise<SBBatch<SBProductOption>> {\r\n\t\treturn await super.createEntity(\r\n\t\t\t`/v1/business/${businessId}/products/${productId}/options/batch`,\r\n\t\t\trequest,\r\n\t\t\toptions,\r\n\t\t\tconfig,\r\n\t\t);\r\n\t}\r\n}\r\n"],"names":["ProductOptionService","SBService","constructor","options","defaultAPIServiceOptions","listAsync","businessId","productId","request","config","listEntities","getByIdAsync","id","getEntityById","deleteAsync","deleteEntity","createAsync","createEntity","updateAsync","updateEntity","batch"],"mappings":";;;AAwBA;;;AAGG;AACG,MAAOA,oBAAqB,SAAQC,SAAS,CAAA;AAClD;;;AAGG;AACHC,EAAAA,WAAAA,CAAmBC,UAA4BC,wBAAwB,EAAA;IACtE,KAAK,CAACD,OAAO,CAAC;AACf;AAEA;;;;;;;;AAQG;EACI,MAAME,SAASA,CACrBC,UAAkB,EAClBC,SAAiB,EACjBC,OAAiC,EACjCL,OAA0B,EAC1BM,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACC,YAAY,CAC9B,gBAAgBJ,UAAU,CAAA,UAAA,EAAaC,SAAS,CAAA,QAAA,CAAU,EAC1DC,OAAO,EACPL,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAME,YAAYA,CACxBL,UAAkB,EAClBC,SAAiB,EACjBK,EAAU,EACVT,OAA0B,EAC1BM,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACI,aAAa,CAC/B,gBAAgBP,UAAU,CAAA,UAAA,EAAaC,SAAS,CAAA,SAAA,EAAYK,EAAE,CAAE,CAAA,EAChET,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAMK,WAAWA,CACvBR,UAAkB,EAClBC,SAAiB,EACjBK,EAAU,EACVT,OAA0B,EAC1BM,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACM,YAAY,CAC9B,gBAAgBT,UAAU,CAAA,UAAA,EAAaC,SAAS,CAAA,SAAA,EAAYK,EAAE,CAAE,CAAA,EAChET,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAMO,WAAWA,CACvBV,UAAkB,EAClBC,SAAiB,EACjBC,OAAmC,EACnCL,OAA0B,EAC1BM,MAAuD,EAAA;AAEvD,IAAA,OAAO,MAAM,KAAK,CAACQ,YAAY,CAC9B,gBAAgBX,UAAU,CAAA,UAAA,EAAaC,SAAS,CAAA,QAAA,CAAU,EAC1DC,OAAO,EACPL,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;;;AASG;AACI,EAAA,MAAMS,WAAWA,CACvBZ,UAAkB,EAClBC,SAAiB,EACjBK,EAAU,EACVJ,OAAmC,EACnCL,OAA0B,EAC1BM,MAAuD,EAAA;AAEvD,IAAA,OAAO,MAAM,KAAK,CAACU,YAAY,CAC9B,CAAA,aAAA,EAAgBb,UAAU,CAAaC,UAAAA,EAAAA,SAAS,CAAYK,SAAAA,EAAAA,EAAE,EAAE,EAChEJ,OAAO,EACPL,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAMW,KAAKA,CACjBd,UAAkB,EAClBC,SAAiB,EACjBC,OAAuD,EACvDL,OAA0B,EAC1BM,MAEC,EAAA;AAED,IAAA,OAAO,MAAM,KAAK,CAACQ,YAAY,CAC9B,gBAAgBX,UAAU,CAAA,UAAA,EAAaC,SAAS,CAAA,cAAA,CAAgB,EAChEC,OAAO,EACPL,OAAO,EACPM,MAAM,CACN;AACF;AACA;;;;"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { defaultAPIServiceOptions } from '../../../../client/SBServiceOptions.mjs';
|
|
2
|
-
import { SBService } from '../../../SBService.mjs';
|
|
3
|
-
|
|
4
|
-
// import { ProductVariantUpsertRequest } from "./ProductVariantUpsertRequest";
|
|
5
|
-
/**
|
|
6
|
-
* Service for managing product variants in the Smartbills system
|
|
7
|
-
* Provides functionality for CRUD operations on product variants as nested resources under products
|
|
8
|
-
*/
|
|
9
|
-
class ProductVariantService extends SBService {
|
|
10
|
-
/**
|
|
11
|
-
* Creates a new instance of the product variant service
|
|
12
|
-
* @param options - Service configuration options
|
|
13
|
-
*/
|
|
14
|
-
constructor(options = defaultAPIServiceOptions) {
|
|
15
|
-
super(options);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Lists product variants with pagination
|
|
19
|
-
* @param businessId - The business ID
|
|
20
|
-
* @param productId - The product ID (parent resource)
|
|
21
|
-
* @param request - List request parameters
|
|
22
|
-
* @param options - Request options
|
|
23
|
-
* @param config - Axios request configuration
|
|
24
|
-
* @returns Promise that resolves with paginated product variant data
|
|
25
|
-
*/
|
|
26
|
-
async listAsync(businessId, productId, request, options, config) {
|
|
27
|
-
return await super.listEntities(`/v1/businesses/${businessId}/products/${productId}/variants`, request, options, config);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Retrieves a product variant by ID
|
|
31
|
-
* @param businessId - The business ID
|
|
32
|
-
* @param productId - The product ID (parent resource)
|
|
33
|
-
* @param id - The variant ID
|
|
34
|
-
* @param options - Request options
|
|
35
|
-
* @param config - Axios request configuration
|
|
36
|
-
* @returns Promise that resolves with the product variant data
|
|
37
|
-
*/
|
|
38
|
-
async getByIdAsync(businessId, productId, id, options, config) {
|
|
39
|
-
return await super.getEntityById(`/v1/businesses/${businessId}/products/${productId}/variants/${id}`, options, config);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Deletes a product variant
|
|
43
|
-
* @param businessId - The business ID
|
|
44
|
-
* @param productId - The product ID (parent resource)
|
|
45
|
-
* @param id - The variant ID to delete
|
|
46
|
-
* @param options - Request options
|
|
47
|
-
* @param config - Axios request configuration
|
|
48
|
-
* @returns Promise that resolves with the deleted product variant
|
|
49
|
-
*/
|
|
50
|
-
async deleteAsync(businessId, productId, id, options, config) {
|
|
51
|
-
return await super.deleteEntity(`/v1/businesses/${businessId}/products/${productId}/variants/${id}`, options, config);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Creates a new product variant
|
|
55
|
-
* @param businessId - The business ID
|
|
56
|
-
* @param productId - The product ID (parent resource)
|
|
57
|
-
* @param request - Product variant creation request data
|
|
58
|
-
* @param options - Request options
|
|
59
|
-
* @param config - Axios request configuration
|
|
60
|
-
* @returns Promise that resolves with the created product variant
|
|
61
|
-
*/
|
|
62
|
-
async createAsync(businessId, productId, request, options, config) {
|
|
63
|
-
return await super.createEntity(`/v1/businesses/${businessId}/products/${productId}/variants`, request, options, config);
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Updates an existing product variant
|
|
67
|
-
* @param businessId - The business ID
|
|
68
|
-
* @param productId - The product ID (parent resource)
|
|
69
|
-
* @param id - The variant ID to update
|
|
70
|
-
* @param request - Product variant update request data
|
|
71
|
-
* @param options - Request options
|
|
72
|
-
* @param config - Axios request configuration
|
|
73
|
-
* @returns Promise that resolves with the updated product variant
|
|
74
|
-
*/
|
|
75
|
-
async updateAsync(businessId, productId, id, request, options, config) {
|
|
76
|
-
return await super.updateEntity(`/v1/businesses/${businessId}/products/${productId}/variants/${id}`, request, options, config);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export { ProductVariantService };
|
|
81
|
-
//# sourceMappingURL=ProductVariantService.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductVariantService.mjs","sources":["../../../../../../src/services/businesses/products/variants/ProductVariantService.ts"],"sourcesContent":["import { SBRequestOptions } from \"@/client/SBRequestOption\";\nimport {\n\tSBServiceOptions,\n\tdefaultAPIServiceOptions,\n} from \"@/client/SBServiceOptions\";\nimport { SBBatch, SBProductVariant } from \"@/entities\";\nimport {\n\tINestedBatchable,\n\tINestedCreatable,\n\tINestedDeletable,\n\tINestedListable,\n\tINestedRetrievableById,\n\tINestedUpdatable,\n} from \"@/interfaces\";\nimport { SBService } from \"@/services/SBService\";\nimport { SBList } from \"@/entities/base\";\nimport { AxiosRequestConfig } from \"axios\";\nimport { ProductVariantCreateRequest } from \"./ProductVariantCreateRequest\";\nimport { ProductVariantListRequest } from \"./ProductVariantListRequest\";\nimport { ProductVariantUpdateRequest } from \"./ProductVariantUpdateRequest\";\nimport { ProductVariantBatchUpsertRequest } from \"./ProductVariantBatchUpsertRequest\";\nimport { BatchUpsertRequest } from \"@/services/BatchUpsertRequest\";\n// import { ProductVariantUpsertRequest } from \"./ProductVariantUpsertRequest\";\n\n/**\n * Service for managing product variants in the Smartbills system\n * Provides functionality for CRUD operations on product variants as nested resources under products\n */\nexport class ProductVariantService extends SBService {\n\t/**\n\t * Creates a new instance of the product variant service\n\t * @param options - Service configuration options\n\t */\n\tpublic constructor(options: SBServiceOptions = defaultAPIServiceOptions) {\n\t\tsuper(options);\n\t}\n\n\t/**\n\t * Lists product variants with pagination\n\t * @param businessId - The business ID\n\t * @param productId - The product ID (parent resource)\n\t * @param request - List request parameters\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with paginated product variant data\n\t */\n\tpublic async listAsync(\n\t\tbusinessId: number,\n\t\tproductId: number,\n\t\trequest: ProductVariantListRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBList<SBProductVariant>> {\n\t\treturn await super.listEntities(\n\t\t\t`/v1/businesses/${businessId}/products/${productId}/variants`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Retrieves a product variant by ID\n\t * @param businessId - The business ID\n\t * @param productId - The product ID (parent resource)\n\t * @param id - The variant ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the product variant data\n\t */\n\tpublic async getByIdAsync(\n\t\tbusinessId: number,\n\t\tproductId: number,\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBProductVariant> {\n\t\treturn await super.getEntityById(\n\t\t\t`/v1/businesses/${businessId}/products/${productId}/variants/${id}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Deletes a product variant\n\t * @param businessId - The business ID\n\t * @param productId - The product ID (parent resource)\n\t * @param id - The variant ID to delete\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the deleted product variant\n\t */\n\tpublic async deleteAsync(\n\t\tbusinessId: number,\n\t\tproductId: number,\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBProductVariant> {\n\t\treturn await super.deleteEntity(\n\t\t\t`/v1/businesses/${businessId}/products/${productId}/variants/${id}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Creates a new product variant\n\t * @param businessId - The business ID\n\t * @param productId - The product ID (parent resource)\n\t * @param request - Product variant creation request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the created product variant\n\t */\n\tpublic async createAsync(\n\t\tbusinessId: number,\n\t\tproductId: number,\n\t\trequest: ProductVariantCreateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<ProductVariantCreateRequest>,\n\t): Promise<SBProductVariant> {\n\t\treturn await super.createEntity(\n\t\t\t`/v1/businesses/${businessId}/products/${productId}/variants`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Updates an existing product variant\n\t * @param businessId - The business ID\n\t * @param productId - The product ID (parent resource)\n\t * @param id - The variant ID to update\n\t * @param request - Product variant update request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the updated product variant\n\t */\n\tpublic async updateAsync(\n\t\tbusinessId: number,\n\t\tproductId: number,\n\t\tid: number,\n\t\trequest: ProductVariantUpdateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<ProductVariantUpdateRequest>,\n\t): Promise<SBProductVariant> {\n\t\treturn await super.updateEntity(\n\t\t\t`/v1/businesses/${businessId}/products/${productId}/variants/${id}`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t// /**\n\t// * Performs a batch operation on product variants\n\t// * @param businessId - The business ID\n\t// * @param productId - The product ID (parent resource)\n\t// * @param request - Batch upsert request data\n\t// * @param options - Request options\n\t// * @param config - Axios request configuration\n\t// * @returns Promise that resolves with the batch result\n\t// */\n\t// public async batch(\n\t// \tbusinessId: number,\n\t// \tproductId: number,\n\t// \trequest: BatchUpsertRequest<ProductVariantUpsertRequest>,\n\t// \toptions?: SBRequestOptions,\n\t// \tconfig?: AxiosRequestConfig<\n\t// \t\tBatchUpsertRequest<ProductVariantUpsertRequest>\n\t// \t>,\n\t// ): Promise<SBBatch<SBProductVariant>> {\n\t// \treturn await super.createEntity(\n\t// \t\t`/v1/businesses/${businessId}/products/${productId}/variants/batch`,\n\t// \t\trequest,\n\t// \t\toptions,\n\t// \t\tconfig,\n\t// \t);\n\t// }\n}\n"],"names":["ProductVariantService","SBService","constructor","options","defaultAPIServiceOptions","listAsync","businessId","productId","request","config","listEntities","getByIdAsync","id","getEntityById","deleteAsync","deleteEntity","createAsync","createEntity","updateAsync","updateEntity"],"mappings":";;;AAsBA;AAEA;;;AAGG;AACG,MAAOA,qBAAsB,SAAQC,SAAS,CAAA;AACnD;;;AAGG;AACHC,EAAAA,WAAAA,CAAmBC,UAA4BC,wBAAwB,EAAA;IACtE,KAAK,CAACD,OAAO,CAAC;AACf;AAEA;;;;;;;;AAQG;EACI,MAAME,SAASA,CACrBC,UAAkB,EAClBC,SAAiB,EACjBC,OAAkC,EAClCL,OAA0B,EAC1BM,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACC,YAAY,CAC9B,kBAAkBJ,UAAU,CAAA,UAAA,EAAaC,SAAS,CAAA,SAAA,CAAW,EAC7DC,OAAO,EACPL,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAME,YAAYA,CACxBL,UAAkB,EAClBC,SAAiB,EACjBK,EAAU,EACVT,OAA0B,EAC1BM,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACI,aAAa,CAC/B,kBAAkBP,UAAU,CAAA,UAAA,EAAaC,SAAS,CAAA,UAAA,EAAaK,EAAE,CAAE,CAAA,EACnET,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAMK,WAAWA,CACvBR,UAAkB,EAClBC,SAAiB,EACjBK,EAAU,EACVT,OAA0B,EAC1BM,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACM,YAAY,CAC9B,kBAAkBT,UAAU,CAAA,UAAA,EAAaC,SAAS,CAAA,UAAA,EAAaK,EAAE,CAAE,CAAA,EACnET,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAMO,WAAWA,CACvBV,UAAkB,EAClBC,SAAiB,EACjBC,OAAoC,EACpCL,OAA0B,EAC1BM,MAAwD,EAAA;AAExD,IAAA,OAAO,MAAM,KAAK,CAACQ,YAAY,CAC9B,kBAAkBX,UAAU,CAAA,UAAA,EAAaC,SAAS,CAAA,SAAA,CAAW,EAC7DC,OAAO,EACPL,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;;;AASG;AACI,EAAA,MAAMS,WAAWA,CACvBZ,UAAkB,EAClBC,SAAiB,EACjBK,EAAU,EACVJ,OAAoC,EACpCL,OAA0B,EAC1BM,MAAwD,EAAA;AAExD,IAAA,OAAO,MAAM,KAAK,CAACU,YAAY,CAC9B,CAAA,eAAA,EAAkBb,UAAU,CAAaC,UAAAA,EAAAA,SAAS,CAAaK,UAAAA,EAAAA,EAAE,EAAE,EACnEJ,OAAO,EACPL,OAAO,EACPM,MAAM,CACN;AACF;AA2BA;;;;"}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { defaultAPIServiceOptions } from '../../../client/SBServiceOptions.mjs';
|
|
2
|
-
import { SBService } from '../../SBService.mjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Service for managing promo codes in the Smartbills system
|
|
6
|
-
* Provides functionality for CRUD operations on promo codes
|
|
7
|
-
* @implements IRetrievableById<SBPromoCode> - Allows retrieving promo codes by ID
|
|
8
|
-
* @implements IListable<PromoCodeListRequest, SBPromoCode> - Allows listing promo codes with pagination
|
|
9
|
-
* @implements ICreatable<PromoCodeCreateRequest, SBPromoCode> - Allows creating new promo codes
|
|
10
|
-
* @implements IUpdatable<PromoCodeUpdateRequest, SBPromoCode> - Allows updating existing promo codes
|
|
11
|
-
* @implements IBatchable<PromoCodeUpsertRequest, SBPromoCode> - Allows batch operations on promo codes
|
|
12
|
-
* @implements IDeletable<SBPromoCode> - Allows deleting promo codes
|
|
13
|
-
*/
|
|
14
|
-
class PromoCodeService extends SBService {
|
|
15
|
-
/**
|
|
16
|
-
* Creates a new instance of the promo code service
|
|
17
|
-
* @param options - Service configuration options
|
|
18
|
-
*/
|
|
19
|
-
constructor(options = defaultAPIServiceOptions) {
|
|
20
|
-
super(options);
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Lists promo codes with pagination
|
|
24
|
-
* @param businessId - The business ID
|
|
25
|
-
* @param request - List request parameters
|
|
26
|
-
* @param options - Request options
|
|
27
|
-
* @param config - Axios request configuration
|
|
28
|
-
* @returns Promise that resolves with paginated promo code data
|
|
29
|
-
*/
|
|
30
|
-
async listAsync(businessId, request, options, config) {
|
|
31
|
-
return await super.listEntities(`/v1/business/${businessId}/promo-codes`, request, options, config);
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Retrieves a promo code by its ID
|
|
35
|
-
* @param businessId - The business ID
|
|
36
|
-
* @param id - The promo code ID
|
|
37
|
-
* @param options - Request options
|
|
38
|
-
* @param config - Axios request configuration
|
|
39
|
-
* @returns Promise that resolves with the promo code data
|
|
40
|
-
*/
|
|
41
|
-
async getByIdAsync(businessId, id, options, config) {
|
|
42
|
-
return await super.getEntityById(`/v1/business/${businessId}/promo-codes/${id}`, options, config);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Deletes a promo code
|
|
46
|
-
* @param businessId - The business ID
|
|
47
|
-
* @param id - The promo code ID to delete
|
|
48
|
-
* @param options - Request options
|
|
49
|
-
* @param config - Axios request configuration
|
|
50
|
-
* @returns Promise that resolves with the deleted promo code
|
|
51
|
-
*/
|
|
52
|
-
async deleteAsync(businessId, id, options, config) {
|
|
53
|
-
return await super.deleteEntity(`/v1/business/${businessId}/promo-codes/${id}`, options, config);
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Creates a new promo code
|
|
57
|
-
* @param businessId - The business ID
|
|
58
|
-
* @param request - Promo code creation request data
|
|
59
|
-
* @param options - Request options
|
|
60
|
-
* @param config - Axios request configuration
|
|
61
|
-
* @returns Promise that resolves with the created promo code
|
|
62
|
-
*/
|
|
63
|
-
async createAsync(businessId, request, options, config) {
|
|
64
|
-
return await super.createEntity(`/v1/business/${businessId}/promo-codes`, request, options, config);
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Updates an existing promo code
|
|
68
|
-
* @param businessId - The business ID
|
|
69
|
-
* @param id - The promo code ID to update
|
|
70
|
-
* @param request - Promo code update request data
|
|
71
|
-
* @param options - Request options
|
|
72
|
-
* @param config - Axios request configuration
|
|
73
|
-
* @returns Promise that resolves with the updated promo code
|
|
74
|
-
*/
|
|
75
|
-
async updateAsync(businessId, id, request, options, config) {
|
|
76
|
-
return await super.updateEntity(`/v1/business/${businessId}/promo-codes/${id}`, request, options, config);
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Performs a batch operation on promo codes
|
|
80
|
-
* @param businessId - The business ID
|
|
81
|
-
* @param request - Batch upsert request data
|
|
82
|
-
* @param options - Request options
|
|
83
|
-
* @param config - Axios request configuration
|
|
84
|
-
* @returns Promise that resolves with the batch result
|
|
85
|
-
*/
|
|
86
|
-
async batch(businessId, request, options, config) {
|
|
87
|
-
return await super.createEntity(`/v1/business/${businessId}/promo-codes/batch`, request, options, config);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export { PromoCodeService };
|
|
92
|
-
//# sourceMappingURL=PromoCodeService.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PromoCodeService.mjs","sources":["../../../../../src/services/businesses/promo-codes/PromoCodeService.ts"],"sourcesContent":["import { SBRequestOptions } from \"@/client/SBRequestOption\";\nimport {\n\tSBServiceOptions,\n\tdefaultAPIServiceOptions,\n} from \"@/client/SBServiceOptions\";\nimport { SBBatch } from \"@/entities\";\nimport { IDeletable, INestedDeletable } from \"@/interfaces/IDeletable\";\nimport { IListable, INestedListable } from \"@/interfaces/IListable\";\nimport { AxiosRequestConfig } from \"axios\";\nimport { SBPromoCode } from \"@/entities/businesses/promo-codes\";\nimport {\n\tIBatchable,\n\tICreatable,\n\tINestedBatchable,\n\tINestedCreatable,\n\tINestedRetrievableById,\n\tINestedUpdatable,\n\tIRetrievableById,\n\tIUpdatable,\n} from \"@/interfaces\";\nimport { SBService } from \"@/services/SBService\";\nimport { SBList } from \"@/entities/base\";\nimport { PromoCodeBatchUpsertRequest } from \"./PromoCodeBatchUpsertRequest\";\nimport { PromoCodeCreateRequest } from \"./PromoCodeCreateRequest\";\nimport { PromoCodeListRequest } from \"./PromoCodeListRequest\";\nimport { PromoCodeUpdateRequest } from \"./PromoCodeUpdateRequest\";\nimport { PromoCodeUpsertRequest } from \"./PromoCodeUpsertRequest\";\n\n/**\n * Service for managing promo codes in the Smartbills system\n * Provides functionality for CRUD operations on promo codes\n * @implements IRetrievableById<SBPromoCode> - Allows retrieving promo codes by ID\n * @implements IListable<PromoCodeListRequest, SBPromoCode> - Allows listing promo codes with pagination\n * @implements ICreatable<PromoCodeCreateRequest, SBPromoCode> - Allows creating new promo codes\n * @implements IUpdatable<PromoCodeUpdateRequest, SBPromoCode> - Allows updating existing promo codes\n * @implements IBatchable<PromoCodeUpsertRequest, SBPromoCode> - Allows batch operations on promo codes\n * @implements IDeletable<SBPromoCode> - Allows deleting promo codes\n */\nexport class PromoCodeService\n\textends SBService\n\timplements\n\t\tINestedRetrievableById<SBPromoCode>,\n\t\tINestedListable<PromoCodeListRequest, SBPromoCode>,\n\t\tINestedCreatable<PromoCodeCreateRequest, SBPromoCode>,\n\t\tINestedUpdatable<PromoCodeUpdateRequest, SBPromoCode>,\n\t\tINestedBatchable<PromoCodeUpsertRequest, SBPromoCode>,\n\t\tINestedDeletable<SBPromoCode>\n{\n\t/**\n\t * Creates a new instance of the promo code service\n\t * @param options - Service configuration options\n\t */\n\tpublic constructor(options: SBServiceOptions = defaultAPIServiceOptions) {\n\t\tsuper(options);\n\t}\n\n\t/**\n\t * Lists promo codes with pagination\n\t * @param businessId - The business ID\n\t * @param request - List request parameters\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with paginated promo code data\n\t */\n\tpublic async listAsync(\n\t\tbusinessId: number,\n\t\trequest: PromoCodeListRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBList<SBPromoCode>> {\n\t\treturn await super.listEntities(\n\t\t\t`/v1/business/${businessId}/promo-codes`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Retrieves a promo code by its ID\n\t * @param businessId - The business ID\n\t * @param id - The promo code ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the promo code data\n\t */\n\tpublic async getByIdAsync(\n\t\tbusinessId: number,\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBPromoCode> {\n\t\treturn await super.getEntityById(\n\t\t\t`/v1/business/${businessId}/promo-codes/${id}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Deletes a promo code\n\t * @param businessId - The business ID\n\t * @param id - The promo code ID to delete\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the deleted promo code\n\t */\n\tpublic async deleteAsync(\n\t\tbusinessId: number,\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBPromoCode> {\n\t\treturn await super.deleteEntity(\n\t\t\t`/v1/business/${businessId}/promo-codes/${id}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Creates a new promo code\n\t * @param businessId - The business ID\n\t * @param request - Promo code creation request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the created promo code\n\t */\n\tpublic async createAsync(\n\t\tbusinessId: number,\n\t\trequest: PromoCodeCreateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBPromoCode> {\n\t\treturn await super.createEntity(\n\t\t\t`/v1/business/${businessId}/promo-codes`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Updates an existing promo code\n\t * @param businessId - The business ID\n\t * @param id - The promo code ID to update\n\t * @param request - Promo code update request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the updated promo code\n\t */\n\tpublic async updateAsync(\n\t\tbusinessId: number,\n\t\tid: number,\n\t\trequest: PromoCodeUpdateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBPromoCode> {\n\t\treturn await super.updateEntity(\n\t\t\t`/v1/business/${businessId}/promo-codes/${id}`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Performs a batch operation on promo codes\n\t * @param businessId - The business ID\n\t * @param request - Batch upsert request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the batch result\n\t */\n\tpublic async batch(\n\t\tbusinessId: number,\n\t\trequest: PromoCodeBatchUpsertRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<PromoCodeBatchUpsertRequest>,\n\t): Promise<SBBatch<SBPromoCode>> {\n\t\treturn await super.createEntity(\n\t\t\t`/v1/business/${businessId}/promo-codes/batch`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n}\n"],"names":["PromoCodeService","SBService","constructor","options","defaultAPIServiceOptions","listAsync","businessId","request","config","listEntities","getByIdAsync","id","getEntityById","deleteAsync","deleteEntity","createAsync","createEntity","updateAsync","updateEntity","batch"],"mappings":";;;AA4BA;;;;;;;;;AASG;AACG,MAAOA,gBACZ,SAAQC,SAAS,CAAA;AASjB;;;AAGG;AACHC,EAAAA,WAAAA,CAAmBC,UAA4BC,wBAAwB,EAAA;IACtE,KAAK,CAACD,OAAO,CAAC;AACf;AAEA;;;;;;;AAOG;EACI,MAAME,SAASA,CACrBC,UAAkB,EAClBC,OAA6B,EAC7BJ,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACC,YAAY,CAC9B,CAAgBH,aAAAA,EAAAA,UAAU,CAAc,YAAA,CAAA,EACxCC,OAAO,EACPJ,OAAO,EACPK,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAME,YAAYA,CACxBJ,UAAkB,EAClBK,EAAU,EACVR,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACI,aAAa,CAC/B,CAAgBN,aAAAA,EAAAA,UAAU,CAAgBK,aAAAA,EAAAA,EAAE,CAAE,CAAA,EAC9CR,OAAO,EACPK,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAMK,WAAWA,CACvBP,UAAkB,EAClBK,EAAU,EACVR,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACM,YAAY,CAC9B,CAAgBR,aAAAA,EAAAA,UAAU,CAAgBK,aAAAA,EAAAA,EAAE,CAAE,CAAA,EAC9CR,OAAO,EACPK,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAMO,WAAWA,CACvBT,UAAkB,EAClBC,OAA+B,EAC/BJ,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACQ,YAAY,CAC9B,CAAgBV,aAAAA,EAAAA,UAAU,CAAc,YAAA,CAAA,EACxCC,OAAO,EACPJ,OAAO,EACPK,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAMS,WAAWA,CACvBX,UAAkB,EAClBK,EAAU,EACVJ,OAA+B,EAC/BJ,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACU,YAAY,CAC9B,gBAAgBZ,UAAU,CAAA,aAAA,EAAgBK,EAAE,CAAA,CAAE,EAC9CJ,OAAO,EACPJ,OAAO,EACPK,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAMW,KAAKA,CACjBb,UAAkB,EAClBC,OAAoC,EACpCJ,OAA0B,EAC1BK,MAAwD,EAAA;AAExD,IAAA,OAAO,MAAM,KAAK,CAACQ,YAAY,CAC9B,CAAgBV,aAAAA,EAAAA,UAAU,CAAoB,kBAAA,CAAA,EAC9CC,OAAO,EACPJ,OAAO,EACPK,MAAM,CACN;AACF;AACA;;;;"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { SBService } from '../../SBService.mjs';
|
|
2
|
-
import { defaultAPIServiceOptions } from '../../../client/SBServiceOptions.mjs';
|
|
3
|
-
|
|
4
|
-
class BusinessReviewService extends SBService {
|
|
5
|
-
/**
|
|
6
|
-
* Creates a new instance of the customer service
|
|
7
|
-
* @param options - Service configuration options
|
|
8
|
-
*/
|
|
9
|
-
constructor(options = defaultAPIServiceOptions) {
|
|
10
|
-
super(options);
|
|
11
|
-
}
|
|
12
|
-
async getByIdAsync(businessId, id, options, config) {
|
|
13
|
-
return await super.getEntityById(`/v1/business/${businessId}/reviews/${id}`, options, config);
|
|
14
|
-
}
|
|
15
|
-
async listAsync(businessId, request, options, config) {
|
|
16
|
-
return await super.listEntities(`/v1/business/${businessId}/reviews`, request, options, config);
|
|
17
|
-
}
|
|
18
|
-
async createAsync(businessId, request, options, config) {
|
|
19
|
-
return await super.createEntity(`/v1/business/${businessId}/reviews`, request, options, config);
|
|
20
|
-
}
|
|
21
|
-
async updateAsync(businessId, id, request, options, config) {
|
|
22
|
-
return this.updateEntity(`/v1/business/${businessId}/reviews/${id}`, request, options, config);
|
|
23
|
-
}
|
|
24
|
-
async deleteAsync(businessId, id, options, config) {
|
|
25
|
-
return await super.deleteEntity(`/v1/business/${businessId}/reviews/${id}`, options, config);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export { BusinessReviewService };
|
|
30
|
-
//# sourceMappingURL=BusinessReviewService.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessReviewService.mjs","sources":["../../../../../src/services/businesses/reviews/BusinessReviewService.ts"],"sourcesContent":["import { SBRequestOptions } from \"@/client/SBRequestOption\";\nimport { IListable, INestedListable } from \"@/interfaces/IListable\";\nimport { INestedUpdatable, IUpdatable } from \"@/interfaces/IUpdatable\";\nimport { AxiosRequestConfig } from \"axios\";\nimport { SBBusinessReview } from \"@/entities/businesses/reviews/SBBusinessReview\";\nimport {\n\tICreatable,\n\tIDeletable,\n\tINestedCreatable,\n\tINestedDeletable,\n\tINestedRetrievableById,\n\tIRetrievableById,\n} from \"@/interfaces\";\nimport { SBService } from \"@/services/SBService\";\nimport { SBList } from \"@/entities/base\";\nimport { BusinessReviewCreateRequest } from \"./BusinessReviewCreateRequest\";\nimport { BusinessReviewListRequest } from \"./BusinessReviewListRequest\";\nimport { BusinessReviewUpdateRequest } from \"./BusinessReviewUpdateRequest\";\nimport {\n\tdefaultAPIServiceOptions,\n\tSBServiceOptions,\n} from \"@/client/SBServiceOptions\";\n\nexport class BusinessReviewService\n\textends SBService\n\timplements\n\t\tINestedListable<BusinessReviewListRequest, SBBusinessReview>,\n\t\tINestedRetrievableById<SBBusinessReview>,\n\t\tINestedDeletable<SBBusinessReview>,\n\t\tINestedCreatable<BusinessReviewCreateRequest, SBBusinessReview>,\n\t\tINestedUpdatable<BusinessReviewUpdateRequest, SBBusinessReview>\n{\n\t/**\n\t * Creates a new instance of the customer service\n\t * @param options - Service configuration options\n\t */\n\tpublic constructor(options: SBServiceOptions = defaultAPIServiceOptions) {\n\t\tsuper(options);\n\t}\n\n\tpublic async getByIdAsync(\n\t\tbusinessId: number,\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBBusinessReview> {\n\t\treturn await super.getEntityById(\n\t\t\t`/v1/business/${businessId}/reviews/${id}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\tpublic async listAsync(\n\t\tbusinessId: number,\n\t\trequest: BusinessReviewListRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBList<SBBusinessReview>> {\n\t\treturn await super.listEntities(\n\t\t\t`/v1/business/${businessId}/reviews`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\tpublic async createAsync(\n\t\tbusinessId: number,\n\t\trequest: BusinessReviewCreateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<BusinessReviewCreateRequest>,\n\t): Promise<SBBusinessReview> {\n\t\treturn await super.createEntity(\n\t\t\t`/v1/business/${businessId}/reviews`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\tpublic async updateAsync(\n\t\tbusinessId: number,\n\t\tid: number,\n\t\trequest: BusinessReviewUpdateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBBusinessReview> {\n\t\treturn this.updateEntity(\n\t\t\t`/v1/business/${businessId}/reviews/${id}`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\tpublic async deleteAsync(\n\t\tbusinessId: number,\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBBusinessReview> {\n\t\treturn await super.deleteEntity(\n\t\t\t`/v1/business/${businessId}/reviews/${id}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n}\n"],"names":["BusinessReviewService","SBService","constructor","options","defaultAPIServiceOptions","getByIdAsync","businessId","id","config","getEntityById","listAsync","request","listEntities","createAsync","createEntity","updateAsync","updateEntity","deleteAsync","deleteEntity"],"mappings":";;;AAuBM,MAAOA,qBACZ,SAAQC,SAAS,CAAA;AAQjB;;;AAGG;AACHC,EAAAA,WAAAA,CAAmBC,UAA4BC,wBAAwB,EAAA;IACtE,KAAK,CAACD,OAAO,CAAC;AACf;EAEO,MAAME,YAAYA,CACxBC,UAAkB,EAClBC,EAAU,EACVJ,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACC,aAAa,CAC/B,CAAgBH,aAAAA,EAAAA,UAAU,CAAYC,SAAAA,EAAAA,EAAE,CAAE,CAAA,EAC1CJ,OAAO,EACPK,MAAM,CACN;AACF;EACO,MAAME,SAASA,CACrBJ,UAAkB,EAClBK,OAAkC,EAClCR,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACI,YAAY,CAC9B,CAAgBN,aAAAA,EAAAA,UAAU,CAAU,QAAA,CAAA,EACpCK,OAAO,EACPR,OAAO,EACPK,MAAM,CACN;AACF;EACO,MAAMK,WAAWA,CACvBP,UAAkB,EAClBK,OAAoC,EACpCR,OAA0B,EAC1BK,MAAwD,EAAA;AAExD,IAAA,OAAO,MAAM,KAAK,CAACM,YAAY,CAC9B,CAAgBR,aAAAA,EAAAA,UAAU,CAAU,QAAA,CAAA,EACpCK,OAAO,EACPR,OAAO,EACPK,MAAM,CACN;AACF;EACO,MAAMO,WAAWA,CACvBT,UAAkB,EAClBC,EAAU,EACVI,OAAoC,EACpCR,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,IAAI,CAACQ,YAAY,CACvB,gBAAgBV,UAAU,CAAA,SAAA,EAAYC,EAAE,CAAA,CAAE,EAC1CI,OAAO,EACPR,OAAO,EACPK,MAAM,CACN;AACF;EACO,MAAMS,WAAWA,CACvBX,UAAkB,EAClBC,EAAU,EACVJ,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACU,YAAY,CAC9B,CAAgBZ,aAAAA,EAAAA,UAAU,CAAYC,SAAAA,EAAAA,EAAE,CAAE,CAAA,EAC1CJ,OAAO,EACPK,MAAM,CACN;AACF;AACA;;;;"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { defaultAPIServiceOptions } from '../../../client/SBServiceOptions.mjs';
|
|
2
|
-
import { SBService } from '../../SBService.mjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Service for managing taxes in the Smartbills system
|
|
6
|
-
* Provides functionality for CRUD operations on taxes
|
|
7
|
-
* Implements both standard interfaces and business-specific interfaces
|
|
8
|
-
*/
|
|
9
|
-
class TaxService extends SBService {
|
|
10
|
-
/**
|
|
11
|
-
* Creates a new instance of the tax service
|
|
12
|
-
* @param options - Service configuration options
|
|
13
|
-
*/
|
|
14
|
-
constructor(options = defaultAPIServiceOptions) {
|
|
15
|
-
super(options);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Creates a new tax record
|
|
19
|
-
* @param businessId - The business ID
|
|
20
|
-
* @param request - Tax creation request data
|
|
21
|
-
* @param options - Request options
|
|
22
|
-
* @param config - Axios request configuration
|
|
23
|
-
* @returns Promise that resolves with the created tax
|
|
24
|
-
*/
|
|
25
|
-
async createAsync(businessId, request, options, config) {
|
|
26
|
-
return await this.createEntity(`/v1/businesses/${businessId}/taxes`, request, options, config);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Updates an existing tax record
|
|
30
|
-
* @param businessId - The business ID
|
|
31
|
-
* @param id - The tax ID to update
|
|
32
|
-
* @param request - Tax update request data
|
|
33
|
-
* @param options - Request options
|
|
34
|
-
* @param config - Axios request configuration
|
|
35
|
-
* @returns Promise that resolves with the updated tax
|
|
36
|
-
*/
|
|
37
|
-
async updateAsync(businessId, id, request, options, config) {
|
|
38
|
-
return await this.updateEntity(`/v1/businesses/${businessId}/taxes/${id}`, request, options, config);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Lists taxes with pagination
|
|
42
|
-
* @param businessId - The business ID
|
|
43
|
-
* @param request - List request parameters
|
|
44
|
-
* @param options - Request options
|
|
45
|
-
* @param config - Axios request configuration
|
|
46
|
-
* @returns Promise that resolves with paginated tax data
|
|
47
|
-
*/
|
|
48
|
-
async listAsync(businessId, request, options, config) {
|
|
49
|
-
return await this.listEntities(`/v1/businesses/${businessId}/taxes`, request, options, config);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Retrieves a tax by its ID
|
|
53
|
-
* @param businessId - The business ID
|
|
54
|
-
* @param id - The tax ID
|
|
55
|
-
* @param options - Request options
|
|
56
|
-
* @param config - Axios request configuration
|
|
57
|
-
* @returns Promise that resolves with the tax data
|
|
58
|
-
*/
|
|
59
|
-
async getByIdAsync(businessId, id, options, config) {
|
|
60
|
-
return await this.getEntityById(`/v1/businesses/${businessId}/taxes/${id}`, options, config);
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Deletes a tax record
|
|
64
|
-
* @param businessId - The business ID
|
|
65
|
-
* @param id - The tax ID to delete
|
|
66
|
-
* @param options - Request options
|
|
67
|
-
* @param config - Axios request configuration
|
|
68
|
-
* @returns Promise that resolves with the deleted tax
|
|
69
|
-
*/
|
|
70
|
-
async deleteAsync(businessId, id, options, config) {
|
|
71
|
-
return await this.deleteEntity(`/v1/businesses/${businessId}/taxes/${id}`, options, config);
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Performs a batch operation on taxes
|
|
75
|
-
* @param businessId - The business ID
|
|
76
|
-
* @param request - Batch upsert request data
|
|
77
|
-
* @param options - Request options
|
|
78
|
-
* @param config - Axios request configuration
|
|
79
|
-
* @returns Promise that resolves with the batch result
|
|
80
|
-
*/
|
|
81
|
-
async batch(businessId, request, options, config) {
|
|
82
|
-
return await this.createEntity(`/v1/businesses/${businessId}/taxes/batch`, request, options, config);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export { TaxService };
|
|
87
|
-
//# sourceMappingURL=TaxService.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TaxService.mjs","sources":["../../../../../src/services/businesses/taxes/TaxService.ts"],"sourcesContent":["import { SBRequestOptions } from \"@/client/SBRequestOption\";\nimport {\n\tSBServiceOptions,\n\tdefaultAPIServiceOptions,\n} from \"@/client/SBServiceOptions\";\nimport { SBBatch, SBTax } from \"@/entities\";\nimport {\n\tINestedBatchable,\n\tINestedCreatable,\n\tINestedDeletable,\n\tINestedListable,\n\tINestedRetrievableById,\n\tINestedUpdatable,\n} from \"@/interfaces\";\nimport { SBList } from \"@/entities/base\";\nimport { SBService } from \"../../SBService\";\nimport { TaxBatchUpsertRequest } from \"./TaxBatchUpsertRequest\";\nimport { TaxCreateRequest } from \"./TaxCreateRequest\";\nimport { TaxListRequest } from \"./TaxListRequest\";\nimport { TaxUpdateRequest } from \"./TaxUpdateRequest\";\nimport { TaxUpsertRequest } from \"./TaxUpsertRequest\";\nimport { AxiosRequestConfig } from \"axios\";\n\n/**\n * Service for managing taxes in the Smartbills system\n * Provides functionality for CRUD operations on taxes\n * Implements both standard interfaces and business-specific interfaces\n */\nexport class TaxService\n\textends SBService\n\timplements\n\t\tINestedListable<TaxListRequest, SBTax>,\n\t\tINestedRetrievableById<SBTax>,\n\t\tINestedCreatable<TaxCreateRequest, SBTax>,\n\t\tINestedUpdatable<TaxUpdateRequest, SBTax>,\n\t\tINestedBatchable<TaxUpsertRequest, SBTax>,\n\t\tINestedDeletable<SBTax>\n{\n\t/**\n\t * Creates a new instance of the tax service\n\t * @param options - Service configuration options\n\t */\n\tpublic constructor(options: SBServiceOptions = defaultAPIServiceOptions) {\n\t\tsuper(options);\n\t}\n\n\t/**\n\t * Creates a new tax record\n\t * @param businessId - The business ID\n\t * @param request - Tax creation request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the created tax\n\t */\n\tpublic async createAsync(\n\t\tbusinessId: number,\n\t\trequest: TaxCreateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<TaxCreateRequest>,\n\t): Promise<SBTax> {\n\t\treturn await this.createEntity(\n\t\t\t`/v1/businesses/${businessId}/taxes`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Updates an existing tax record\n\t * @param businessId - The business ID\n\t * @param id - The tax ID to update\n\t * @param request - Tax update request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the updated tax\n\t */\n\tpublic async updateAsync(\n\t\tbusinessId: number,\n\t\tid: number,\n\t\trequest: TaxUpdateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<TaxUpdateRequest>,\n\t): Promise<SBTax> {\n\t\treturn await this.updateEntity(\n\t\t\t`/v1/businesses/${businessId}/taxes/${id}`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Lists taxes with pagination\n\t * @param businessId - The business ID\n\t * @param request - List request parameters\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with paginated tax data\n\t */\n\tpublic async listAsync(\n\t\tbusinessId: number,\n\t\trequest: TaxListRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBList<SBTax>> {\n\t\treturn await this.listEntities(\n\t\t\t`/v1/businesses/${businessId}/taxes`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Retrieves a tax by its ID\n\t * @param businessId - The business ID\n\t * @param id - The tax ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the tax data\n\t */\n\tpublic async getByIdAsync(\n\t\tbusinessId: number,\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBTax> {\n\t\treturn await this.getEntityById(\n\t\t\t`/v1/businesses/${businessId}/taxes/${id}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Deletes a tax record\n\t * @param businessId - The business ID\n\t * @param id - The tax ID to delete\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the deleted tax\n\t */\n\tpublic async deleteAsync(\n\t\tbusinessId: number,\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBTax> {\n\t\treturn await this.deleteEntity(\n\t\t\t`/v1/businesses/${businessId}/taxes/${id}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Performs a batch operation on taxes\n\t * @param businessId - The business ID\n\t * @param request - Batch upsert request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the batch result\n\t */\n\tpublic async batch(\n\t\tbusinessId: number,\n\t\trequest: TaxBatchUpsertRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<TaxBatchUpsertRequest>,\n\t): Promise<SBBatch<SBTax>> {\n\t\treturn await this.createEntity(\n\t\t\t`/v1/businesses/${businessId}/taxes/batch`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n}\n"],"names":["TaxService","SBService","constructor","options","defaultAPIServiceOptions","createAsync","businessId","request","config","createEntity","updateAsync","id","updateEntity","listAsync","listEntities","getByIdAsync","getEntityById","deleteAsync","deleteEntity","batch"],"mappings":";;;AAuBA;;;;AAIG;AACG,MAAOA,UACZ,SAAQC,SAAS,CAAA;AASjB;;;AAGG;AACHC,EAAAA,WAAAA,CAAmBC,UAA4BC,wBAAwB,EAAA;IACtE,KAAK,CAACD,OAAO,CAAC;AACf;AAEA;;;;;;;AAOG;EACI,MAAME,WAAWA,CACvBC,UAAkB,EAClBC,OAAyB,EACzBJ,OAA0B,EAC1BK,MAA6C,EAAA;AAE7C,IAAA,OAAO,MAAM,IAAI,CAACC,YAAY,CAC7B,CAAkBH,eAAAA,EAAAA,UAAU,CAAQ,MAAA,CAAA,EACpCC,OAAO,EACPJ,OAAO,EACPK,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAME,WAAWA,CACvBJ,UAAkB,EAClBK,EAAU,EACVJ,OAAyB,EACzBJ,OAA0B,EAC1BK,MAA6C,EAAA;AAE7C,IAAA,OAAO,MAAM,IAAI,CAACI,YAAY,CAC7B,kBAAkBN,UAAU,CAAA,OAAA,EAAUK,EAAE,CAAA,CAAE,EAC1CJ,OAAO,EACPJ,OAAO,EACPK,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAMK,SAASA,CACrBP,UAAkB,EAClBC,OAAuB,EACvBJ,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,IAAI,CAACM,YAAY,CAC7B,CAAkBR,eAAAA,EAAAA,UAAU,CAAQ,MAAA,CAAA,EACpCC,OAAO,EACPJ,OAAO,EACPK,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAMO,YAAYA,CACxBT,UAAkB,EAClBK,EAAU,EACVR,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,IAAI,CAACQ,aAAa,CAC9B,CAAkBV,eAAAA,EAAAA,UAAU,CAAUK,OAAAA,EAAAA,EAAE,CAAE,CAAA,EAC1CR,OAAO,EACPK,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAMS,WAAWA,CACvBX,UAAkB,EAClBK,EAAU,EACVR,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,IAAI,CAACU,YAAY,CAC7B,CAAkBZ,eAAAA,EAAAA,UAAU,CAAUK,OAAAA,EAAAA,EAAE,CAAE,CAAA,EAC1CR,OAAO,EACPK,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAMW,KAAKA,CACjBb,UAAkB,EAClBC,OAA8B,EAC9BJ,OAA0B,EAC1BK,MAAkD,EAAA;AAElD,IAAA,OAAO,MAAM,IAAI,CAACC,YAAY,CAC7B,CAAkBH,eAAAA,EAAAA,UAAU,CAAc,YAAA,CAAA,EAC1CC,OAAO,EACPJ,OAAO,EACPK,MAAM,CACN;AACF;AACA;;;;"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { SBService } from '../../../SBService.mjs';
|
|
2
|
-
import { defaultAPIServiceOptions } from '../../../../client/SBServiceOptions.mjs';
|
|
3
|
-
|
|
4
|
-
class TeamMemberInvitationService extends SBService {
|
|
5
|
-
constructor(options = defaultAPIServiceOptions) {
|
|
6
|
-
super(options);
|
|
7
|
-
}
|
|
8
|
-
async getByIdAsync(businessId, id, options, config) {
|
|
9
|
-
return await super.getEntityById(`/v1/businesses/${businessId}/invitations/${id}`, options, config);
|
|
10
|
-
}
|
|
11
|
-
async listAsync(businessId, request, options, config) {
|
|
12
|
-
return await super.listEntities(`/v1/businesses/${businessId}/invitations`, request, options, config);
|
|
13
|
-
}
|
|
14
|
-
async createAsync(businessId, request, options, config) {
|
|
15
|
-
return await super.createEntity(`/v1/businesses/${businessId}/invitations`, request, options, config);
|
|
16
|
-
}
|
|
17
|
-
async deleteAsync(businessId, id, options, config) {
|
|
18
|
-
return await super.deleteEntity(`/v1/businesses/${businessId}/invitations/${id}`, options, config);
|
|
19
|
-
}
|
|
20
|
-
async listPending(businessId, options, config) {
|
|
21
|
-
return await super.listEntities(`/v1/businesses/${businessId}/invitations/pending`, null, options, config);
|
|
22
|
-
}
|
|
23
|
-
async accept(businessId, id, request, options, config) {
|
|
24
|
-
return await super.updateEntity(`/v1/businesses/${businessId}/invitations/${id}/accept`, request, options, config);
|
|
25
|
-
}
|
|
26
|
-
async decline(businessId, id, request, options, config) {
|
|
27
|
-
return await super.updateEntity(`/v1/businesses/${businessId}/invitations/${id}/refuse`, request, options, config);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { TeamMemberInvitationService };
|
|
32
|
-
//# sourceMappingURL=TeamMemberInvitationService.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TeamMemberInvitationService.mjs","sources":["../../../../../../src/services/businesses/team/invitations/TeamMemberInvitationService.ts"],"sourcesContent":["import { SBRequestOptions } from \"@/client/SBRequestOption\";\r\nimport { AxiosRequestConfig } from \"axios\";\r\nimport { SBService } from \"@/services/SBService\";\r\nimport { INestedListable, INestedRetrievableById } from \"@/interfaces\";\r\nimport { SBList, SBTeamMemberInvitation, SBTeamMember } from \"@/entities\";\r\nimport { TeamMemberInvitationListRequest } from \"./TeamMemberInvitationListRequest\";\r\nimport {\r\n\tdefaultAPIServiceOptions,\r\n\tSBServiceOptions,\r\n} from \"@/client/SBServiceOptions\";\r\nimport { TeamMemberInvitationCreateRequest } from \"./TeamMemberInvitationCreateRequest\";\r\nimport { TeamMemberInvitationResponseRequest } from \"./TeamMemberInvitationResponseRequest\";\r\n\r\nexport class TeamMemberInvitationService\r\n\textends SBService\r\n\timplements\r\n\t\tINestedRetrievableById<SBTeamMemberInvitation>,\r\n\t\tINestedListable<TeamMemberInvitationListRequest, SBTeamMemberInvitation>\r\n{\r\n\tpublic constructor(options: SBServiceOptions = defaultAPIServiceOptions) {\r\n\t\tsuper(options);\r\n\t}\r\n\r\n\tpublic async getByIdAsync(\r\n\t\tbusinessId: number,\r\n\t\tid: number,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig,\r\n\t): Promise<SBTeamMemberInvitation> {\r\n\t\treturn await super.getEntityById(\r\n\t\t\t`/v1/businesses/${businessId}/invitations/${id}`,\r\n\t\t\toptions,\r\n\t\t\tconfig,\r\n\t\t);\r\n\t}\r\n\r\n\tpublic async listAsync(\r\n\t\tbusinessId: number,\r\n\t\trequest: TeamMemberInvitationListRequest,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig,\r\n\t): Promise<SBList<SBTeamMemberInvitation>> {\r\n\t\treturn await super.listEntities(\r\n\t\t\t`/v1/businesses/${businessId}/invitations`,\r\n\t\t\trequest,\r\n\t\t\toptions,\r\n\t\t\tconfig,\r\n\t\t);\r\n\t}\r\n\r\n\tpublic async createAsync(\r\n\t\tbusinessId: number,\r\n\t\trequest: TeamMemberInvitationCreateRequest,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig,\r\n\t): Promise<SBTeamMemberInvitation> {\r\n\t\treturn await super.createEntity(\r\n\t\t\t`/v1/businesses/${businessId}/invitations`,\r\n\t\t\trequest,\r\n\t\t\toptions,\r\n\t\t\tconfig,\r\n\t\t);\r\n\t}\r\n\r\n\tpublic async deleteAsync(\r\n\t\tbusinessId: number,\r\n\t\tid: number,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig,\r\n\t): Promise<SBTeamMemberInvitation> {\r\n\t\treturn await super.deleteEntity(\r\n\t\t\t`/v1/businesses/${businessId}/invitations/${id}`,\r\n\t\t\toptions,\r\n\t\t\tconfig,\r\n\t\t);\r\n\t}\r\n\r\n\tpublic async listPending(\r\n\t\tbusinessId: number,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig,\r\n\t): Promise<SBList<SBTeamMemberInvitation>> {\r\n\t\treturn await super.listEntities(\r\n\t\t\t`/v1/businesses/${businessId}/invitations/pending`,\r\n\t\t\tnull,\r\n\t\t\toptions,\r\n\t\t\tconfig,\r\n\t\t);\r\n\t}\r\n\r\n\tpublic async accept(\r\n\t\tbusinessId: number,\r\n\t\tid: number,\r\n\t\trequest: TeamMemberInvitationResponseRequest,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig,\r\n\t): Promise<SBTeamMemberInvitation> {\r\n\t\treturn await super.updateEntity(\r\n\t\t\t`/v1/businesses/${businessId}/invitations/${id}/accept`,\r\n\t\t\trequest,\r\n\t\t\toptions,\r\n\t\t\tconfig,\r\n\t\t);\r\n\t}\r\n\r\n\tpublic async decline(\r\n\t\tbusinessId: number,\r\n\t\tid: number,\r\n\t\trequest: TeamMemberInvitationResponseRequest,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig,\r\n\t): Promise<SBTeamMemberInvitation> {\r\n\t\treturn await super.updateEntity(\r\n\t\t\t`/v1/businesses/${businessId}/invitations/${id}/refuse`,\r\n\t\t\trequest,\r\n\t\t\toptions,\r\n\t\t\tconfig,\r\n\t\t);\r\n\t}\r\n}\r\n"],"names":["TeamMemberInvitationService","SBService","constructor","options","defaultAPIServiceOptions","getByIdAsync","businessId","id","config","getEntityById","listAsync","request","listEntities","createAsync","createEntity","deleteAsync","deleteEntity","listPending","accept","updateEntity","decline"],"mappings":";;;AAaM,MAAOA,2BACZ,SAAQC,SAAS,CAAA;AAKjBC,EAAAA,WAAAA,CAAmBC,UAA4BC,wBAAwB,EAAA;IACtE,KAAK,CAACD,OAAO,CAAC;AACf;EAEO,MAAME,YAAYA,CACxBC,UAAkB,EAClBC,EAAU,EACVJ,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACC,aAAa,CAC/B,CAAkBH,eAAAA,EAAAA,UAAU,CAAgBC,aAAAA,EAAAA,EAAE,CAAE,CAAA,EAChDJ,OAAO,EACPK,MAAM,CACN;AACF;EAEO,MAAME,SAASA,CACrBJ,UAAkB,EAClBK,OAAwC,EACxCR,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACI,YAAY,CAC9B,CAAkBN,eAAAA,EAAAA,UAAU,CAAc,YAAA,CAAA,EAC1CK,OAAO,EACPR,OAAO,EACPK,MAAM,CACN;AACF;EAEO,MAAMK,WAAWA,CACvBP,UAAkB,EAClBK,OAA0C,EAC1CR,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACM,YAAY,CAC9B,CAAkBR,eAAAA,EAAAA,UAAU,CAAc,YAAA,CAAA,EAC1CK,OAAO,EACPR,OAAO,EACPK,MAAM,CACN;AACF;EAEO,MAAMO,WAAWA,CACvBT,UAAkB,EAClBC,EAAU,EACVJ,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACQ,YAAY,CAC9B,CAAkBV,eAAAA,EAAAA,UAAU,CAAgBC,aAAAA,EAAAA,EAAE,CAAE,CAAA,EAChDJ,OAAO,EACPK,MAAM,CACN;AACF;AAEO,EAAA,MAAMS,WAAWA,CACvBX,UAAkB,EAClBH,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACI,YAAY,CAC9B,CAAkBN,eAAAA,EAAAA,UAAU,CAAsB,oBAAA,CAAA,EAClD,IAAI,EACJH,OAAO,EACPK,MAAM,CACN;AACF;EAEO,MAAMU,MAAMA,CAClBZ,UAAkB,EAClBC,EAAU,EACVI,OAA4C,EAC5CR,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACW,YAAY,CAC9B,kBAAkBb,UAAU,CAAA,aAAA,EAAgBC,EAAE,CAAA,OAAA,CAAS,EACvDI,OAAO,EACPR,OAAO,EACPK,MAAM,CACN;AACF;EAEO,MAAMY,OAAOA,CACnBd,UAAkB,EAClBC,EAAU,EACVI,OAA4C,EAC5CR,OAA0B,EAC1BK,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACW,YAAY,CAC9B,kBAAkBb,UAAU,CAAA,aAAA,EAAgBC,EAAE,CAAA,OAAA,CAAS,EACvDI,OAAO,EACPR,OAAO,EACPK,MAAM,CACN;AACF;AACA;;;;"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import _defineProperty from '../../../../node_modules/@babel/runtime/helpers/esm/defineProperty.mjs';
|
|
2
|
-
import { defaultAPIServiceOptions } from '../../../../client/SBServiceOptions.mjs';
|
|
3
|
-
import { SBService } from '../../../SBService.mjs';
|
|
4
|
-
import { TeamMemberInvitationService } from '../invitations/TeamMemberInvitationService.mjs';
|
|
5
|
-
|
|
6
|
-
class TeamMemberService extends SBService {
|
|
7
|
-
constructor(options = defaultAPIServiceOptions) {
|
|
8
|
-
super(options);
|
|
9
|
-
_defineProperty(this, "invitations", void 0);
|
|
10
|
-
this.invitations = new TeamMemberInvitationService(options);
|
|
11
|
-
}
|
|
12
|
-
async getByIdAsync(businessId, id, options, config = {}) {
|
|
13
|
-
return await super.getEntityById(`/v1/businesses/${businessId}/team-members/${id}`, options, config);
|
|
14
|
-
}
|
|
15
|
-
async listAsync(businessId, request, options, config = {}) {
|
|
16
|
-
return await super.listEntities(`/v1/businesses/${businessId}/team-members`, request, options, config);
|
|
17
|
-
}
|
|
18
|
-
async deleteAsync(businessId, id, options, config = {}) {
|
|
19
|
-
return await super.deleteEntity(`/v1/businesses/${businessId}/team-members/${id}`, options, config);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { TeamMemberService };
|
|
24
|
-
//# sourceMappingURL=TeamMemberService.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TeamMemberService.mjs","sources":["../../../../../../src/services/businesses/team/members/TeamMemberService.ts"],"sourcesContent":["import { SBRequestOptions } from \"@/client/SBRequestOption\";\r\nimport {\r\n\tSBServiceOptions,\r\n\tdefaultAPIServiceOptions,\r\n} from \"@/client/SBServiceOptions\";\r\nimport { AxiosRequestConfig } from \"axios\";\r\nimport { SBTeamMember } from \"@/entities/businesses\";\r\nimport { SBService } from \"@/services/SBService\";\r\nimport { INestedRetrievableById } from \"@/interfaces\";\r\nimport { TeamMemberListRequest } from \"./TeamMemberListRequest\";\r\nimport { SBList } from \"@/entities/base\";\r\nimport { TeamMemberInvitationService } from \"../invitations\";\r\nexport class TeamMemberService\r\n\textends SBService\r\n\timplements INestedRetrievableById<SBTeamMember>\r\n{\r\n\tpublic readonly invitations: TeamMemberInvitationService;\r\n\tpublic constructor(options: SBServiceOptions = defaultAPIServiceOptions) {\r\n\t\tsuper(options);\r\n\t\tthis.invitations = new TeamMemberInvitationService(options);\r\n\t}\r\n\r\n\tpublic async getByIdAsync(\r\n\t\tbusinessId: number,\r\n\t\tid: number,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig: AxiosRequestConfig = {},\r\n\t): Promise<SBTeamMember> {\r\n\t\treturn await super.getEntityById(\r\n\t\t\t`/v1/businesses/${businessId}/team-members/${id}`,\r\n\t\t\toptions,\r\n\t\t\tconfig,\r\n\t\t);\r\n\t}\r\n\r\n\tpublic async listAsync(\r\n\t\tbusinessId: number,\r\n\t\trequest: TeamMemberListRequest,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig: AxiosRequestConfig = {},\r\n\t): Promise<SBList<SBTeamMember>> {\r\n\t\treturn await super.listEntities(\r\n\t\t\t`/v1/businesses/${businessId}/team-members`,\r\n\t\t\trequest,\r\n\t\t\toptions,\r\n\t\t\tconfig,\r\n\t\t);\r\n\t}\r\n\r\n\tpublic async deleteAsync(\r\n\t\tbusinessId: number,\r\n\t\tid: number,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig: AxiosRequestConfig = {},\r\n\t): Promise<SBTeamMember> {\r\n\t\treturn await super.deleteEntity(\r\n\t\t\t`/v1/businesses/${businessId}/team-members/${id}`,\r\n\t\t\toptions,\r\n\t\t\tconfig,\r\n\t\t);\r\n\t}\r\n}\r\n"],"names":["TeamMemberService","SBService","constructor","options","defaultAPIServiceOptions","_defineProperty","invitations","TeamMemberInvitationService","getByIdAsync","businessId","id","config","getEntityById","listAsync","request","listEntities","deleteAsync","deleteEntity"],"mappings":";;;;;AAYM,MAAOA,iBACZ,SAAQC,SAAS,CAAA;AAIjBC,EAAAA,WAAAA,CAAmBC,UAA4BC,wBAAwB,EAAA;IACtE,KAAK,CAACD,OAAO,CAAC;IAACE,eAAA,CAAA,IAAA,EAAA,aAAA,EAAA,KAAA,CAAA,CAAA;AACf,IAAA,IAAI,CAACC,WAAW,GAAG,IAAIC,2BAA2B,CAACJ,OAAO,CAAC;AAC5D;AAEO,EAAA,MAAMK,YAAYA,CACxBC,UAAkB,EAClBC,EAAU,EACVP,OAA0B,EAC1BQ,MAAA,GAA6B,EAAE,EAAA;AAE/B,IAAA,OAAO,MAAM,KAAK,CAACC,aAAa,CAC/B,CAAkBH,eAAAA,EAAAA,UAAU,CAAiBC,cAAAA,EAAAA,EAAE,CAAE,CAAA,EACjDP,OAAO,EACPQ,MAAM,CACN;AACF;AAEO,EAAA,MAAME,SAASA,CACrBJ,UAAkB,EAClBK,OAA8B,EAC9BX,OAA0B,EAC1BQ,MAAA,GAA6B,EAAE,EAAA;AAE/B,IAAA,OAAO,MAAM,KAAK,CAACI,YAAY,CAC9B,CAAkBN,eAAAA,EAAAA,UAAU,CAAe,aAAA,CAAA,EAC3CK,OAAO,EACPX,OAAO,EACPQ,MAAM,CACN;AACF;AAEO,EAAA,MAAMK,WAAWA,CACvBP,UAAkB,EAClBC,EAAU,EACVP,OAA0B,EAC1BQ,MAAA,GAA6B,EAAE,EAAA;AAE/B,IAAA,OAAO,MAAM,KAAK,CAACM,YAAY,CAC9B,CAAkBR,eAAAA,EAAAA,UAAU,CAAiBC,cAAAA,EAAAA,EAAE,CAAE,CAAA,EACjDP,OAAO,EACPQ,MAAM,CACN;AACF;AACA;;;;"}
|