@adbls/api-types 1.9.2 → 1.9.4
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/dist/index.d.ts +72 -0
- package/dist/index.js +48 -0
- package/dist/types/CustomerAddressResponse.d.ts +9 -0
- package/dist/types/CustomerAddressResponse.js +3 -0
- package/dist/types/CustomerDeliveryResponse.d.ts +10 -0
- package/dist/types/CustomerDeliveryResponse.js +2 -0
- package/dist/types/CustomerPaymentMethodResponse.d.ts +8 -0
- package/dist/types/CustomerPaymentMethodResponse.js +3 -0
- package/dist/types/CustomerPaymentMethodSetupResponse.d.ts +5 -0
- package/dist/types/CustomerPaymentMethodSetupResponse.js +3 -0
- package/dist/types/CustomerPaymentMethodUpdateResponse.d.ts +8 -0
- package/dist/types/CustomerPaymentMethodUpdateResponse.js +2 -0
- package/dist/types/CustomerPlanResponse.d.ts +6 -0
- package/dist/types/CustomerPlanResponse.js +3 -0
- package/dist/types/CustomerProfileResponse.d.ts +6 -0
- package/dist/types/CustomerProfileResponse.js +3 -0
- package/dist/types/CustomerSessionResponse.d.ts +7 -0
- package/dist/types/CustomerSessionResponse.js +2 -0
- package/dist/types/CustomerSubscriptionDetailResponse.d.ts +39 -0
- package/dist/types/CustomerSubscriptionDetailResponse.js +2 -0
- package/dist/types/CustomerSubscriptionResponse.d.ts +20 -0
- package/dist/types/CustomerSubscriptionResponse.js +2 -0
- package/dist/types/CustomerTransactionResponse.d.ts +14 -0
- package/dist/types/CustomerTransactionResponse.js +2 -0
- package/dist/types/DynamicSubscriptionSettingsResponse.d.ts +8 -0
- package/dist/types/DynamicSubscriptionSettingsResponse.js +2 -0
- package/dist/types/OrderResponse.d.ts +2 -0
- package/dist/types/PaymentSettingsResponse.d.ts +4 -0
- package/dist/types/PropertyFilterRequest.d.ts +1 -0
- package/dist/types/PropertyInterestFilterRequest.d.ts +2 -0
- package/dist/types/PropertyResponse.d.ts +1 -0
- package/dist/types/ShopSubscriptionPlanResponse.d.ts +6 -5
- package/dist/types/SubscriptionCheckoutResponse.d.ts +21 -0
- package/dist/types/SubscriptionCheckoutResponse.js +2 -0
- package/dist/types/SubscriptionDeliveryResponse.d.ts +12 -0
- package/dist/types/SubscriptionDeliveryResponse.js +2 -0
- package/dist/types/SubscriptionFilterRequest.d.ts +9 -0
- package/dist/types/SubscriptionFilterRequest.js +2 -0
- package/dist/types/SubscriptionHealthResponse.d.ts +7 -0
- package/dist/types/SubscriptionHealthResponse.js +2 -0
- package/dist/types/SubscriptionPauseRequest.d.ts +4 -0
- package/dist/types/SubscriptionPauseRequest.js +3 -0
- package/dist/types/SubscriptionPeriodResponse.d.ts +14 -0
- package/dist/types/SubscriptionPeriodResponse.js +2 -0
- package/dist/types/SubscriptionPlanResponse.d.ts +2 -0
- package/dist/types/SubscriptionPlanStripeMirrorResponse.d.ts +8 -0
- package/dist/types/SubscriptionPlanStripeMirrorResponse.js +2 -0
- package/dist/types/SubscriptionPlanStripePriceMirrorResponse.d.ts +5 -0
- package/dist/types/SubscriptionPlanStripePriceMirrorResponse.js +3 -0
- package/dist/types/SubscriptionReconcileRunResponse.d.ts +9 -0
- package/dist/types/SubscriptionReconcileRunResponse.js +3 -0
- package/dist/types/SubscriptionResponse.d.ts +47 -0
- package/dist/types/SubscriptionResponse.js +2 -0
- package/dist/types/SubscriptionStatusResponse.d.ts +12 -0
- package/dist/types/SubscriptionStatusResponse.js +2 -0
- package/dist/types/WebsitePingResponse.d.ts +4 -0
- package/dist/types/WebsitePingResponse.js +3 -0
- package/dist/types/dto/AddressDto.js +3 -3
- package/dist/types/dto/automation/StatusDefinitionRequest.js +2 -2
- package/dist/types/dto/automation/StatusEdgeRequest.js +2 -2
- package/dist/types/dto/automation/TodoCreateRequest.d.ts +1 -0
- package/dist/types/dto/automation/TodoCreateRequest.js +3 -3
- package/dist/types/dto/automation/TodoRequest.js +2 -2
- package/dist/types/dto/automation/rule/RuleDraftRequest.d.ts +1 -0
- package/dist/types/dto/automation/rule/RuleDraftRequest.js +2 -2
- package/dist/types/dto/automation/rule/RuleNodeRequest.js +1 -1
- package/dist/types/dto/automation/rule/RuleTestRequest.d.ts +1 -0
- package/dist/types/dto/automation/rule/RuleTestRequest.js +1 -1
- package/dist/types/dto/category/CategoryRequest.js +1 -1
- package/dist/types/dto/categoryattribute/CategoryAttributeOptionRequest.js +1 -1
- package/dist/types/dto/categoryattribute/CategoryAttributeRequest.js +1 -1
- package/dist/types/dto/company/CompanyRequest.js +1 -1
- package/dist/types/dto/company/CreateCompanyRequest.js +1 -1
- package/dist/types/dto/contact/ContactRequest.js +2 -2
- package/dist/types/dto/contact/ProfileContactRequest.js +3 -3
- package/dist/types/dto/contactgroup/ContactGroupRequest.js +1 -1
- package/dist/types/dto/contactgroup/MembershipStatusRequest.js +1 -1
- package/dist/types/dto/contactgroupattribute/ContactGroupAttributeOptionRequest.js +1 -1
- package/dist/types/dto/contactgroupattribute/ContactGroupAttributeRequest.js +1 -1
- package/dist/types/dto/customer/CustomerAddressRequest.d.ts +9 -0
- package/dist/types/dto/customer/CustomerAddressRequest.js +11 -0
- package/dist/types/dto/customer/CustomerCancelRequest.d.ts +6 -0
- package/dist/types/dto/customer/CustomerCancelRequest.js +8 -0
- package/dist/types/dto/customer/CustomerConfigurationRequest.d.ts +8 -0
- package/dist/types/dto/customer/CustomerConfigurationRequest.js +10 -0
- package/dist/types/dto/customer/CustomerDeliveryPersonChangeRequest.d.ts +16 -0
- package/dist/types/dto/customer/CustomerDeliveryPersonChangeRequest.js +9 -0
- package/dist/types/dto/customer/CustomerDeliveryPersonRequest.d.ts +14 -0
- package/dist/types/dto/customer/CustomerDeliveryPersonRequest.js +12 -0
- package/dist/types/dto/customer/CustomerLoginLinkRequest.d.ts +14 -0
- package/dist/types/dto/customer/CustomerLoginLinkRequest.js +11 -0
- package/dist/types/dto/customer/CustomerPauseRequest.d.ts +6 -0
- package/dist/types/dto/customer/CustomerPauseRequest.js +8 -0
- package/dist/types/dto/customer/CustomerPaymentMethodRequest.d.ts +6 -0
- package/dist/types/dto/customer/CustomerPaymentMethodRequest.js +8 -0
- package/dist/types/dto/customer/CustomerPlanChangeRequest.d.ts +6 -0
- package/dist/types/dto/customer/CustomerPlanChangeRequest.js +8 -0
- package/dist/types/dto/customer/CustomerScheduleRequest.d.ts +25 -0
- package/dist/types/dto/customer/CustomerScheduleRequest.js +9 -0
- package/dist/types/dto/customer/CustomerSessionRequest.d.ts +6 -0
- package/dist/types/dto/customer/CustomerSessionRequest.js +8 -0
- package/dist/types/dto/enums/ApplicationError.d.ts +29 -0
- package/dist/types/dto/enums/ApplicationError.js +1 -1
- package/dist/types/dto/enums/EntityKind.d.ts +1 -0
- package/dist/types/dto/enums/EntityKind.js +1 -1
- package/dist/types/dto/enums/SettingIdentifier.d.ts +8 -0
- package/dist/types/dto/enums/SettingIdentifier.js +1 -1
- package/dist/types/dto/enums/automation/TriggerEvent.d.ts +4 -0
- package/dist/types/dto/enums/automation/TriggerEvent.js +1 -1
- package/dist/types/dto/enums/customer/CustomerPaymentRetry.d.ts +10 -0
- package/dist/types/dto/enums/customer/CustomerPaymentRetry.js +6 -0
- package/dist/types/dto/enums/customer/CustomerTransactionKind.d.ts +7 -0
- package/dist/types/dto/enums/customer/CustomerTransactionKind.js +6 -0
- package/dist/types/dto/enums/mail/EmailTemplateType.d.ts +2 -0
- package/dist/types/dto/enums/mail/EmailTemplateType.js +1 -1
- package/dist/types/dto/enums/mail/PlaceholderGroup.d.ts +2 -0
- package/dist/types/dto/enums/mail/PlaceholderGroup.js +1 -1
- package/dist/types/dto/enums/payment/PaymentStatus.d.ts +1 -1
- package/dist/types/dto/enums/property/PricingModel.d.ts +2 -2
- package/dist/types/dto/enums/property/PublishImportStatus.d.ts +1 -1
- package/dist/types/dto/enums/sales/OrderSource.d.ts +1 -0
- package/dist/types/dto/enums/sales/OrderSource.js +1 -1
- package/dist/types/dto/enums/subscription/SchedulePatternKind.d.ts +1 -1
- package/dist/types/dto/enums/subscription/SubscriptionDeliverySkipReason.d.ts +8 -0
- package/dist/types/dto/enums/subscription/SubscriptionDeliverySkipReason.js +6 -0
- package/dist/types/dto/enums/subscription/SubscriptionDeliveryStatus.d.ts +9 -0
- package/dist/types/dto/enums/subscription/SubscriptionDeliveryStatus.js +6 -0
- package/dist/types/dto/enums/subscription/SubscriptionPeriodStatus.d.ts +9 -0
- package/dist/types/dto/enums/subscription/SubscriptionPeriodStatus.js +6 -0
- package/dist/types/dto/enums/subscription/SubscriptionSecretKind.d.ts +7 -0
- package/dist/types/dto/enums/subscription/SubscriptionSecretKind.js +6 -0
- package/dist/types/dto/enums/subscription/SubscriptionStatus.d.ts +10 -0
- package/dist/types/dto/enums/subscription/SubscriptionStatus.js +6 -0
- package/dist/types/dto/form/FormFieldOptionRequest.js +2 -2
- package/dist/types/dto/form/FormFieldRequest.js +1 -1
- package/dist/types/dto/form/FormItemRequest.js +1 -1
- package/dist/types/dto/form/FormRequest.js +1 -1
- package/dist/types/dto/form/FormSectionRequest.js +1 -1
- package/dist/types/dto/inquiry/InquiryRequest.js +1 -1
- package/dist/types/dto/inventory/InventoryRequest.js +3 -3
- package/dist/types/dto/inventory/InventorySpotRequest.js +1 -1
- package/dist/types/dto/inventory/InventoryTransferRequest.js +1 -1
- package/dist/types/dto/mail/EmailAccountRequest.js +2 -2
- package/dist/types/dto/mail/EmailSignatureRequest.js +2 -2
- package/dist/types/dto/mail/EmailTemplatePreviewRequest.d.ts +3 -0
- package/dist/types/dto/mail/EmailTemplatePreviewRequest.js +2 -2
- package/dist/types/dto/mail/EmailTemplateRequest.d.ts +2 -0
- package/dist/types/dto/mail/EmailTemplateRequest.js +2 -2
- package/dist/types/dto/payment/CheckoutRequest.js +1 -1
- package/dist/types/dto/payment/DynamicSubscriptionSettingsRequest.d.ts +63 -0
- package/dist/types/dto/payment/DynamicSubscriptionSettingsRequest.js +12 -0
- package/dist/types/dto/payment/PaymentAccountRequest.js +1 -1
- package/dist/types/dto/payment/PaymentSettingsRequest.d.ts +60 -0
- package/dist/types/dto/payment/PaymentSettingsRequest.js +3 -1
- package/dist/types/dto/permission/GroupRoleRequest.js +1 -1
- package/dist/types/dto/product/ProductPriceRequest.js +1 -1
- package/dist/types/dto/product/ProductRequest.js +3 -3
- package/dist/types/dto/project/ProjectPricingScenarioRequest.js +1 -1
- package/dist/types/dto/project/ProjectRequest.js +1 -1
- package/dist/types/dto/project/ProjectSubProjectNode.js +2 -2
- package/dist/types/dto/project/ProjectSubProjectRequest.js +1 -1
- package/dist/types/dto/project/ProjectTaskNode.js +2 -2
- package/dist/types/dto/project/ProjectTaskRequest.js +1 -1
- package/dist/types/dto/project/ProjectTemplateRequest.js +1 -1
- package/dist/types/dto/project/SubProjectTemplateRequest.js +1 -1
- package/dist/types/dto/project/SubProjectTemplateTaskNode.js +2 -2
- package/dist/types/dto/property/PropertiesSettingsRequest.js +3 -3
- package/dist/types/dto/property/PropertyEnquiryRequest.js +3 -3
- package/dist/types/dto/property/PropertyInterestRequest.js +1 -1
- package/dist/types/dto/property/PropertyInterestStatusRequest.js +1 -1
- package/dist/types/dto/property/PropertyLeadRequest.js +1 -1
- package/dist/types/dto/property/PropertyLeadRequestContact.js +4 -4
- package/dist/types/dto/property/PropertyRequest.d.ts +2 -2
- package/dist/types/dto/property/PropertyRequest.js +2 -2
- package/dist/types/dto/property/PublishProviderRequest.js +2 -2
- package/dist/types/dto/property/ingest/MailIngestMailboxRequest.js +4 -4
- package/dist/types/dto/property/ingest/MailIngestMailboxTestRequest.js +2 -2
- package/dist/types/dto/purchase/PurchaseInvoiceRequest.js +1 -1
- package/dist/types/dto/purchase/PurchaseOrderStatusRequest.d.ts +1 -1
- package/dist/types/dto/receipt/ReceiptRejectRequest.js +1 -1
- package/dist/types/dto/sales/CreditNoteLineRequest.js +1 -1
- package/dist/types/dto/sales/OrderForwardingRuleRequest.js +3 -3
- package/dist/types/dto/sales/SalesDocumentMailRequest.js +1 -1
- package/dist/types/dto/sales/ingest/OrderIngestPersonRequest.js +3 -3
- package/dist/types/dto/sales/ingest/OrderIngestRequest.js +3 -3
- package/dist/types/dto/security/EmailChangeRequest.js +1 -1
- package/dist/types/dto/security/InviteAcceptRequest.js +3 -3
- package/dist/types/dto/security/OauthGoogleConfirmRequest.js +1 -1
- package/dist/types/dto/security/OauthM365ConfirmRequest.js +1 -1
- package/dist/types/dto/security/PasswordResetRequest.js +3 -3
- package/dist/types/dto/security/PasswordVerifyRequest.js +1 -1
- package/dist/types/dto/security/SignInRequest.js +2 -2
- package/dist/types/dto/security/SignUpRequest.js +1 -1
- package/dist/types/dto/storage/batch/BatchRequest.js +2 -2
- package/dist/types/dto/storage/batchstoragesite/BatchStorageSiteRequest.js +1 -1
- package/dist/types/dto/storage/productregion/ProductRegionRequest.js +1 -1
- package/dist/types/dto/storage/storagesite/StorageSiteRequest.js +2 -2
- package/dist/types/dto/subscription/DynamicSubscriptionRequest.d.ts +33 -0
- package/dist/types/dto/subscription/DynamicSubscriptionRequest.js +12 -0
- package/dist/types/dto/subscription/ScheduleDefinition.d.ts +2 -2
- package/dist/types/dto/subscription/SchedulePattern.d.ts +1 -1
- package/dist/types/dto/subscription/SubscriptionCancelRequest.d.ts +6 -0
- package/dist/types/dto/subscription/SubscriptionCancelRequest.js +8 -0
- package/dist/types/dto/subscription/SubscriptionCheckoutRequest.d.ts +96 -0
- package/dist/types/dto/subscription/SubscriptionCheckoutRequest.js +26 -0
- package/dist/types/dto/subscription/SubscriptionDeliveryContactRequest.d.ts +6 -0
- package/dist/types/dto/subscription/SubscriptionDeliveryContactRequest.js +8 -0
- package/dist/types/dto/subscription/SubscriptionPlanPriceRequest.js +1 -1
- package/dist/types/dto/subscription/SubscriptionPlanRequest.d.ts +2 -2
- package/dist/types/dto/subscription/SubscriptionPlanRequest.js +1 -1
- package/dist/types/dto/subscription/SubscriptionScheduleRequest.d.ts +25 -0
- package/dist/types/dto/subscription/SubscriptionScheduleRequest.js +9 -0
- package/dist/types/dto/user/UserReplaceRequest.js +2 -2
- package/dist/types/dto/user/UserRequest.js +2 -2
- package/dist/types/entity/purchase/PurchaseOrderStatus.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ exports.PurchaseInvoiceRequestModel = void 0;
|
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.PurchaseInvoiceRequestModel = zod_1.z.object({
|
|
7
7
|
supplierContactId: zod_1.z.number().int(),
|
|
8
|
-
invoiceNumber: zod_1.z.string().regex(
|
|
8
|
+
invoiceNumber: zod_1.z.string().regex(/\S/).min(0).max(255),
|
|
9
9
|
invoiceDate: zod_1.z.string(),
|
|
10
10
|
totalAmount: zod_1.z.number(),
|
|
11
11
|
notes: zod_1.z.string().min(0).max(2000).optional().nullable(),
|
|
@@ -2,8 +2,8 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const PurchaseOrderStatusRequestModel: z.ZodObject<{
|
|
3
3
|
status: z.ZodEnum<{
|
|
4
4
|
CANCELLED: "CANCELLED";
|
|
5
|
-
DRAFT: "DRAFT";
|
|
6
5
|
ORDERED: "ORDERED";
|
|
6
|
+
DRAFT: "DRAFT";
|
|
7
7
|
PARTIALLY_DELIVERED: "PARTIALLY_DELIVERED";
|
|
8
8
|
DELIVERED: "DELIVERED";
|
|
9
9
|
}>;
|
|
@@ -4,5 +4,5 @@ exports.ReceiptRejectRequestModel = void 0;
|
|
|
4
4
|
// Generated by Adibilis Java Type Generator
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.ReceiptRejectRequestModel = zod_1.z.object({
|
|
7
|
-
reason: zod_1.z.string().regex(
|
|
7
|
+
reason: zod_1.z.string().regex(/\S/).min(0).max(1000),
|
|
8
8
|
});
|
|
@@ -4,7 +4,7 @@ exports.CreditNoteLineRequestModel = void 0;
|
|
|
4
4
|
// Generated by Adibilis Java Type Generator
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.CreditNoteLineRequestModel = zod_1.z.object({
|
|
7
|
-
description: zod_1.z.string().regex(
|
|
7
|
+
description: zod_1.z.string().regex(/\S/).min(0).max(1000),
|
|
8
8
|
amount: zod_1.z.number(),
|
|
9
9
|
vatRate: zod_1.z.number(),
|
|
10
10
|
});
|
|
@@ -4,9 +4,9 @@ exports.OrderForwardingRuleRequestModel = void 0;
|
|
|
4
4
|
// Generated by Adibilis Java Type Generator
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.OrderForwardingRuleRequestModel = zod_1.z.object({
|
|
7
|
-
name: zod_1.z.string().regex(
|
|
8
|
-
email: zod_1.z.string().regex(
|
|
9
|
-
language: zod_1.z.string().regex(
|
|
7
|
+
name: zod_1.z.string().regex(/\S/).min(0).max(255),
|
|
8
|
+
email: zod_1.z.string().regex(/\S/).email().min(0).max(255),
|
|
9
|
+
language: zod_1.z.string().regex(/\S/).regex(/^(?:^(de|en|fr|it)$)$/),
|
|
10
10
|
countries: zod_1.z.array(zod_1.z.string()).optional().nullable(),
|
|
11
11
|
catchAll: zod_1.z.boolean(),
|
|
12
12
|
});
|
|
@@ -6,7 +6,7 @@ const zod_1 = require("zod");
|
|
|
6
6
|
exports.SalesDocumentMailRequestModel = zod_1.z.object({
|
|
7
7
|
templateId: zod_1.z.number().int().optional().nullable(),
|
|
8
8
|
language: zod_1.z.enum(['DE', 'FR', 'IT', 'EN']).optional().nullable(),
|
|
9
|
-
subject: zod_1.z.string().regex(
|
|
9
|
+
subject: zod_1.z.string().regex(/\S/).min(0).max(500),
|
|
10
10
|
body: zod_1.z.string().min(0).max(1000000).optional().nullable(),
|
|
11
11
|
recipientContactId: zod_1.z.number().int().optional().nullable(),
|
|
12
12
|
ccSender: zod_1.z.boolean().optional().nullable(),
|
|
@@ -5,9 +5,9 @@ exports.OrderIngestPersonRequestModel = void 0;
|
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const OrderIngestAddressRequest_1 = require("./OrderIngestAddressRequest");
|
|
7
7
|
exports.OrderIngestPersonRequestModel = zod_1.z.object({
|
|
8
|
-
email: zod_1.z.string().regex(
|
|
9
|
-
firstname: zod_1.z.string().regex(
|
|
10
|
-
lastname: zod_1.z.string().regex(
|
|
8
|
+
email: zod_1.z.string().regex(/\S/).email(),
|
|
9
|
+
firstname: zod_1.z.string().regex(/\S/),
|
|
10
|
+
lastname: zod_1.z.string().regex(/\S/),
|
|
11
11
|
phone: zod_1.z.string().optional().nullable(),
|
|
12
12
|
address: OrderIngestAddressRequest_1.OrderIngestAddressRequestModel.optional().nullable(),
|
|
13
13
|
});
|
|
@@ -6,9 +6,9 @@ const zod_1 = require("zod");
|
|
|
6
6
|
const OrderIngestPersonRequest_1 = require("./OrderIngestPersonRequest");
|
|
7
7
|
const OrderIngestLineItemRequest_1 = require("./OrderIngestLineItemRequest");
|
|
8
8
|
exports.OrderIngestRequestModel = zod_1.z.object({
|
|
9
|
-
externalRef: zod_1.z.string().regex(
|
|
10
|
-
externalSource: zod_1.z.string().regex(
|
|
11
|
-
currency: zod_1.z.string().regex(
|
|
9
|
+
externalRef: zod_1.z.string().regex(/\S/),
|
|
10
|
+
externalSource: zod_1.z.string().regex(/\S/),
|
|
11
|
+
currency: zod_1.z.string().regex(/\S/),
|
|
12
12
|
priceMode: zod_1.z.enum(['BRUTTO', 'NETTO']),
|
|
13
13
|
vatTotal: zod_1.z.number(),
|
|
14
14
|
grandTotal: zod_1.z.number(),
|
|
@@ -5,7 +5,7 @@ exports.InviteAcceptRequestModel = void 0;
|
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.InviteAcceptRequestModel = zod_1.z.object({
|
|
7
7
|
email: zod_1.z.string(),
|
|
8
|
-
password: zod_1.z.string().regex(
|
|
9
|
-
token: zod_1.z.string().regex(
|
|
10
|
-
checkPassword: zod_1.z.string().regex(
|
|
8
|
+
password: zod_1.z.string().regex(/\S/),
|
|
9
|
+
token: zod_1.z.string().regex(/\S/),
|
|
10
|
+
checkPassword: zod_1.z.string().regex(/\S/),
|
|
11
11
|
});
|
|
@@ -4,5 +4,5 @@ exports.OauthGoogleConfirmRequestModel = void 0;
|
|
|
4
4
|
// Generated by Adibilis Java Type Generator
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.OauthGoogleConfirmRequestModel = zod_1.z.object({
|
|
7
|
-
ticket: zod_1.z.string().regex(
|
|
7
|
+
ticket: zod_1.z.string().regex(/\S/),
|
|
8
8
|
});
|
|
@@ -4,7 +4,7 @@ exports.PasswordResetRequestModel = void 0;
|
|
|
4
4
|
// Generated by Adibilis Java Type Generator
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.PasswordResetRequestModel = zod_1.z.object({
|
|
7
|
-
password: zod_1.z.string().regex(
|
|
8
|
-
token: zod_1.z.string().regex(
|
|
9
|
-
checkPassword: zod_1.z.string().regex(
|
|
7
|
+
password: zod_1.z.string().regex(/\S/),
|
|
8
|
+
token: zod_1.z.string().regex(/\S/),
|
|
9
|
+
checkPassword: zod_1.z.string().regex(/\S/),
|
|
10
10
|
});
|
|
@@ -4,6 +4,6 @@ exports.SignInRequestModel = void 0;
|
|
|
4
4
|
// Generated by Adibilis Java Type Generator
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.SignInRequestModel = zod_1.z.object({
|
|
7
|
-
username: zod_1.z.string().regex(
|
|
8
|
-
password: zod_1.z.string().regex(
|
|
7
|
+
username: zod_1.z.string().regex(/\S/),
|
|
8
|
+
password: zod_1.z.string().regex(/\S/),
|
|
9
9
|
});
|
|
@@ -6,7 +6,7 @@ const zod_1 = require("zod");
|
|
|
6
6
|
const ProfileContactRequest_1 = require("../contact/ProfileContactRequest");
|
|
7
7
|
const CompanyRequest_1 = require("../company/CompanyRequest");
|
|
8
8
|
exports.SignUpRequestModel = zod_1.z.object({
|
|
9
|
-
email: zod_1.z.string().regex(
|
|
9
|
+
email: zod_1.z.string().regex(/\S/).email(),
|
|
10
10
|
password: zod_1.z.string().optional().nullable(),
|
|
11
11
|
contact: ProfileContactRequest_1.ProfileContactRequestModel,
|
|
12
12
|
company: CompanyRequest_1.CompanyRequestModel.optional().nullable(),
|
|
@@ -4,9 +4,9 @@ exports.BatchRequestModel = void 0;
|
|
|
4
4
|
// Generated by Adibilis Java Type Generator
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.BatchRequestModel = zod_1.z.object({
|
|
7
|
-
batchNr: zod_1.z.string().regex(
|
|
7
|
+
batchNr: zod_1.z.string().regex(/\S/),
|
|
8
8
|
productId: zod_1.z.number().int(),
|
|
9
9
|
productionDate: zod_1.z.string(),
|
|
10
10
|
expiryDate: zod_1.z.string().optional().nullable(),
|
|
11
|
-
amount: zod_1.z.string().regex(
|
|
11
|
+
amount: zod_1.z.string().regex(/\S/).regex(/^(?:^(?!0+(\.0+)?$)\d+(\.\d{1,2})?$)$/),
|
|
12
12
|
});
|
|
@@ -7,5 +7,5 @@ exports.BatchStorageSiteRequestModel = zod_1.z.object({
|
|
|
7
7
|
batchId: zod_1.z.number().int(),
|
|
8
8
|
storageSiteId: zod_1.z.number().int(),
|
|
9
9
|
spotId: zod_1.z.number().int().optional().nullable(),
|
|
10
|
-
amount: zod_1.z.string().regex(
|
|
10
|
+
amount: zod_1.z.string().regex(/\S/).regex(/^(?:^(?!0+(\.0+)?$)\d+(\.\d{1,2})?$)$/),
|
|
11
11
|
});
|
|
@@ -4,7 +4,7 @@ exports.ProductRegionRequestModel = void 0;
|
|
|
4
4
|
// Generated by Adibilis Java Type Generator
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.ProductRegionRequestModel = zod_1.z.object({
|
|
7
|
-
name: zod_1.z.string().regex(
|
|
7
|
+
name: zod_1.z.string().regex(/\S/),
|
|
8
8
|
productId: zod_1.z.number().int(),
|
|
9
9
|
storageSiteId: zod_1.z.number().int(),
|
|
10
10
|
countryCodes: zod_1.z.array(zod_1.z.string()).optional().nullable(),
|
|
@@ -6,8 +6,8 @@ const zod_1 = require("zod");
|
|
|
6
6
|
const AddressDto_1 = require("../../AddressDto");
|
|
7
7
|
const SpotRequest_1 = require("../spot/SpotRequest");
|
|
8
8
|
exports.StorageSiteRequestModel = zod_1.z.object({
|
|
9
|
-
name: zod_1.z.string().regex(
|
|
10
|
-
area: zod_1.z.string().regex(
|
|
9
|
+
name: zod_1.z.string().regex(/\S/).min(0).max(255),
|
|
10
|
+
area: zod_1.z.string().regex(/\S/).regex(/^(?:^\d{1,10}(\.\d{1,2})?$)$/),
|
|
11
11
|
address: AddressDto_1.AddressDtoModel,
|
|
12
12
|
spots: zod_1.z.array(SpotRequest_1.SpotRequestModel).optional().nullable(),
|
|
13
13
|
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const DynamicSubscriptionRequestModel: z.ZodObject<{
|
|
3
|
+
unitAmount: z.ZodNumber;
|
|
4
|
+
vatRate: z.ZodNumber;
|
|
5
|
+
priceMode: z.ZodEnum<{
|
|
6
|
+
BRUTTO: "BRUTTO";
|
|
7
|
+
NETTO: "NETTO";
|
|
8
|
+
}>;
|
|
9
|
+
lineItems: z.ZodArray<z.ZodObject<{
|
|
10
|
+
kind: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
PRODUCT_LINKED: "PRODUCT_LINKED";
|
|
12
|
+
EXTERNAL_PRODUCT: "EXTERNAL_PRODUCT";
|
|
13
|
+
SERVICE: "SERVICE";
|
|
14
|
+
NOTE: "NOTE";
|
|
15
|
+
}>>>;
|
|
16
|
+
textHtml: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17
|
+
quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
18
|
+
unitType: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
KG: "KG";
|
|
20
|
+
HOURS: "HOURS";
|
|
21
|
+
PIECES: "PIECES";
|
|
22
|
+
DAYS: "DAYS";
|
|
23
|
+
METERS: "METERS";
|
|
24
|
+
FLAT_RATE: "FLAT_RATE";
|
|
25
|
+
}>>>;
|
|
26
|
+
unitPrice: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
27
|
+
vatRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
28
|
+
externalRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
29
|
+
productId: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type DynamicSubscriptionRequest = z.infer<typeof DynamicSubscriptionRequestModel>;
|
|
33
|
+
//# sourceMappingURL=DynamicSubscriptionRequest.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamicSubscriptionRequestModel = void 0;
|
|
4
|
+
// Generated by Adibilis Java Type Generator
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const OrderIngestLineItemRequest_1 = require("../sales/ingest/OrderIngestLineItemRequest");
|
|
7
|
+
exports.DynamicSubscriptionRequestModel = zod_1.z.object({
|
|
8
|
+
unitAmount: zod_1.z.number(),
|
|
9
|
+
vatRate: zod_1.z.number(),
|
|
10
|
+
priceMode: zod_1.z.enum(['BRUTTO', 'NETTO']),
|
|
11
|
+
lineItems: zod_1.z.array(OrderIngestLineItemRequest_1.OrderIngestLineItemRequestModel).min(1).max(100),
|
|
12
|
+
});
|
|
@@ -7,8 +7,8 @@ export declare const ScheduleDefinitionModel: z.ZodObject<{
|
|
|
7
7
|
}>;
|
|
8
8
|
pattern: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9
9
|
kind: z.ZodEnum<{
|
|
10
|
-
MONTHLY: "MONTHLY";
|
|
11
10
|
WEEKLY: "WEEKLY";
|
|
11
|
+
MONTHLY: "MONTHLY";
|
|
12
12
|
YEARLY: "YEARLY";
|
|
13
13
|
}>;
|
|
14
14
|
weekdays: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -27,8 +27,8 @@ export declare const ScheduleDefinitionModel: z.ZodObject<{
|
|
|
27
27
|
}, z.core.$strip>>>;
|
|
28
28
|
options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
29
29
|
kind: z.ZodEnum<{
|
|
30
|
-
MONTHLY: "MONTHLY";
|
|
31
30
|
WEEKLY: "WEEKLY";
|
|
31
|
+
MONTHLY: "MONTHLY";
|
|
32
32
|
YEARLY: "YEARLY";
|
|
33
33
|
}>;
|
|
34
34
|
weekdays: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SubscriptionCancelRequestModel: z.ZodObject<{
|
|
3
|
+
atPeriodEnd: z.ZodBoolean;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export type SubscriptionCancelRequest = z.infer<typeof SubscriptionCancelRequestModel>;
|
|
6
|
+
//# sourceMappingURL=SubscriptionCancelRequest.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionCancelRequestModel = void 0;
|
|
4
|
+
// Generated by Adibilis Java Type Generator
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
exports.SubscriptionCancelRequestModel = zod_1.z.object({
|
|
7
|
+
atPeriodEnd: zod_1.z.boolean(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SubscriptionCheckoutRequestModel: z.ZodObject<{
|
|
3
|
+
planId: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
4
|
+
dynamic: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
5
|
+
unitAmount: z.ZodNumber;
|
|
6
|
+
vatRate: z.ZodNumber;
|
|
7
|
+
priceMode: z.ZodEnum<{
|
|
8
|
+
BRUTTO: "BRUTTO";
|
|
9
|
+
NETTO: "NETTO";
|
|
10
|
+
}>;
|
|
11
|
+
lineItems: z.ZodArray<z.ZodObject<{
|
|
12
|
+
kind: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
PRODUCT_LINKED: "PRODUCT_LINKED";
|
|
14
|
+
EXTERNAL_PRODUCT: "EXTERNAL_PRODUCT";
|
|
15
|
+
SERVICE: "SERVICE";
|
|
16
|
+
NOTE: "NOTE";
|
|
17
|
+
}>>>;
|
|
18
|
+
textHtml: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
19
|
+
quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
20
|
+
unitType: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
KG: "KG";
|
|
22
|
+
HOURS: "HOURS";
|
|
23
|
+
PIECES: "PIECES";
|
|
24
|
+
DAYS: "DAYS";
|
|
25
|
+
METERS: "METERS";
|
|
26
|
+
FLAT_RATE: "FLAT_RATE";
|
|
27
|
+
}>>>;
|
|
28
|
+
unitPrice: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
29
|
+
vatRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
30
|
+
externalRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
31
|
+
productId: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
}, z.core.$strip>>>;
|
|
34
|
+
currency: z.ZodString;
|
|
35
|
+
schedule: z.ZodObject<{
|
|
36
|
+
kind: z.ZodEnum<{
|
|
37
|
+
WEEKLY: "WEEKLY";
|
|
38
|
+
MONTHLY: "MONTHLY";
|
|
39
|
+
YEARLY: "YEARLY";
|
|
40
|
+
}>;
|
|
41
|
+
weekdays: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
42
|
+
MON: "MON";
|
|
43
|
+
TUE: "TUE";
|
|
44
|
+
WED: "WED";
|
|
45
|
+
THU: "THU";
|
|
46
|
+
FRI: "FRI";
|
|
47
|
+
SAT: "SAT";
|
|
48
|
+
SUN: "SUN";
|
|
49
|
+
}>>>>;
|
|
50
|
+
everyNWeeks: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
51
|
+
dayOfMonth: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
52
|
+
month: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
53
|
+
day: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
configuration: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
56
|
+
configurationText: z.ZodString;
|
|
57
|
+
billingPerson: z.ZodObject<{
|
|
58
|
+
email: z.ZodString;
|
|
59
|
+
firstname: z.ZodString;
|
|
60
|
+
lastname: z.ZodString;
|
|
61
|
+
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
62
|
+
address: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
63
|
+
street: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
64
|
+
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
65
|
+
postalCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
66
|
+
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
67
|
+
}, z.core.$strip>>>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
deliveryPerson: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
70
|
+
email: z.ZodString;
|
|
71
|
+
firstname: z.ZodString;
|
|
72
|
+
lastname: z.ZodString;
|
|
73
|
+
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
74
|
+
address: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
75
|
+
street: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
76
|
+
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
77
|
+
postalCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
78
|
+
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
79
|
+
}, z.core.$strip>>>;
|
|
80
|
+
}, z.core.$strip>>>;
|
|
81
|
+
fulfillmentType: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
82
|
+
DELIVERY: "DELIVERY";
|
|
83
|
+
PICKUP: "PICKUP";
|
|
84
|
+
DIGITAL: "DIGITAL";
|
|
85
|
+
ON_SITE: "ON_SITE";
|
|
86
|
+
}>>>;
|
|
87
|
+
customerNote: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
88
|
+
startDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
89
|
+
externalSource: z.ZodString;
|
|
90
|
+
externalRef: z.ZodString;
|
|
91
|
+
returnUrl: z.ZodString;
|
|
92
|
+
preview: z.ZodBoolean;
|
|
93
|
+
expectedAmount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
export type SubscriptionCheckoutRequest = z.infer<typeof SubscriptionCheckoutRequestModel>;
|
|
96
|
+
//# sourceMappingURL=SubscriptionCheckoutRequest.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionCheckoutRequestModel = void 0;
|
|
4
|
+
// Generated by Adibilis Java Type Generator
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const DynamicSubscriptionRequest_1 = require("./DynamicSubscriptionRequest");
|
|
7
|
+
const SchedulePattern_1 = require("./SchedulePattern");
|
|
8
|
+
const OrderIngestPersonRequest_1 = require("../sales/ingest/OrderIngestPersonRequest");
|
|
9
|
+
exports.SubscriptionCheckoutRequestModel = zod_1.z.object({
|
|
10
|
+
planId: zod_1.z.number().int().optional().nullable(),
|
|
11
|
+
dynamic: DynamicSubscriptionRequest_1.DynamicSubscriptionRequestModel.optional().nullable(),
|
|
12
|
+
currency: zod_1.z.string().regex(/\S/).min(0).max(3),
|
|
13
|
+
schedule: SchedulePattern_1.SchedulePatternModel,
|
|
14
|
+
configuration: zod_1.z.string().min(0).max(8192).optional().nullable(),
|
|
15
|
+
configurationText: zod_1.z.string().regex(/\S/).min(0).max(500),
|
|
16
|
+
billingPerson: OrderIngestPersonRequest_1.OrderIngestPersonRequestModel,
|
|
17
|
+
deliveryPerson: OrderIngestPersonRequest_1.OrderIngestPersonRequestModel.optional().nullable(),
|
|
18
|
+
fulfillmentType: zod_1.z.enum(['DELIVERY', 'PICKUP', 'DIGITAL', 'ON_SITE']).optional().nullable(),
|
|
19
|
+
customerNote: zod_1.z.string().min(0).max(2000).optional().nullable(),
|
|
20
|
+
startDate: zod_1.z.string().optional().nullable(),
|
|
21
|
+
externalSource: zod_1.z.string().regex(/\S/).min(0).max(40),
|
|
22
|
+
externalRef: zod_1.z.string().regex(/\S/).min(0).max(120),
|
|
23
|
+
returnUrl: zod_1.z.string().regex(/\S/),
|
|
24
|
+
preview: zod_1.z.boolean(),
|
|
25
|
+
expectedAmount: zod_1.z.number().optional().nullable(),
|
|
26
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SubscriptionDeliveryContactRequestModel: z.ZodObject<{
|
|
3
|
+
contactId: z.ZodNumber;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export type SubscriptionDeliveryContactRequest = z.infer<typeof SubscriptionDeliveryContactRequestModel>;
|
|
6
|
+
//# sourceMappingURL=SubscriptionDeliveryContactRequest.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionDeliveryContactRequestModel = void 0;
|
|
4
|
+
// Generated by Adibilis Java Type Generator
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
exports.SubscriptionDeliveryContactRequestModel = zod_1.z.object({
|
|
7
|
+
contactId: zod_1.z.number().int(),
|
|
8
|
+
});
|
|
@@ -4,7 +4,7 @@ exports.SubscriptionPlanPriceRequestModel = void 0;
|
|
|
4
4
|
// Generated by Adibilis Java Type Generator
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.SubscriptionPlanPriceRequestModel = zod_1.z.object({
|
|
7
|
-
currency: zod_1.z.string().regex(
|
|
7
|
+
currency: zod_1.z.string().regex(/\S/),
|
|
8
8
|
amount: zod_1.z.number(),
|
|
9
9
|
vatRate: zod_1.z.number().optional().nullable(),
|
|
10
10
|
});
|
|
@@ -24,8 +24,8 @@ export declare const SubscriptionPlanRequestModel: z.ZodObject<{
|
|
|
24
24
|
}>;
|
|
25
25
|
pattern: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
26
26
|
kind: z.ZodEnum<{
|
|
27
|
-
MONTHLY: "MONTHLY";
|
|
28
27
|
WEEKLY: "WEEKLY";
|
|
28
|
+
MONTHLY: "MONTHLY";
|
|
29
29
|
YEARLY: "YEARLY";
|
|
30
30
|
}>;
|
|
31
31
|
weekdays: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -44,8 +44,8 @@ export declare const SubscriptionPlanRequestModel: z.ZodObject<{
|
|
|
44
44
|
}, z.core.$strip>>>;
|
|
45
45
|
options: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
46
46
|
kind: z.ZodEnum<{
|
|
47
|
-
MONTHLY: "MONTHLY";
|
|
48
47
|
WEEKLY: "WEEKLY";
|
|
48
|
+
MONTHLY: "MONTHLY";
|
|
49
49
|
YEARLY: "YEARLY";
|
|
50
50
|
}>;
|
|
51
51
|
weekdays: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -6,7 +6,7 @@ const zod_1 = require("zod");
|
|
|
6
6
|
const ScheduleDefinition_1 = require("./ScheduleDefinition");
|
|
7
7
|
const SubscriptionPlanPriceRequest_1 = require("./SubscriptionPlanPriceRequest");
|
|
8
8
|
exports.SubscriptionPlanRequestModel = zod_1.z.object({
|
|
9
|
-
title: zod_1.z.string().regex(
|
|
9
|
+
title: zod_1.z.string().regex(/\S/).min(0).max(255),
|
|
10
10
|
description: zod_1.z.string().min(0).max(2000).optional().nullable(),
|
|
11
11
|
billingInterval: zod_1.z.enum(['WEEK', 'MONTH', 'YEAR']),
|
|
12
12
|
billingIntervalCount: zod_1.z.number().int().min(1).max(52),
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SubscriptionScheduleRequestModel: z.ZodObject<{
|
|
3
|
+
schedule: z.ZodObject<{
|
|
4
|
+
kind: z.ZodEnum<{
|
|
5
|
+
WEEKLY: "WEEKLY";
|
|
6
|
+
MONTHLY: "MONTHLY";
|
|
7
|
+
YEARLY: "YEARLY";
|
|
8
|
+
}>;
|
|
9
|
+
weekdays: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
10
|
+
MON: "MON";
|
|
11
|
+
TUE: "TUE";
|
|
12
|
+
WED: "WED";
|
|
13
|
+
THU: "THU";
|
|
14
|
+
FRI: "FRI";
|
|
15
|
+
SAT: "SAT";
|
|
16
|
+
SUN: "SUN";
|
|
17
|
+
}>>>>;
|
|
18
|
+
everyNWeeks: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
19
|
+
dayOfMonth: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
20
|
+
month: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
21
|
+
day: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type SubscriptionScheduleRequest = z.infer<typeof SubscriptionScheduleRequestModel>;
|
|
25
|
+
//# sourceMappingURL=SubscriptionScheduleRequest.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionScheduleRequestModel = void 0;
|
|
4
|
+
// Generated by Adibilis Java Type Generator
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const SchedulePattern_1 = require("./SchedulePattern");
|
|
7
|
+
exports.SubscriptionScheduleRequestModel = zod_1.z.object({
|
|
8
|
+
schedule: SchedulePattern_1.SchedulePatternModel,
|
|
9
|
+
});
|
|
@@ -4,8 +4,8 @@ exports.UserReplaceRequestModel = void 0;
|
|
|
4
4
|
// Generated by Adibilis Java Type Generator
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.UserReplaceRequestModel = zod_1.z.object({
|
|
7
|
-
email: zod_1.z.string().regex(
|
|
7
|
+
email: zod_1.z.string().regex(/\S/).email().min(0).max(255),
|
|
8
8
|
password: zod_1.z.string().optional().nullable(),
|
|
9
|
-
language: zod_1.z.string().regex(
|
|
9
|
+
language: zod_1.z.string().regex(/\S/).regex(/^(?:^(en|de|fr|it)$)$/),
|
|
10
10
|
contactGroupIds: zod_1.z.array(zod_1.z.number()).optional().nullable(),
|
|
11
11
|
});
|
|
@@ -5,9 +5,9 @@ exports.UserRequestModel = void 0;
|
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const ContactRequest_1 = require("../contact/ContactRequest");
|
|
7
7
|
exports.UserRequestModel = zod_1.z.object({
|
|
8
|
-
email: zod_1.z.string().regex(
|
|
8
|
+
email: zod_1.z.string().regex(/\S/).email().min(0).max(255),
|
|
9
9
|
password: zod_1.z.string().optional().nullable(),
|
|
10
|
-
language: zod_1.z.string().regex(
|
|
10
|
+
language: zod_1.z.string().regex(/\S/).regex(/^(?:^(en|de|fr|it)$)$/),
|
|
11
11
|
contactGroupIds: zod_1.z.array(zod_1.z.number()).optional().nullable(),
|
|
12
12
|
contact: ContactRequest_1.ContactRequestModel,
|
|
13
13
|
groupRoleIds: zod_1.z.array(zod_1.z.number()).optional().nullable(),
|
package/package.json
CHANGED