@smartbills/sdk 0.0.2-alpha.41 → 0.0.2-alpha.43
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
package/dist/esm/services/businesses/customers/payment-methods/CustomerPaymentMethodService.mjs
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { defaultAPIServiceOptions } from '../../../../client/SBServiceOptions.mjs';
|
|
2
|
-
import { SBService } from '../../../SBService.mjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Service for managing customer payment methods in the Smartbills system
|
|
6
|
-
* Provides functionality for CRUD operations on customer payment methods as nested resources under customers
|
|
7
|
-
*/
|
|
8
|
-
class CustomerPaymentMethodService extends SBService {
|
|
9
|
-
/**
|
|
10
|
-
* Creates a new instance of the customer payment method service
|
|
11
|
-
* @param options - Service configuration options
|
|
12
|
-
*/
|
|
13
|
-
constructor(options = defaultAPIServiceOptions) {
|
|
14
|
-
super(options);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Lists customer payment methods with pagination
|
|
18
|
-
* @param businessId - The business ID
|
|
19
|
-
* @param customerId - The customer 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 payment method data
|
|
24
|
-
*/
|
|
25
|
-
async listAsync(businessId, customerId, request, options, config) {
|
|
26
|
-
return await super.listEntities(`/v1/business/${businessId}/customers/${customerId}/payment-methods`, request, options, config);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Retrieves a customer payment method by ID
|
|
30
|
-
* @param businessId - The business ID
|
|
31
|
-
* @param customerId - The customer ID
|
|
32
|
-
* @param id - The payment method ID
|
|
33
|
-
* @param options - Request options
|
|
34
|
-
* @param config - Axios request configuration
|
|
35
|
-
* @returns Promise that resolves with the payment method data
|
|
36
|
-
*/
|
|
37
|
-
async getByIdAsync(businessId, customerId, id, options, config) {
|
|
38
|
-
return await super.getEntityById(`/v1/business/${businessId}/customers/${customerId}/payment-methods/${id}`, options, config);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Deletes a customer payment method
|
|
42
|
-
* @param businessId - The business ID
|
|
43
|
-
* @param customerId - The customer ID
|
|
44
|
-
* @param id - The payment method ID to delete
|
|
45
|
-
* @param options - Request options
|
|
46
|
-
* @param config - Axios request configuration
|
|
47
|
-
* @returns Promise that resolves with the deleted payment method
|
|
48
|
-
*/
|
|
49
|
-
async deleteAsync(businessId, customerId, id, options, config) {
|
|
50
|
-
return await super.deleteEntity(`/v1/business/${businessId}/customers/${customerId}/payment-methods/${id}`, options, config);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Creates a new customer payment method
|
|
54
|
-
* @param businessId - The business ID
|
|
55
|
-
* @param customerId - The customer ID
|
|
56
|
-
* @param request - Payment method creation request data
|
|
57
|
-
* @param options - Request options
|
|
58
|
-
* @param config - Axios request configuration
|
|
59
|
-
* @returns Promise that resolves with the created payment method
|
|
60
|
-
*/
|
|
61
|
-
async createAsync(businessId, customerId, request, options, config) {
|
|
62
|
-
return await super.createEntity(`/v1/business/${businessId}/customers/${customerId}/payment-methods`, request, options, config);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Updates an existing customer payment method
|
|
66
|
-
* @param businessId - The business ID
|
|
67
|
-
* @param customerId - The customer ID
|
|
68
|
-
* @param id - The payment method ID to update
|
|
69
|
-
* @param request - Payment method update request data
|
|
70
|
-
* @param options - Request options
|
|
71
|
-
* @param config - Axios request configuration
|
|
72
|
-
* @returns Promise that resolves with the updated payment method
|
|
73
|
-
*/
|
|
74
|
-
async updateAsync(businessId, customerId, id, request, options, config) {
|
|
75
|
-
return await super.updateEntity(`/v1/business/${businessId}/customers/${customerId}/payment-methods/${id}`, request, options, config);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export { CustomerPaymentMethodService };
|
|
80
|
-
//# sourceMappingURL=CustomerPaymentMethodService.mjs.map
|
package/dist/esm/services/businesses/customers/payment-methods/CustomerPaymentMethodService.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomerPaymentMethodService.mjs","sources":["../../../../../../src/services/businesses/customers/payment-methods/CustomerPaymentMethodService.ts"],"sourcesContent":["import { SBRequestOptions } from \"@/client/SBRequestOption\";\nimport {\n\tSBServiceOptions,\n\tdefaultAPIServiceOptions,\n} from \"@/client/SBServiceOptions\";\nimport { SBPaymentMethod } from \"@/entities\";\n\nimport { SBService } from \"@/services/SBService\";\nimport { SBList } from \"@/entities/base\";\nimport { AxiosRequestConfig } from \"axios\";\nimport { CustomerPaymentMethodCreateRequest } from \"./CustomerPaymentMethodCreateRequest\";\nimport { CustomerPaymentMethodListRequest } from \"./CustomerPaymentMethodListRequest\";\nimport { CustomerPaymentMethodUpdateRequest } from \"./CustomerPaymentMethodUpdateRequest\";\n\n/**\n * Service for managing customer payment methods in the Smartbills system\n * Provides functionality for CRUD operations on customer payment methods as nested resources under customers\n */\nexport class CustomerPaymentMethodService extends SBService {\n\t/**\n\t * Creates a new instance of the customer payment method 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 customer payment methods with pagination\n\t * @param businessId - The business ID\n\t * @param customerId - The customer 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 payment method data\n\t */\n\tpublic async listAsync(\n\t\tbusinessId: number,\n\t\tcustomerId: number,\n\t\trequest: CustomerPaymentMethodListRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBList<SBPaymentMethod>> {\n\t\treturn await super.listEntities(\n\t\t\t`/v1/business/${businessId}/customers/${customerId}/payment-methods`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Retrieves a customer payment method by ID\n\t * @param businessId - The business ID\n\t * @param customerId - The customer ID\n\t * @param id - The payment method ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the payment method data\n\t */\n\tpublic async getByIdAsync(\n\t\tbusinessId: number,\n\t\tcustomerId: number,\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBPaymentMethod> {\n\t\treturn await super.getEntityById(\n\t\t\t`/v1/business/${businessId}/customers/${customerId}/payment-methods/${id}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Deletes a customer payment method\n\t * @param businessId - The business ID\n\t * @param customerId - The customer ID\n\t * @param id - The payment method 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 payment method\n\t */\n\tpublic async deleteAsync(\n\t\tbusinessId: number,\n\t\tcustomerId: number,\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBPaymentMethod> {\n\t\treturn await super.deleteEntity(\n\t\t\t`/v1/business/${businessId}/customers/${customerId}/payment-methods/${id}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Creates a new customer payment method\n\t * @param businessId - The business ID\n\t * @param customerId - The customer ID\n\t * @param request - Payment method 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 payment method\n\t */\n\tpublic async createAsync(\n\t\tbusinessId: number,\n\t\tcustomerId: number,\n\t\trequest: CustomerPaymentMethodCreateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBPaymentMethod> {\n\t\treturn await super.createEntity(\n\t\t\t`/v1/business/${businessId}/customers/${customerId}/payment-methods`,\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 customer payment method\n\t * @param businessId - The business ID\n\t * @param customerId - The customer ID\n\t * @param id - The payment method ID to update\n\t * @param request - Payment method 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 payment method\n\t */\n\tpublic async updateAsync(\n\t\tbusinessId: number,\n\t\tcustomerId: number,\n\t\tid: number,\n\t\trequest: CustomerPaymentMethodUpdateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBPaymentMethod> {\n\t\treturn await super.updateEntity(\n\t\t\t`/v1/business/${businessId}/customers/${customerId}/payment-methods/${id}`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n}\n"],"names":["CustomerPaymentMethodService","SBService","constructor","options","defaultAPIServiceOptions","listAsync","businessId","customerId","request","config","listEntities","getByIdAsync","id","getEntityById","deleteAsync","deleteEntity","createAsync","createEntity","updateAsync","updateEntity"],"mappings":";;;AAcA;;;AAGG;AACG,MAAOA,4BAA6B,SAAQC,SAAS,CAAA;AAC1D;;;AAGG;AACHC,EAAAA,WAAAA,CAAmBC,UAA4BC,wBAAwB,EAAA;IACtE,KAAK,CAACD,OAAO,CAAC;AACf;AAEA;;;;;;;;AAQG;EACI,MAAME,SAASA,CACrBC,UAAkB,EAClBC,UAAkB,EAClBC,OAAyC,EACzCL,OAA0B,EAC1BM,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACC,YAAY,CAC9B,gBAAgBJ,UAAU,CAAA,WAAA,EAAcC,UAAU,CAAA,gBAAA,CAAkB,EACpEC,OAAO,EACPL,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAME,YAAYA,CACxBL,UAAkB,EAClBC,UAAkB,EAClBK,EAAU,EACVT,OAA0B,EAC1BM,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACI,aAAa,CAC/B,gBAAgBP,UAAU,CAAA,WAAA,EAAcC,UAAU,CAAA,iBAAA,EAAoBK,EAAE,CAAE,CAAA,EAC1ET,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAMK,WAAWA,CACvBR,UAAkB,EAClBC,UAAkB,EAClBK,EAAU,EACVT,OAA0B,EAC1BM,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACM,YAAY,CAC9B,gBAAgBT,UAAU,CAAA,WAAA,EAAcC,UAAU,CAAA,iBAAA,EAAoBK,EAAE,CAAE,CAAA,EAC1ET,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAMO,WAAWA,CACvBV,UAAkB,EAClBC,UAAkB,EAClBC,OAA2C,EAC3CL,OAA0B,EAC1BM,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACQ,YAAY,CAC9B,gBAAgBX,UAAU,CAAA,WAAA,EAAcC,UAAU,CAAA,gBAAA,CAAkB,EACpEC,OAAO,EACPL,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;;;AASG;AACI,EAAA,MAAMS,WAAWA,CACvBZ,UAAkB,EAClBC,UAAkB,EAClBK,EAAU,EACVJ,OAA2C,EAC3CL,OAA0B,EAC1BM,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACU,YAAY,CAC9B,CAAA,aAAA,EAAgBb,UAAU,CAAcC,WAAAA,EAAAA,UAAU,CAAoBK,iBAAAA,EAAAA,EAAE,EAAE,EAC1EJ,OAAO,EACPL,OAAO,EACPM,MAAM,CACN;AACF;AACA;;;;"}
|
|
@@ -1,157 +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 { DepartmentEmployeeService } from './Employees/DepartmentEmployeeService.mjs';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Service for managing departments in the Smartbills system
|
|
8
|
-
* Provides functionality for CRUD operations on departments and their images
|
|
9
|
-
* @implements INestedCreatable<DepartmentCreateRequest, SBDepartment> - Allows creating new departments
|
|
10
|
-
* @implements INestedUpdatable<DepartmentUpdateRequest, SBDepartment> - Allows updating existing departments
|
|
11
|
-
* @implements INestedRetrievableById<SBDepartment> - Allows retrieving departments by ID
|
|
12
|
-
* @implements INestedListable<DepartmentsListRequest, SBDepartment> - Allows listing departments with pagination
|
|
13
|
-
* @implements INestedBatchable<DepartmentBatchUpsertRequest, SBDepartment> - Allows batch operations on departments
|
|
14
|
-
* @implements INestedDeletable<SBDepartment> - Allows deleting departments
|
|
15
|
-
*/
|
|
16
|
-
class DepartmentService extends SBService {
|
|
17
|
-
/**
|
|
18
|
-
* Creates a new instance of the department service
|
|
19
|
-
* @param options - Service configuration options
|
|
20
|
-
*/
|
|
21
|
-
constructor(options = defaultAPIServiceOptions) {
|
|
22
|
-
super(options);
|
|
23
|
-
_defineProperty(this, "employees", void 0);
|
|
24
|
-
this.employees = new DepartmentEmployeeService(options);
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Creates a new department
|
|
28
|
-
* @param businessId - The business ID
|
|
29
|
-
* @param request - Department creation request data
|
|
30
|
-
* @param options - Request options
|
|
31
|
-
* @param config - Axios request configuration
|
|
32
|
-
* @returns Promise that resolves with the created department
|
|
33
|
-
*/
|
|
34
|
-
async createAsync(businessId, request, options, config) {
|
|
35
|
-
return await this.createEntity(`/v1/businesses/${businessId}/departments`, request, options, config);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Updates an existing department
|
|
39
|
-
* @param businessId - The business ID
|
|
40
|
-
* @param id - The department ID to update
|
|
41
|
-
* @param request - Department update request data
|
|
42
|
-
* @param options - Request options
|
|
43
|
-
* @param config - Axios request configuration
|
|
44
|
-
* @returns Promise that resolves with the updated department
|
|
45
|
-
*/
|
|
46
|
-
async updateAsync(businessId, id, request, options, config) {
|
|
47
|
-
return await this.updateEntity(`/v1/businesses/${businessId}/departments/${id}`, request, options, config);
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Lists departments with pagination
|
|
51
|
-
* @param businessId - The business ID
|
|
52
|
-
* @param request - List request parameters
|
|
53
|
-
* @param options - Request options
|
|
54
|
-
* @param config - Axios request configuration
|
|
55
|
-
* @returns Promise that resolves with paginated department data
|
|
56
|
-
*/
|
|
57
|
-
async listAsync(businessId, request, options, config) {
|
|
58
|
-
return await this.listEntities(`/v1/businesses/${businessId}/departments`, request, options, config);
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Retrieves a department by its ID
|
|
62
|
-
* @param businessId - The business ID
|
|
63
|
-
* @param id - The department ID
|
|
64
|
-
* @param options - Request options
|
|
65
|
-
* @param config - Axios request configuration
|
|
66
|
-
* @returns Promise that resolves with the department data
|
|
67
|
-
*/
|
|
68
|
-
async getByIdAsync(businessId, id, options, config) {
|
|
69
|
-
return await this.getEntityById(`/v1/businesses/${businessId}/departments/${id}`, options, config);
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Deletes a department
|
|
73
|
-
* @param businessId - The business ID
|
|
74
|
-
* @param id - The department ID to delete
|
|
75
|
-
* @param options - Request options
|
|
76
|
-
* @param config - Axios request configuration
|
|
77
|
-
* @returns Promise that resolves with the deleted department
|
|
78
|
-
*/
|
|
79
|
-
async deleteAsync(businessId, id, options, config) {
|
|
80
|
-
return await this.deleteEntity(`/v1/businesses/${businessId}/departments/${id}`, options, config);
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Performs a batch operation on departments
|
|
84
|
-
* @param businessId - The business ID
|
|
85
|
-
* @param request - Batch upsert request data
|
|
86
|
-
* @param options - Request options
|
|
87
|
-
* @param config - Axios request configuration
|
|
88
|
-
* @returns Promise that resolves with the batch result
|
|
89
|
-
*/
|
|
90
|
-
async batch(businessId, request, options, config) {
|
|
91
|
-
return await this.createEntity(`/v1/businesses/${businessId}/departments/batch`, request, options, config);
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Sets the approver for a department
|
|
95
|
-
* @param businessId - The business ID
|
|
96
|
-
* @param departmentId - The department ID
|
|
97
|
-
* @param approverId - The ID of the user to set as approver
|
|
98
|
-
* @param options - Request options
|
|
99
|
-
* @param config - Axios request configuration
|
|
100
|
-
* @returns Promise that resolves with the updated department
|
|
101
|
-
*/
|
|
102
|
-
async setApprover(businessId, departmentId, approverId, options, config) {
|
|
103
|
-
return await this.updateEntity(`/v1/businesses/${businessId}/departments/${departmentId}/approver`, {
|
|
104
|
-
approverId
|
|
105
|
-
}, options, config);
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Gets employees assigned to a department
|
|
109
|
-
* @param businessId - The business ID
|
|
110
|
-
* @param departmentId - The department ID
|
|
111
|
-
* @param options - Request options
|
|
112
|
-
* @param config - Axios request configuration
|
|
113
|
-
* @returns Promise that resolves with the list of department employees
|
|
114
|
-
*/
|
|
115
|
-
async listEmployees(businessId, departmentId, request, options, config) {
|
|
116
|
-
return await this.employees.listAsync(businessId, departmentId, request, options, config);
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Assigns an employee to a department
|
|
120
|
-
* @param businessId - The business ID
|
|
121
|
-
* @param departmentId - The department ID
|
|
122
|
-
* @param request - The employee assignment request data
|
|
123
|
-
* @param options - Request options
|
|
124
|
-
* @param config - Axios request configuration
|
|
125
|
-
* @returns Promise that resolves with the created department employee relationship
|
|
126
|
-
*/
|
|
127
|
-
async assignEmployees(businessId, departmentId, request, options, config) {
|
|
128
|
-
return await this.employees.createAsync(businessId, departmentId, request, options, config);
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Removes an employee from a department
|
|
132
|
-
* @param businessId - The business ID
|
|
133
|
-
* @param departmentId - The department ID
|
|
134
|
-
* @param employeeId - The employee ID to remove
|
|
135
|
-
* @param options - Request options
|
|
136
|
-
* @param config - Axios request configuration
|
|
137
|
-
* @returns Promise that resolves with the deleted department employee relationship
|
|
138
|
-
*/
|
|
139
|
-
async removeEmployee(businessId, departmentId, employeeId, options, config) {
|
|
140
|
-
return await this.deleteEntity(`/v1/businesses/${businessId}/departments/${departmentId}/employees/${employeeId}`, options, config);
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Updates employees assigneed to a department
|
|
144
|
-
* @param businessId - The business ID
|
|
145
|
-
* @param departmentId - The department ID
|
|
146
|
-
* @param request - The update request data
|
|
147
|
-
* @param options - Request options
|
|
148
|
-
* @param config - Axios request configuration
|
|
149
|
-
* @returns Promise that resolves with the updated department employee relationship
|
|
150
|
-
*/
|
|
151
|
-
async updateEmployees(businessId, departmentId, request, options, config) {
|
|
152
|
-
return await this.employees.updateAsync(businessId, departmentId, request, options, config);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export { DepartmentService };
|
|
157
|
-
//# sourceMappingURL=DepartmentService.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DepartmentService.mjs","sources":["../../../../../src/services/businesses/departments/DepartmentService.ts"],"sourcesContent":["import { SBRequestOptions } from \"@/client/SBRequestOption\";\r\nimport {\r\n\tSBServiceOptions,\r\n\tdefaultAPIServiceOptions,\r\n} from \"@/client/SBServiceOptions\";\r\nimport { SBBatch, SBDepartment, SBDepartmentTeamMember } from \"@/entities\";\r\n\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 { AxiosRequestConfig } from \"axios\";\r\nimport { DepartmentBatchUpsertRequest } from \"./DepartmentBatchUpsertRequest\";\r\nimport { DepartmentCreateRequest } from \"./DepartmentCreateRequest\";\r\nimport { DepartmentUpdateRequest } from \"./DepartmentUpdateRequest\";\r\nimport { DepartmentsListRequest } from \"./DepartmentsListRequest\";\r\nimport { SBList } from \"@/entities/base\";\r\nimport { DepartmentEmployeeService } from \"./Employees/DepartmentEmployeeService\";\r\nimport { DepartmentEmployeeCreateRequest } from \"./Employees/DepartmentEmployeeCreateRequest\";\r\nimport { DepartmentEmployeeUpdateRequest } from \"./Employees/DepartmentEmployeeUpdateRequest\";\r\nimport { DepartmentEmployeeListRequest } from \"./Employees/DepartmentEmployeeListRequest\";\r\nimport { DepartmentUpsertRequest } from \"./DepartmentUpsertRequest\";\r\n\r\n/**\r\n * Service for managing departments in the Smartbills system\r\n * Provides functionality for CRUD operations on departments and their images\r\n * @implements INestedCreatable<DepartmentCreateRequest, SBDepartment> - Allows creating new departments\r\n * @implements INestedUpdatable<DepartmentUpdateRequest, SBDepartment> - Allows updating existing departments\r\n * @implements INestedRetrievableById<SBDepartment> - Allows retrieving departments by ID\r\n * @implements INestedListable<DepartmentsListRequest, SBDepartment> - Allows listing departments with pagination\r\n * @implements INestedBatchable<DepartmentBatchUpsertRequest, SBDepartment> - Allows batch operations on departments\r\n * @implements INestedDeletable<SBDepartment> - Allows deleting departments\r\n */\r\nexport class DepartmentService\r\n\textends SBService\r\n\timplements\r\n\t\tINestedCreatable<DepartmentCreateRequest, SBDepartment>,\r\n\t\tINestedUpdatable<DepartmentUpdateRequest, SBDepartment>,\r\n\t\tINestedRetrievableById<SBDepartment>,\r\n\t\tINestedListable<DepartmentsListRequest, SBDepartment>,\r\n\t\tINestedBatchable<DepartmentUpsertRequest, SBDepartment>,\r\n\t\tINestedDeletable<SBDepartment>\r\n{\r\n\tpublic readonly employees: DepartmentEmployeeService;\r\n\r\n\t/**\r\n\t * Creates a new instance of the department service\r\n\t * @param options - Service configuration options\r\n\t */\r\n\tconstructor(options: SBServiceOptions = defaultAPIServiceOptions) {\r\n\t\tsuper(options);\r\n\t\tthis.employees = new DepartmentEmployeeService(options);\r\n\t}\r\n\r\n\t/**\r\n\t * Creates a new department\r\n\t * @param businessId - The business ID\r\n\t * @param request - Department 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 department\r\n\t */\r\n\tpublic async createAsync(\r\n\t\tbusinessId: number,\r\n\t\trequest: DepartmentCreateRequest,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig<DepartmentCreateRequest>,\r\n\t): Promise<SBDepartment> {\r\n\t\treturn await this.createEntity(\r\n\t\t\t`/v1/businesses/${businessId}/departments`,\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 department\r\n\t * @param businessId - The business ID\r\n\t * @param id - The department ID to update\r\n\t * @param request - Department 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 department\r\n\t */\r\n\tpublic async updateAsync(\r\n\t\tbusinessId: number,\r\n\t\tid: number,\r\n\t\trequest: DepartmentUpdateRequest,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig<DepartmentUpdateRequest>,\r\n\t): Promise<SBDepartment> {\r\n\t\treturn await this.updateEntity(\r\n\t\t\t`/v1/businesses/${businessId}/departments/${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 * Lists departments with pagination\r\n\t * @param businessId - The business 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 department data\r\n\t */\r\n\tpublic async listAsync(\r\n\t\tbusinessId: number,\r\n\t\trequest: DepartmentsListRequest,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig,\r\n\t): Promise<SBList<SBDepartment>> {\r\n\t\treturn await this.listEntities(\r\n\t\t\t`/v1/businesses/${businessId}/departments`,\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 department by its ID\r\n\t * @param businessId - The business ID\r\n\t * @param id - The department 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 department data\r\n\t */\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<SBDepartment> {\r\n\t\treturn await this.getEntityById(\r\n\t\t\t`/v1/businesses/${businessId}/departments/${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 department\r\n\t * @param businessId - The business ID\r\n\t * @param id - The department 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 department\r\n\t */\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<SBDepartment> {\r\n\t\treturn await this.deleteEntity(\r\n\t\t\t`/v1/businesses/${businessId}/departments/${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 * Performs a batch operation on departments\r\n\t * @param businessId - The business 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\trequest: DepartmentBatchUpsertRequest,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig<DepartmentBatchUpsertRequest>,\r\n\t): Promise<SBBatch<SBDepartment>> {\r\n\t\treturn await this.createEntity(\r\n\t\t\t`/v1/businesses/${businessId}/departments/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\t/**\r\n\t * Sets the approver for a department\r\n\t * @param businessId - The business ID\r\n\t * @param departmentId - The department ID\r\n\t * @param approverId - The ID of the user to set as approver\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 department\r\n\t */\r\n\tpublic async setApprover(\r\n\t\tbusinessId: number,\r\n\t\tdepartmentId: number,\r\n\t\tapproverId: number,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig,\r\n\t): Promise<SBDepartment> {\r\n\t\treturn await this.updateEntity(\r\n\t\t\t`/v1/businesses/${businessId}/departments/${departmentId}/approver`,\r\n\t\t\t{ approverId },\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 * Gets employees assigned to a department\r\n\t * @param businessId - The business ID\r\n\t * @param departmentId - The department 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 list of department employees\r\n\t */\r\n\tpublic async listEmployees(\r\n\t\tbusinessId: number,\r\n\t\tdepartmentId: number,\r\n\t\trequest: DepartmentEmployeeListRequest,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig,\r\n\t): Promise<SBList<SBDepartmentTeamMember>> {\r\n\t\treturn await this.employees.listAsync(\r\n\t\t\tbusinessId,\r\n\t\t\tdepartmentId,\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 * Assigns an employee to a department\r\n\t * @param businessId - The business ID\r\n\t * @param departmentId - The department ID\r\n\t * @param request - The employee assignment 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 department employee relationship\r\n\t */\r\n\tpublic async assignEmployees(\r\n\t\tbusinessId: number,\r\n\t\tdepartmentId: number,\r\n\t\trequest: DepartmentEmployeeCreateRequest,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig<DepartmentEmployeeCreateRequest>,\r\n\t): Promise<SBDepartmentTeamMember> {\r\n\t\treturn await this.employees.createAsync(\r\n\t\t\tbusinessId,\r\n\t\t\tdepartmentId,\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 * Removes an employee from a department\r\n\t * @param businessId - The business ID\r\n\t * @param departmentId - The department ID\r\n\t * @param employeeId - The employee ID to remove\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 department employee relationship\r\n\t */\r\n\tpublic async removeEmployee(\r\n\t\tbusinessId: number,\r\n\t\tdepartmentId: number,\r\n\t\temployeeId: number,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig,\r\n\t): Promise<SBDepartmentTeamMember> {\r\n\t\treturn await this.deleteEntity(\r\n\t\t\t`/v1/businesses/${businessId}/departments/${departmentId}/employees/${employeeId}`,\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 employees assigneed to a department\r\n\t * @param businessId - The business ID\r\n\t * @param departmentId - The department ID\r\n\t * @param request - The 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 department employee relationship\r\n\t */\r\n\tpublic async updateEmployees(\r\n\t\tbusinessId: number,\r\n\t\tdepartmentId: number,\r\n\t\trequest: DepartmentEmployeeUpdateRequest,\r\n\t\toptions?: SBRequestOptions,\r\n\t\tconfig?: AxiosRequestConfig,\r\n\t): Promise<SBDepartmentTeamMember> {\r\n\t\treturn await this.employees.updateAsync(\r\n\t\t\tbusinessId,\r\n\t\t\tdepartmentId,\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":["DepartmentService","SBService","constructor","options","defaultAPIServiceOptions","_defineProperty","employees","DepartmentEmployeeService","createAsync","businessId","request","config","createEntity","updateAsync","id","updateEntity","listAsync","listEntities","getByIdAsync","getEntityById","deleteAsync","deleteEntity","batch","setApprover","departmentId","approverId","listEmployees","assignEmployees","removeEmployee","employeeId","updateEmployees"],"mappings":";;;;;AA4BA;;;;;;;;;AASG;AACG,MAAOA,iBACZ,SAAQC,SAAS,CAAA;AAWjB;;;AAGG;AACHC,EAAAA,WAAAA,CAAYC,UAA4BC,wBAAwB,EAAA;IAC/D,KAAK,CAACD,OAAO,CAAC;IAACE,eAAA,CAAA,IAAA,EAAA,WAAA,EAAA,KAAA,CAAA,CAAA;AACf,IAAA,IAAI,CAACC,SAAS,GAAG,IAAIC,yBAAyB,CAACJ,OAAO,CAAC;AACxD;AAEA;;;;;;;AAOG;EACI,MAAMK,WAAWA,CACvBC,UAAkB,EAClBC,OAAgC,EAChCP,OAA0B,EAC1BQ,MAAoD,EAAA;AAEpD,IAAA,OAAO,MAAM,IAAI,CAACC,YAAY,CAC7B,CAAkBH,eAAAA,EAAAA,UAAU,CAAc,YAAA,CAAA,EAC1CC,OAAO,EACPP,OAAO,EACPQ,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAME,WAAWA,CACvBJ,UAAkB,EAClBK,EAAU,EACVJ,OAAgC,EAChCP,OAA0B,EAC1BQ,MAAoD,EAAA;AAEpD,IAAA,OAAO,MAAM,IAAI,CAACI,YAAY,CAC7B,kBAAkBN,UAAU,CAAA,aAAA,EAAgBK,EAAE,CAAA,CAAE,EAChDJ,OAAO,EACPP,OAAO,EACPQ,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAMK,SAASA,CACrBP,UAAkB,EAClBC,OAA+B,EAC/BP,OAA0B,EAC1BQ,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,IAAI,CAACM,YAAY,CAC7B,CAAkBR,eAAAA,EAAAA,UAAU,CAAc,YAAA,CAAA,EAC1CC,OAAO,EACPP,OAAO,EACPQ,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAMO,YAAYA,CACxBT,UAAkB,EAClBK,EAAU,EACVX,OAA0B,EAC1BQ,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,IAAI,CAACQ,aAAa,CAC9B,CAAkBV,eAAAA,EAAAA,UAAU,CAAgBK,aAAAA,EAAAA,EAAE,CAAE,CAAA,EAChDX,OAAO,EACPQ,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAMS,WAAWA,CACvBX,UAAkB,EAClBK,EAAU,EACVX,OAA0B,EAC1BQ,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,IAAI,CAACU,YAAY,CAC7B,CAAkBZ,eAAAA,EAAAA,UAAU,CAAgBK,aAAAA,EAAAA,EAAE,CAAE,CAAA,EAChDX,OAAO,EACPQ,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAMW,KAAKA,CACjBb,UAAkB,EAClBC,OAAqC,EACrCP,OAA0B,EAC1BQ,MAAyD,EAAA;AAEzD,IAAA,OAAO,MAAM,IAAI,CAACC,YAAY,CAC7B,CAAkBH,eAAAA,EAAAA,UAAU,CAAoB,kBAAA,CAAA,EAChDC,OAAO,EACPP,OAAO,EACPQ,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAMY,WAAWA,CACvBd,UAAkB,EAClBe,YAAoB,EACpBC,UAAkB,EAClBtB,OAA0B,EAC1BQ,MAA2B,EAAA;IAE3B,OAAO,MAAM,IAAI,CAACI,YAAY,CAC7B,kBAAkBN,UAAU,CAAA,aAAA,EAAgBe,YAAY,CAAA,SAAA,CAAW,EACnE;AAAEC,MAAAA;AAAY,KAAA,EACdtB,OAAO,EACPQ,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAMe,aAAaA,CACzBjB,UAAkB,EAClBe,YAAoB,EACpBd,OAAsC,EACtCP,OAA0B,EAC1BQ,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,IAAI,CAACL,SAAS,CAACU,SAAS,CACpCP,UAAU,EACVe,YAAY,EACZd,OAAO,EACPP,OAAO,EACPQ,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAMgB,eAAeA,CAC3BlB,UAAkB,EAClBe,YAAoB,EACpBd,OAAwC,EACxCP,OAA0B,EAC1BQ,MAA4D,EAAA;AAE5D,IAAA,OAAO,MAAM,IAAI,CAACL,SAAS,CAACE,WAAW,CACtCC,UAAU,EACVe,YAAY,EACZd,OAAO,EACPP,OAAO,EACPQ,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAMiB,cAAcA,CAC1BnB,UAAkB,EAClBe,YAAoB,EACpBK,UAAkB,EAClB1B,OAA0B,EAC1BQ,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,IAAI,CAACU,YAAY,CAC7B,kBAAkBZ,UAAU,CAAA,aAAA,EAAgBe,YAAY,CAAA,WAAA,EAAcK,UAAU,CAAE,CAAA,EAClF1B,OAAO,EACPQ,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAMmB,eAAeA,CAC3BrB,UAAkB,EAClBe,YAAoB,EACpBd,OAAwC,EACxCP,OAA0B,EAC1BQ,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,IAAI,CAACL,SAAS,CAACO,WAAW,CACtCJ,UAAU,EACVe,YAAY,EACZd,OAAO,EACPP,OAAO,EACPQ,MAAM,CACN;AACF;AACA;;;;"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { defaultAPIServiceOptions } from '../../../../client/SBServiceOptions.mjs';
|
|
2
|
-
import { SBService } from '../../../SBService.mjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Service for managing department employees in the Smartbills system
|
|
6
|
-
* Provides functionality for CRUD operations on department employees
|
|
7
|
-
*/
|
|
8
|
-
class DepartmentEmployeeService extends SBService {
|
|
9
|
-
/**
|
|
10
|
-
* Creates a new instance of the department employee service
|
|
11
|
-
* @param options - Service configuration options
|
|
12
|
-
*/
|
|
13
|
-
constructor(options = defaultAPIServiceOptions) {
|
|
14
|
-
super(options);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Adds an employee to a department
|
|
18
|
-
* @param businessId - The business ID
|
|
19
|
-
* @param departmentId - The department ID
|
|
20
|
-
* @param request - Employee assignment request data
|
|
21
|
-
* @param options - Request options
|
|
22
|
-
* @param config - Axios request configuration
|
|
23
|
-
* @returns Promise that resolves with the created department employee relationship
|
|
24
|
-
*/
|
|
25
|
-
async createAsync(businessId, departmentId, request, options, config) {
|
|
26
|
-
return await this.createEntity(`/v1/businesses/${businessId}/departments/${departmentId}/employees`, request, options, config);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Updates an employee's information within a department
|
|
30
|
-
* @param businessId - The business ID
|
|
31
|
-
* @param departmentId - The department ID
|
|
32
|
-
* @param employeeId - The employee ID
|
|
33
|
-
* @param request - The update request data
|
|
34
|
-
* @param options - Request options
|
|
35
|
-
* @param config - Axios request configuration
|
|
36
|
-
* @returns Promise that resolves with the updated department employee relationship
|
|
37
|
-
*/
|
|
38
|
-
async updateAsync(businessId, departmentId, request, options, config) {
|
|
39
|
-
return await this.updateEntity(`/v1/businesses/${businessId}/departments/${departmentId}/employees`, request, options, config);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Lists employees assigned to a department
|
|
43
|
-
* @param businessId - The business ID
|
|
44
|
-
* @param departmentId - The department ID
|
|
45
|
-
* @param request - The list request parameters (pagination, filtering)
|
|
46
|
-
* @param options - Request options
|
|
47
|
-
* @param config - Axios request configuration
|
|
48
|
-
* @returns Promise that resolves with the list of department employees
|
|
49
|
-
*/
|
|
50
|
-
async listAsync(businessId, departmentId, request = {}, options, config) {
|
|
51
|
-
return await this.listEntities(`/v1/businesses/${businessId}/departments/${departmentId}/employees`, request, options, config);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Retrieves a department by its ID
|
|
55
|
-
* @param businessId - The business ID
|
|
56
|
-
* @param departmentId - The department ID
|
|
57
|
-
* @param options - Request options
|
|
58
|
-
* @param config - Axios request configuration
|
|
59
|
-
* @returns Promise that resolves with the department data
|
|
60
|
-
*/
|
|
61
|
-
async getByIdAsync(businessId, departmentId, options, config) {
|
|
62
|
-
return await this.getEntityById(`/v1/businesses/${businessId}/departments/${departmentId}`, options, config);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Deletes (removes) an employee from a department
|
|
66
|
-
* @param businessId - The business ID
|
|
67
|
-
* @param departmentId - The department ID
|
|
68
|
-
* @param employeeId - The employee ID to remove
|
|
69
|
-
* @param options - Request options
|
|
70
|
-
* @param config - Axios request configuration
|
|
71
|
-
* @returns Promise that resolves with the deleted department employee relationship
|
|
72
|
-
*/
|
|
73
|
-
async deleteAsync(businessId, departmentId, employeeId, options, config) {
|
|
74
|
-
return await this.deleteEntity(`/v1/businesses/${businessId}/departments/${departmentId}/employees/${employeeId}`, options, config);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export { DepartmentEmployeeService };
|
|
79
|
-
//# sourceMappingURL=DepartmentEmployeeService.mjs.map
|
package/dist/esm/services/businesses/departments/Employees/DepartmentEmployeeService.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DepartmentEmployeeService.mjs","sources":["../../../../../../src/services/businesses/departments/Employees/DepartmentEmployeeService.ts"],"sourcesContent":["import { SBRequestOptions } from \"@/client/SBRequestOption\";\nimport {\n\tSBServiceOptions,\n\tdefaultAPIServiceOptions,\n} from \"@/client/SBServiceOptions\";\nimport { SBBatch, SBDepartment, SBDepartmentTeamMember } from \"@/entities\";\n\nimport { SBService } from \"@/services/SBService\";\nimport { AxiosRequestConfig } from \"axios\";\nimport { SBList } from \"@/entities/base\";\nimport { DepartmentEmployeeCreateRequest } from \"./DepartmentEmployeeCreateRequest\";\nimport { DepartmentEmployeeUpdateRequest } from \"./DepartmentEmployeeUpdateRequest\";\nimport { DepartmentEmployeeListRequest } from \"./DepartmentEmployeeListRequest\";\n\n/**\n * Service for managing department employees in the Smartbills system\n * Provides functionality for CRUD operations on department employees\n */\nexport class DepartmentEmployeeService extends SBService {\n\t/**\n\t * Creates a new instance of the department employee service\n\t * @param options - Service configuration options\n\t */\n\tconstructor(options: SBServiceOptions = defaultAPIServiceOptions) {\n\t\tsuper(options);\n\t}\n\n\t/**\n\t * Adds an employee to a department\n\t * @param businessId - The business ID\n\t * @param departmentId - The department ID\n\t * @param request - Employee assignment request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the created department employee relationship\n\t */\n\tpublic async createAsync(\n\t\tbusinessId: number,\n\t\tdepartmentId: number,\n\t\trequest: DepartmentEmployeeCreateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<DepartmentEmployeeCreateRequest>,\n\t): Promise<SBDepartmentTeamMember> {\n\t\treturn await this.createEntity(\n\t\t\t`/v1/businesses/${businessId}/departments/${departmentId}/employees`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Updates an employee's information within a department\n\t * @param businessId - The business ID\n\t * @param departmentId - The department ID\n\t * @param employeeId - The employee ID\n\t * @param request - The 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 department employee relationship\n\t */\n\tpublic async updateAsync(\n\t\tbusinessId: number,\n\t\tdepartmentId: number,\n\t\trequest: DepartmentEmployeeUpdateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<DepartmentEmployeeUpdateRequest>,\n\t): Promise<SBDepartmentTeamMember> {\n\t\treturn await this.updateEntity(\n\t\t\t`/v1/businesses/${businessId}/departments/${departmentId}/employees`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Lists employees assigned to a department\n\t * @param businessId - The business ID\n\t * @param departmentId - The department ID\n\t * @param request - The list request parameters (pagination, filtering)\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the list of department employees\n\t */\n\tpublic async listAsync(\n\t\tbusinessId: number,\n\t\tdepartmentId: number,\n\t\trequest: DepartmentEmployeeListRequest = {},\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBList<SBDepartmentTeamMember>> {\n\t\treturn await this.listEntities(\n\t\t\t`/v1/businesses/${businessId}/departments/${departmentId}/employees`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Retrieves a department by its ID\n\t * @param businessId - The business ID\n\t * @param departmentId - The department ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the department data\n\t */\n\tpublic async getByIdAsync(\n\t\tbusinessId: number,\n\t\tdepartmentId: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBDepartment> {\n\t\treturn await this.getEntityById(\n\t\t\t`/v1/businesses/${businessId}/departments/${departmentId}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Deletes (removes) an employee from a department\n\t * @param businessId - The business ID\n\t * @param departmentId - The department ID\n\t * @param employeeId - The employee ID to remove\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the deleted department employee relationship\n\t */\n\tpublic async deleteAsync(\n\t\tbusinessId: number,\n\t\tdepartmentId: number,\n\t\temployeeId: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBDepartmentTeamMember> {\n\t\treturn await this.deleteEntity(\n\t\t\t`/v1/businesses/${businessId}/departments/${departmentId}/employees/${employeeId}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n}\n"],"names":["DepartmentEmployeeService","SBService","constructor","options","defaultAPIServiceOptions","createAsync","businessId","departmentId","request","config","createEntity","updateAsync","updateEntity","listAsync","listEntities","getByIdAsync","getEntityById","deleteAsync","employeeId","deleteEntity"],"mappings":";;;AAcA;;;AAGG;AACG,MAAOA,yBAA0B,SAAQC,SAAS,CAAA;AACvD;;;AAGG;AACHC,EAAAA,WAAAA,CAAYC,UAA4BC,wBAAwB,EAAA;IAC/D,KAAK,CAACD,OAAO,CAAC;AACf;AAEA;;;;;;;;AAQG;EACI,MAAME,WAAWA,CACvBC,UAAkB,EAClBC,YAAoB,EACpBC,OAAwC,EACxCL,OAA0B,EAC1BM,MAA4D,EAAA;AAE5D,IAAA,OAAO,MAAM,IAAI,CAACC,YAAY,CAC7B,kBAAkBJ,UAAU,CAAA,aAAA,EAAgBC,YAAY,CAAA,UAAA,CAAY,EACpEC,OAAO,EACPL,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;;;AASG;EACI,MAAME,WAAWA,CACvBL,UAAkB,EAClBC,YAAoB,EACpBC,OAAwC,EACxCL,OAA0B,EAC1BM,MAA4D,EAAA;AAE5D,IAAA,OAAO,MAAM,IAAI,CAACG,YAAY,CAC7B,kBAAkBN,UAAU,CAAA,aAAA,EAAgBC,YAAY,CAAA,UAAA,CAAY,EACpEC,OAAO,EACPL,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;AACI,EAAA,MAAMI,SAASA,CACrBP,UAAkB,EAClBC,YAAoB,EACpBC,OAAA,GAAyC,EAAE,EAC3CL,OAA0B,EAC1BM,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,IAAI,CAACK,YAAY,CAC7B,kBAAkBR,UAAU,CAAA,aAAA,EAAgBC,YAAY,CAAA,UAAA,CAAY,EACpEC,OAAO,EACPL,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAMM,YAAYA,CACxBT,UAAkB,EAClBC,YAAoB,EACpBJ,OAA0B,EAC1BM,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,IAAI,CAACO,aAAa,CAC9B,CAAkBV,eAAAA,EAAAA,UAAU,CAAgBC,aAAAA,EAAAA,YAAY,CAAE,CAAA,EAC1DJ,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;;AAQG;EACI,MAAMQ,WAAWA,CACvBX,UAAkB,EAClBC,YAAoB,EACpBW,UAAkB,EAClBf,OAA0B,EAC1BM,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,IAAI,CAACU,YAAY,CAC7B,kBAAkBb,UAAU,CAAA,aAAA,EAAgBC,YAAY,CAAA,WAAA,EAAcW,UAAU,CAAE,CAAA,EAClFf,OAAO,EACPM,MAAM,CACN;AACF;AACA;;;;"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { SBService } from '../../SBService.mjs';
|
|
2
|
-
|
|
3
|
-
class DomainService extends SBService {
|
|
4
|
-
async listAsync(request, options, config) {
|
|
5
|
-
return await super.listEntities("/v1/domains", request, options, config);
|
|
6
|
-
}
|
|
7
|
-
async deleteAsync(id, options, config) {
|
|
8
|
-
return super.deleteEntity(`/v1/domains/${id}`, options, config);
|
|
9
|
-
}
|
|
10
|
-
async getByIdAsync(id, options, config) {
|
|
11
|
-
return super.getEntityById(`/v1/domains/${id}`, options, config);
|
|
12
|
-
}
|
|
13
|
-
async createAsync(request, options, config) {
|
|
14
|
-
return await super.createEntity(`/v1/domains`, request, options, config);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { DomainService };
|
|
19
|
-
//# sourceMappingURL=DomainService.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DomainService.mjs","sources":["../../../../../src/services/businesses/domains/DomainService.ts"],"sourcesContent":["import { SBRequestOptions } from \"@/client/SBRequestOption\";\nimport { ICreatable } from \"@/interfaces/ICreatable\";\nimport { IDeletable } from \"@/interfaces/IDeletable\";\nimport { IListable } from \"@/interfaces/IListable\";\nimport { AxiosRequestConfig } from \"axios\";\nimport { SBDomain } from \"@/entities/domains/SBDomain\";\nimport { SBService } from \"@/services/SBService\";\nimport { CreateDomainsRequest } from \"./CreateDomainRequest\";\nimport { GetDomainsRequest } from \"./GetDomainsRequest\";\nimport { IRetrievableById } from \"@/interfaces\";\nimport { SBList } from \"@/entities/base\";\n\nexport class DomainService\n\textends SBService\n\timplements\n\t\tIListable<GetDomainsRequest, SBDomain>,\n\t\tICreatable<CreateDomainsRequest, SBDomain>,\n\t\tIRetrievableById<SBDomain>,\n\t\tIDeletable<SBDomain>\n{\n\tpublic async listAsync(\n\t\trequest: GetDomainsRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig,\n\t): Promise<SBList<SBDomain>> {\n\t\treturn await super.listEntities(\n\t\t\t\"/v1/domains\",\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\tpublic async deleteAsync(\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<any>,\n\t): Promise<SBDomain> {\n\t\treturn super.deleteEntity(`/v1/domains/${id}`, options, config);\n\t}\n\tpublic async getByIdAsync(\n\t\tid: number,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<any>,\n\t): Promise<SBDomain> {\n\t\treturn super.getEntityById(`/v1/domains/${id}`, options, config);\n\t}\n\tpublic async createAsync(\n\t\trequest: CreateDomainsRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<CreateDomainsRequest>,\n\t): Promise<SBDomain> {\n\t\treturn await super.createEntity(\n\t\t\t`/v1/domains`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n}\n"],"names":["DomainService","SBService","listAsync","request","options","config","listEntities","deleteAsync","id","deleteEntity","getByIdAsync","getEntityById","createAsync","createEntity"],"mappings":";;AAYM,MAAOA,aACZ,SAAQC,SAAS,CAAA;AAOV,EAAA,MAAMC,SAASA,CACrBC,OAA0B,EAC1BC,OAA0B,EAC1BC,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACC,YAAY,CAC9B,aAAa,EACbH,OAAO,EACPC,OAAO,EACPC,MAAM,CACN;AACF;AAEO,EAAA,MAAME,WAAWA,CACvBC,EAAU,EACVJ,OAA0B,EAC1BC,MAAgC,EAAA;IAEhC,OAAO,KAAK,CAACI,YAAY,CAAC,CAAA,YAAA,EAAeD,EAAE,CAAA,CAAE,EAAEJ,OAAO,EAAEC,MAAM,CAAC;AAChE;AACO,EAAA,MAAMK,YAAYA,CACxBF,EAAU,EACVJ,OAA0B,EAC1BC,MAAgC,EAAA;IAEhC,OAAO,KAAK,CAACM,aAAa,CAAC,CAAA,YAAA,EAAeH,EAAE,CAAA,CAAE,EAAEJ,OAAO,EAAEC,MAAM,CAAC;AACjE;AACO,EAAA,MAAMO,WAAWA,CACvBT,OAA6B,EAC7BC,OAA0B,EAC1BC,MAAiD,EAAA;AAEjD,IAAA,OAAO,MAAM,KAAK,CAACQ,YAAY,CAC9B,CAAA,WAAA,CAAa,EACbV,OAAO,EACPC,OAAO,EACPC,MAAM,CACN;AACF;AACA;;;;"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { defaultAPIServiceOptions } from '../../../client/SBServiceOptions.mjs';
|
|
2
|
-
import { SBService } from '../../SBService.mjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Service for managing fees in the Smartbills system
|
|
6
|
-
* Provides functionality for CRUD operations on fees
|
|
7
|
-
* @implements IRetrievableById<SBFee> - Allows retrieving fees by ID
|
|
8
|
-
* @implements IUpdatable<FeeUpdateRequest, SBFee> - Allows updating existing fees
|
|
9
|
-
* @implements ICreatable<FeeCreateRequest, SBFee> - Allows creating new fees
|
|
10
|
-
* @implements IBatchable<FeeUpsertRequest, SBFee> - Allows batch operations on fees
|
|
11
|
-
* @implements IDeletable<SBFee> - Allows deleting fees
|
|
12
|
-
*/
|
|
13
|
-
class FeeService extends SBService {
|
|
14
|
-
/**
|
|
15
|
-
* Creates a new instance of the fee service
|
|
16
|
-
* @param options - Service configuration options
|
|
17
|
-
*/
|
|
18
|
-
constructor(options = defaultAPIServiceOptions) {
|
|
19
|
-
super(options);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Updates an existing fee
|
|
23
|
-
* @param businessId - The business ID
|
|
24
|
-
* @param id - The fee ID to update
|
|
25
|
-
* @param request - Fee update request data
|
|
26
|
-
* @param options - Request options
|
|
27
|
-
* @param config - Axios request configuration
|
|
28
|
-
* @returns Promise that resolves with the updated fee
|
|
29
|
-
*/
|
|
30
|
-
async updateAsync(businessId, id, request, options, config) {
|
|
31
|
-
return await super.updateEntity(`/v1/businesses/${businessId}/fees/${id}`, request, options, config);
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Creates a new fee
|
|
35
|
-
* @param businessId - The business ID
|
|
36
|
-
* @param request - Fee creation request data
|
|
37
|
-
* @param options - Request options
|
|
38
|
-
* @param config - Axios request configuration
|
|
39
|
-
* @returns Promise that resolves with the created fee
|
|
40
|
-
*/
|
|
41
|
-
async createAsync(businessId, request, options, config) {
|
|
42
|
-
return await super.createEntity(`/v1/businesses/${businessId}/fees`, request, options, config);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Retrieves a fee by its ID
|
|
46
|
-
* @param businessId - The business ID
|
|
47
|
-
* @param id - The fee ID
|
|
48
|
-
* @param options - Request options
|
|
49
|
-
* @param config - Axios request configuration
|
|
50
|
-
* @returns Promise that resolves with the fee data
|
|
51
|
-
*/
|
|
52
|
-
async getByIdAsync(businessId, id, options, config) {
|
|
53
|
-
return await super.getEntityById(`/v1/businesses/${businessId}/fees/${id}`, options, config);
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Deletes a fee
|
|
57
|
-
* @param businessId - The business ID
|
|
58
|
-
* @param id - The fee ID to delete
|
|
59
|
-
* @param options - Request options
|
|
60
|
-
* @param config - Axios request configuration
|
|
61
|
-
* @returns Promise that resolves with the deleted fee
|
|
62
|
-
*/
|
|
63
|
-
async deleteAsync(businessId, id, options, config) {
|
|
64
|
-
return await super.deleteEntity(`/v1/businesses/${businessId}/fees/${id}`, options, config);
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Performs a batch operation on fees
|
|
68
|
-
* @param businessId - The business ID
|
|
69
|
-
* @param request - Batch upsert request data
|
|
70
|
-
* @param options - Request options
|
|
71
|
-
* @param config - Axios request configuration
|
|
72
|
-
* @returns Promise that resolves with the batch result
|
|
73
|
-
*/
|
|
74
|
-
async batch(businessId, request, options, config) {
|
|
75
|
-
return await super.createEntity(`/v1/businesses/${businessId}/fees/batch`, request, options, config);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Lists fees for a given business
|
|
79
|
-
* @param businessId - The business ID
|
|
80
|
-
* @param request - Fee list request data
|
|
81
|
-
* @param options - Request options
|
|
82
|
-
* @param config - Axios request configuration
|
|
83
|
-
* @returns Promise that resolves with the list of fees
|
|
84
|
-
*/
|
|
85
|
-
async listAsync(businessId, request, options, config) {
|
|
86
|
-
return await super.listEntities(`/v1/businesses/${businessId}/fees`, request, options, config);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export { FeeService };
|
|
91
|
-
//# sourceMappingURL=FeeService.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FeeService.mjs","sources":["../../../../../src/services/businesses/fees/FeeService.ts"],"sourcesContent":["import { SBRequestOptions } from \"@/client/SBRequestOption\";\nimport {\n\tSBServiceOptions,\n\tdefaultAPIServiceOptions,\n} from \"@/client/SBServiceOptions\";\nimport { SBBatch, SBList } from \"@/entities\";\nimport { AxiosRequestConfig } from \"axios\";\nimport { SBFee } from \"@/entities/businesses/fees\";\nimport {\n\tINestedBatchable,\n\tINestedCreatable,\n\tINestedListable,\n\tINestedRetrievableById,\n\tINestedUpdatable,\n} from \"@/interfaces\";\nimport { IDeletable, INestedDeletable } from \"../../../interfaces/IDeletable\";\nimport { BatchUpsertRequest } from \"../../BatchUpsertRequest\";\nimport { SBService } from \"../../SBService\";\nimport { FeeCreateRequest } from \"./FeeCreateRequest\";\nimport { FeeUpdateRequest } from \"./FeeUpdateRequest\";\nimport { FeeUpsertRequest } from \"./FeeUpsertRequest\";\nimport { FeeListRequest } from \"./FeeListRequest\";\n\n/**\n * Service for managing fees in the Smartbills system\n * Provides functionality for CRUD operations on fees\n * @implements IRetrievableById<SBFee> - Allows retrieving fees by ID\n * @implements IUpdatable<FeeUpdateRequest, SBFee> - Allows updating existing fees\n * @implements ICreatable<FeeCreateRequest, SBFee> - Allows creating new fees\n * @implements IBatchable<FeeUpsertRequest, SBFee> - Allows batch operations on fees\n * @implements IDeletable<SBFee> - Allows deleting fees\n */\nexport class FeeService\n\textends SBService\n\timplements\n\t\tINestedRetrievableById<SBFee>,\n\t\tINestedUpdatable<FeeUpdateRequest, SBFee>,\n\t\tINestedCreatable<FeeCreateRequest, SBFee>,\n\t\tINestedBatchable<FeeUpsertRequest, SBFee>,\n\t\tINestedListable<FeeListRequest, SBFee>,\n\t\tINestedDeletable<SBFee>\n{\n\t/**\n\t * Creates a new instance of the fee 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 * Updates an existing fee\n\t * @param businessId - The business ID\n\t * @param id - The fee ID to update\n\t * @param request - Fee 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 fee\n\t */\n\tpublic async updateAsync(\n\t\tbusinessId: number,\n\t\tid: number,\n\t\trequest: FeeUpdateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<FeeUpdateRequest>,\n\t): Promise<SBFee> {\n\t\treturn await super.updateEntity(\n\t\t\t`/v1/businesses/${businessId}/fees/${id}`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Creates a new fee\n\t * @param businessId - The business ID\n\t * @param request - Fee 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 fee\n\t */\n\tpublic async createAsync(\n\t\tbusinessId: number,\n\t\trequest: FeeCreateRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<FeeCreateRequest>,\n\t): Promise<SBFee> {\n\t\treturn await super.createEntity(\n\t\t\t`/v1/businesses/${businessId}/fees`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Retrieves a fee by its ID\n\t * @param businessId - The business ID\n\t * @param id - The fee ID\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the fee 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<SBFee> {\n\t\treturn await super.getEntityById(\n\t\t\t`/v1/businesses/${businessId}/fees/${id}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Deletes a fee\n\t * @param businessId - The business ID\n\t * @param id - The fee 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 fee\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<SBFee> {\n\t\treturn await super.deleteEntity(\n\t\t\t`/v1/businesses/${businessId}/fees/${id}`,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\n\t/**\n\t * Performs a batch operation on fees\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: BatchUpsertRequest<FeeUpsertRequest>,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<BatchUpsertRequest<FeeUpsertRequest>>,\n\t): Promise<SBBatch<SBFee>> {\n\t\treturn await super.createEntity(\n\t\t\t`/v1/businesses/${businessId}/fees/batch`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n\t/**\n\t * Lists fees for a given business\n\t * @param businessId - The business ID\n\t * @param request - Fee list request data\n\t * @param options - Request options\n\t * @param config - Axios request configuration\n\t * @returns Promise that resolves with the list of fees\n\t */\n\tpublic async listAsync(\n\t\tbusinessId: number | string,\n\t\trequest: FeeListRequest,\n\t\toptions?: SBRequestOptions,\n\t\tconfig?: AxiosRequestConfig<FeeListRequest>,\n\t): Promise<SBList<SBFee>> {\n\t\treturn await super.listEntities(\n\t\t\t`/v1/businesses/${businessId}/fees`,\n\t\t\trequest,\n\t\t\toptions,\n\t\t\tconfig,\n\t\t);\n\t}\n}\n"],"names":["FeeService","SBService","constructor","options","defaultAPIServiceOptions","updateAsync","businessId","id","request","config","updateEntity","createAsync","createEntity","getByIdAsync","getEntityById","deleteAsync","deleteEntity","batch","listAsync","listEntities"],"mappings":";;;AAuBA;;;;;;;;AAQG;AACG,MAAOA,UACZ,SAAQC,SAAS,CAAA;AASjB;;;AAGG;AACHC,EAAAA,WAAAA,CAAmBC,UAA4BC,wBAAwB,EAAA;IACtE,KAAK,CAACD,OAAO,CAAC;AACf;AAEA;;;;;;;;AAQG;EACI,MAAME,WAAWA,CACvBC,UAAkB,EAClBC,EAAU,EACVC,OAAyB,EACzBL,OAA0B,EAC1BM,MAA6C,EAAA;AAE7C,IAAA,OAAO,MAAM,KAAK,CAACC,YAAY,CAC9B,kBAAkBJ,UAAU,CAAA,MAAA,EAASC,EAAE,CAAA,CAAE,EACzCC,OAAO,EACPL,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAME,WAAWA,CACvBL,UAAkB,EAClBE,OAAyB,EACzBL,OAA0B,EAC1BM,MAA6C,EAAA;AAE7C,IAAA,OAAO,MAAM,KAAK,CAACG,YAAY,CAC9B,CAAkBN,eAAAA,EAAAA,UAAU,CAAO,KAAA,CAAA,EACnCE,OAAO,EACPL,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAMI,YAAYA,CACxBP,UAAkB,EAClBC,EAAU,EACVJ,OAA0B,EAC1BM,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACK,aAAa,CAC/B,CAAkBR,eAAAA,EAAAA,UAAU,CAASC,MAAAA,EAAAA,EAAE,CAAE,CAAA,EACzCJ,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAMM,WAAWA,CACvBT,UAAkB,EAClBC,EAAU,EACVJ,OAA0B,EAC1BM,MAA2B,EAAA;AAE3B,IAAA,OAAO,MAAM,KAAK,CAACO,YAAY,CAC9B,CAAkBV,eAAAA,EAAAA,UAAU,CAASC,MAAAA,EAAAA,EAAE,CAAE,CAAA,EACzCJ,OAAO,EACPM,MAAM,CACN;AACF;AAEA;;;;;;;AAOG;EACI,MAAMQ,KAAKA,CACjBX,UAAkB,EAClBE,OAA6C,EAC7CL,OAA0B,EAC1BM,MAAiE,EAAA;AAEjE,IAAA,OAAO,MAAM,KAAK,CAACG,YAAY,CAC9B,CAAkBN,eAAAA,EAAAA,UAAU,CAAa,WAAA,CAAA,EACzCE,OAAO,EACPL,OAAO,EACPM,MAAM,CACN;AACF;AACA;;;;;;;AAOG;EACI,MAAMS,SAASA,CACrBZ,UAA2B,EAC3BE,OAAuB,EACvBL,OAA0B,EAC1BM,MAA2C,EAAA;AAE3C,IAAA,OAAO,MAAM,KAAK,CAACU,YAAY,CAC9B,CAAkBb,eAAAA,EAAAA,UAAU,CAAO,KAAA,CAAA,EACnCE,OAAO,EACPL,OAAO,EACPM,MAAM,CACN;AACF;AACA;;;;"}
|