@merchi/sdk 1.42.15 → 1.42.17
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/constants/auto_assign_production_on_actions.d.ts +6 -0
- package/dist/constants/call_to_actions.d.ts +14 -0
- package/dist/constants/call_to_actions.test.d.ts +1 -0
- package/dist/constants/discount_types.d.ts +5 -0
- package/dist/constants/discount_types.test.d.ts +1 -0
- package/dist/constants/domain_types.d.ts +12 -0
- package/dist/constants/domain_types.test.d.ts +1 -0
- package/dist/constants/errors.d.ts +26 -0
- package/dist/constants/event_types.d.ts +5 -0
- package/dist/constants/event_types.test.d.ts +1 -0
- package/dist/constants/field_types.d.ts +18 -0
- package/dist/constants/field_types.js +1 -0
- package/dist/constants/field_types.test.d.ts +1 -0
- package/dist/constants/index.d.ts +25 -0
- package/dist/constants/input_types.d.ts +13 -0
- package/dist/constants/input_types.test.d.ts +1 -0
- package/dist/constants/inventory_status.test.d.ts +1 -0
- package/dist/constants/inventory_statuses.d.ts +6 -0
- package/dist/constants/invoice_types.d.ts +5 -0
- package/dist/constants/invoice_types.test.d.ts +1 -0
- package/dist/constants/item_types.d.ts +5 -0
- package/dist/constants/item_types.test.d.ts +1 -0
- package/dist/constants/job/drafting_status.d.ts +7 -0
- package/dist/constants/job/drafting_status.test.d.ts +1 -0
- package/dist/constants/job/payment_status.d.ts +7 -0
- package/dist/constants/job/payment_status.test.d.ts +1 -0
- package/dist/constants/job/production_status.d.ts +12 -0
- package/dist/constants/job/production_status.test.d.ts +1 -0
- package/dist/constants/job/shipment_status.d.ts +11 -0
- package/dist/constants/job/shipment_status.test.d.ts +1 -0
- package/dist/constants/job/supply_chain_request_status.d.ts +6 -0
- package/dist/constants/job/supply_chain_request_status.test.d.ts +1 -0
- package/dist/constants/job_priorities.d.ts +6 -0
- package/dist/constants/job_priorities.test.d.ts +1 -0
- package/dist/constants/job_status.d.ts +45 -0
- package/dist/constants/job_status.test.d.ts +1 -0
- package/dist/constants/job_types.d.ts +16 -0
- package/dist/constants/job_types.test.d.ts +1 -0
- package/dist/constants/notification_sections.d.ts +13 -0
- package/dist/constants/notification_sections.test.d.ts +1 -0
- package/dist/constants/notification_types.d.ts +101 -0
- package/dist/constants/notification_types.test.d.ts +1 -0
- package/dist/constants/notification_urgencies.d.ts +6 -0
- package/dist/constants/notification_urgencies.test.d.ts +1 -0
- package/dist/constants/payment_types.d.ts +10 -0
- package/dist/constants/payment_types.test.d.ts +1 -0
- package/dist/constants/platform.d.ts +5 -0
- package/dist/constants/platform.test.d.ts +1 -0
- package/dist/constants/product_types.d.ts +26 -0
- package/dist/constants/product_types.test.d.ts +1 -0
- package/dist/constants/rights.d.ts +5 -0
- package/dist/constants/rights.test.d.ts +1 -0
- package/dist/constants/robots_meta_directives.d.ts +1 -0
- package/dist/constants/robots_meta_directives.test.d.ts +1 -0
- package/dist/constants/roles.d.ts +21 -0
- package/dist/constants/roles.js +3 -0
- package/dist/constants/roles.test.d.ts +1 -0
- package/dist/constants/shipment_companies.d.ts +19 -0
- package/dist/constants/shipment_companies.test.d.ts +1 -0
- package/dist/constants/shipment_services.d.ts +3 -0
- package/dist/constants/shipment_services.test.d.ts +1 -0
- package/dist/constants/system_roles.d.ts +3 -0
- package/dist/constants/system_roles.test.d.ts +1 -0
- package/dist/constants/theme_status.d.ts +5 -0
- package/dist/constants/theme_status.test.d.ts +1 -0
- package/dist/constants/user_types.d.ts +17 -0
- package/dist/constants/user_types.test.d.ts +1 -0
- package/dist/constants/white_label_accessibilities.d.ts +5 -0
- package/dist/constants/white_label_accessibilities.test.d.ts +1 -0
- package/dist/cookie.d.ts +1 -0
- package/dist/cookie.test.d.ts +1 -0
- package/dist/entities/address.d.ts +30 -0
- package/dist/entities/address.test.d.ts +1 -0
- package/dist/entities/agent_conversation.d.ts +18 -0
- package/dist/entities/agent_conversation.test.d.ts +1 -0
- package/dist/entities/agent_skill.d.ts +33 -0
- package/dist/entities/agent_skill.test.d.ts +1 -0
- package/dist/entities/agent_skill_approval.d.ts +13 -0
- package/dist/entities/agent_skill_version.d.ts +18 -0
- package/dist/entities/agent_token_analytics.d.ts +50 -0
- package/dist/entities/agent_token_usage.d.ts +31 -0
- package/dist/entities/agent_token_usage.test.d.ts +1 -0
- package/dist/entities/assignment.d.ts +40 -0
- package/dist/entities/assignment.test.d.ts +1 -0
- package/dist/entities/automatic_payment_relationship.d.ts +14 -0
- package/dist/entities/automatic_payment_relationship.test.d.ts +1 -0
- package/dist/entities/bank.d.ts +20 -0
- package/dist/entities/bank.test.d.ts +1 -0
- package/dist/entities/cart.d.ts +50 -0
- package/dist/entities/cart.test.d.ts +1 -0
- package/dist/entities/cart_item.d.ts +33 -0
- package/dist/entities/cart_item.test.d.ts +1 -0
- package/dist/entities/cart_shipment_group.d.ts +12 -0
- package/dist/entities/cart_shipment_quote.d.ts +16 -0
- package/dist/entities/category.d.ts +26 -0
- package/dist/entities/category.test.d.ts +1 -0
- package/dist/entities/company.d.ts +137 -0
- package/dist/entities/company.test.d.ts +1 -0
- package/dist/entities/company_invitation.d.ts +16 -0
- package/dist/entities/company_invitation.test.d.ts +1 -0
- package/dist/entities/country_tax.d.ts +20 -0
- package/dist/entities/country_tax.test.d.ts +1 -0
- package/dist/entities/discount.d.ts +19 -0
- package/dist/entities/discount.test.d.ts +1 -0
- package/dist/entities/discount_group.d.ts +20 -0
- package/dist/entities/discount_group.test.d.ts +1 -0
- package/dist/entities/domain.d.ts +629 -0
- package/dist/entities/domain.test.d.ts +1 -0
- package/dist/entities/domain_chat_settings.d.ts +33 -0
- package/dist/entities/domain_chat_settings.test.d.ts +1 -0
- package/dist/entities/domain_invitation.d.ts +17 -0
- package/dist/entities/domain_invitation.test.d.ts +1 -0
- package/dist/entities/domain_tag.d.ts +21 -0
- package/dist/entities/domain_tag.test.d.ts +1 -0
- package/dist/entities/draft.d.ts +31 -0
- package/dist/entities/draft.test.d.ts +1 -0
- package/dist/entities/draft_comment.d.ts +28 -0
- package/dist/entities/draft_comment.test.d.ts +1 -0
- package/dist/entities/draft_preview.d.ts +18 -0
- package/dist/entities/draft_preview.test.d.ts +1 -0
- package/dist/entities/draft_preview_layer.d.ts +12 -0
- package/dist/entities/draft_preview_layer.test.d.ts +1 -0
- package/dist/entities/draft_template.d.ts +31 -0
- package/dist/entities/draft_template.js +8 -0
- package/dist/entities/draft_template.test.d.ts +1 -0
- package/dist/entities/email_address.d.ts +13 -0
- package/dist/entities/email_address.test.d.ts +1 -0
- package/dist/entities/email_counter.d.ts +11 -0
- package/dist/entities/email_counter.test.d.ts +1 -0
- package/dist/entities/enrolled_domain.d.ts +16 -0
- package/dist/entities/enrolled_domain.test.d.ts +1 -0
- package/dist/entities/exchange_rate.d.ts +11 -0
- package/dist/entities/exchange_rate.test.d.ts +1 -0
- package/dist/entities/file.d.ts +65 -0
- package/dist/entities/file.test.d.ts +1 -0
- package/dist/entities/internal_tag.d.ts +26 -0
- package/dist/entities/internal_tag.test.d.ts +1 -0
- package/dist/entities/inventory.d.ts +27 -0
- package/dist/entities/inventory.test.d.ts +1 -0
- package/dist/entities/inventory_group.d.ts +19 -0
- package/dist/entities/inventory_group.test.d.ts +1 -0
- package/dist/entities/inventory_unit_variation.d.ts +13 -0
- package/dist/entities/inventory_unit_variation.test.d.ts +1 -0
- package/dist/entities/invoice.d.ts +80 -0
- package/dist/entities/invoice.test.d.ts +1 -0
- package/dist/entities/item.d.ts +24 -0
- package/dist/entities/item.test.d.ts +1 -0
- package/dist/entities/job.d.ts +156 -0
- package/dist/entities/job.test.d.ts +1 -0
- package/dist/entities/job_comment.d.ts +24 -0
- package/dist/entities/job_comment.test.d.ts +1 -0
- package/dist/entities/job_note.d.ts +19 -0
- package/dist/entities/job_operation_log.d.ts +18 -0
- package/dist/entities/job_operation_log.test.d.ts +1 -0
- package/dist/entities/matching_inventory.d.ts +16 -0
- package/dist/entities/notification.d.ts +47 -0
- package/dist/entities/notification.test.d.ts +1 -0
- package/dist/entities/payment.d.ts +28 -0
- package/dist/entities/payment.test.d.ts +1 -0
- package/dist/entities/payment_device.d.ts +14 -0
- package/dist/entities/payment_device.test.d.ts +1 -0
- package/dist/entities/phone_number.d.ts +17 -0
- package/dist/entities/phone_number.test.d.ts +1 -0
- package/dist/entities/product.d.ts +148 -0
- package/dist/entities/product.test.d.ts +1 -0
- package/dist/entities/product_form.d.ts +22 -0
- package/dist/entities/product_form_version.d.ts +20 -0
- package/dist/entities/product_review.d.ts +74 -0
- package/dist/entities/production_comment.d.ts +24 -0
- package/dist/entities/production_comment.test.d.ts +1 -0
- package/dist/entities/quote.d.ts +29 -0
- package/dist/entities/quote.test.d.ts +1 -0
- package/dist/entities/quote_item.d.ts +24 -0
- package/dist/entities/quote_item.test.d.ts +1 -0
- package/dist/entities/reminder.d.ts +35 -0
- package/dist/entities/reminder.test.d.ts +1 -0
- package/dist/entities/session.d.ts +15 -0
- package/dist/entities/session.test.d.ts +1 -0
- package/dist/entities/shipment.d.ts +76 -0
- package/dist/entities/shipment.test.d.ts +1 -0
- package/dist/entities/shipment_item.d.ts +10 -0
- package/dist/entities/shipment_item.test.d.ts +1 -0
- package/dist/entities/shipment_item_fulfillment.d.ts +10 -0
- package/dist/entities/shipment_item_fulfillment.test.d.ts +1 -0
- package/dist/entities/shipment_log.d.ts +15 -0
- package/dist/entities/shipment_method.d.ts +28 -0
- package/dist/entities/shipment_method.test.d.ts +1 -0
- package/dist/entities/shipment_method_variation.d.ts +18 -0
- package/dist/entities/shipment_method_variation.test.d.ts +1 -0
- package/dist/entities/short_url.d.ts +17 -0
- package/dist/entities/short_url.test.d.ts +1 -0
- package/dist/entities/subscription_plan.d.ts +30 -0
- package/dist/entities/subscription_plan.test.d.ts +1 -0
- package/dist/entities/supply_domain.d.ts +14 -0
- package/dist/entities/supply_domain.test.d.ts +1 -0
- package/dist/entities/support_conversation.d.ts +30 -0
- package/dist/entities/support_conversation.test.d.ts +1 -0
- package/dist/entities/support_message.d.ts +15 -0
- package/dist/entities/support_message.test.d.ts +1 -0
- package/dist/entities/system_role.d.ts +10 -0
- package/dist/entities/system_role.test.d.ts +1 -0
- package/dist/entities/theme.d.ts +26 -0
- package/dist/entities/theme.test.d.ts +1 -0
- package/dist/entities/theme_css_setting.d.ts +12 -0
- package/dist/entities/theme_css_setting.test.d.ts +1 -0
- package/dist/entities/user.d.ts +142 -0
- package/dist/entities/user.test.d.ts +1 -0
- package/dist/entities/user_company.d.ts +14 -0
- package/dist/entities/user_company.test.d.ts +1 -0
- package/dist/entities/variation.d.ts +29 -0
- package/dist/entities/variation.test.d.ts +1 -0
- package/dist/entities/variation_field.d.ts +87 -0
- package/dist/entities/variation_field.js +33 -0
- package/dist/entities/variation_field.test.d.ts +1 -0
- package/dist/entities/variation_fields_option.d.ts +36 -0
- package/dist/entities/variation_fields_option.test.d.ts +1 -0
- package/dist/entities/variation_option.d.ts +23 -0
- package/dist/entities/variation_option.test.d.ts +1 -0
- package/dist/entities/variations_group.d.ts +20 -0
- package/dist/entities/variations_group.test.d.ts +1 -0
- package/dist/entity.d.ts +208 -0
- package/dist/index.d.ts +88 -0
- package/dist/merchi.d.ts +179 -0
- package/dist/merchi.test.d.ts +1 -0
- package/dist/pricing/discount.d.ts +2 -0
- package/dist/pricing/discount.test.d.ts +1 -0
- package/dist/pricing/estimate.d.ts +2 -0
- package/dist/pricing/estimate.js +56 -0
- package/dist/pricing/estimate.test.d.ts +1 -0
- package/dist/pricing/estimate.test.js +81 -0
- package/dist/pricing/golden.test.d.ts +1 -0
- package/dist/pricing/index.d.ts +7 -0
- package/dist/pricing/index.test.d.ts +1 -0
- package/dist/pricing/inventory.d.ts +2 -0
- package/dist/pricing/inventory.test.d.ts +1 -0
- package/dist/pricing/matrix.d.ts +10 -0
- package/dist/pricing/matrix.test.d.ts +1 -0
- package/dist/pricing/round.d.ts +13 -0
- package/dist/pricing/round.test.d.ts +1 -0
- package/dist/pricing/types.d.ts +137 -0
- package/dist/pricing/visibility.d.ts +3 -0
- package/dist/pricing/visibility.test.d.ts +1 -0
- package/dist/request.d.ts +56 -0
- package/dist/request.test.d.ts +1 -0
- package/dist/test_util.d.ts +3 -0
- package/dist/toasts.d.ts +14 -0
- package/dist/toasts.test.d.ts +1 -0
- package/dist/util/float.d.ts +1 -0
- package/dist/util/index.d.ts +3 -0
- package/dist/util/query_string.d.ts +1 -0
- package/dist/util/query_string.test.d.ts +1 -0
- package/dist/util/validation.d.ts +1 -0
- package/dist/util/validation.test.d.ts +1 -0
- package/dist/uuid.d.ts +1 -0
- package/dist/uuid.test.d.ts +1 -0
- package/package.json +2 -1
- package/src/constants/field_types.ts +1 -0
- package/src/constants/roles.ts +3 -0
- package/src/entities/draft_template.ts +6 -0
- package/src/entities/variation_field.ts +25 -0
- package/src/entity.ts +1 -1
- package/src/pricing/estimate.test.ts +95 -0
- package/src/pricing/estimate.ts +73 -0
- package/src/pricing/types.ts +10 -0
- package/tsconfig.json +1 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Domain } from './domain.js';
|
|
2
|
+
import { Entity } from '../entity.js';
|
|
3
|
+
import { MerchiFile } from './file.js';
|
|
4
|
+
import { User } from './user.js';
|
|
5
|
+
export declare class DomainChatSettings extends Entity {
|
|
6
|
+
protected static resourceName: string;
|
|
7
|
+
protected static singularName: string;
|
|
8
|
+
protected static pluralName: string;
|
|
9
|
+
id?: number;
|
|
10
|
+
domain?: Domain;
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
displayName?: string | null;
|
|
13
|
+
avatar?: MerchiFile | null;
|
|
14
|
+
welcomeMessage?: string | null;
|
|
15
|
+
privacyPolicyUrl?: string | null;
|
|
16
|
+
workingHours?: any | null;
|
|
17
|
+
awayMessage?: string | null;
|
|
18
|
+
notifyEmailNewConversation?: boolean;
|
|
19
|
+
notifyEmailNewMessage?: boolean;
|
|
20
|
+
telegramChatId?: string | null;
|
|
21
|
+
assignedUsers?: User[];
|
|
22
|
+
requireGuestContact?: boolean;
|
|
23
|
+
embedTestMode?: boolean;
|
|
24
|
+
autoOpenDelay?: number | null;
|
|
25
|
+
autoOpenMessage?: string | null;
|
|
26
|
+
autoOpenMode?: string | null;
|
|
27
|
+
aiFallbackEnabled?: boolean;
|
|
28
|
+
aiFallbackScope?: 'faq_only' | 'faq_and_status' | 'collect_and_escalate' | 'full_support_limited' | null;
|
|
29
|
+
aiDisclosureMode?: 'on' | 'off' | null;
|
|
30
|
+
aiMaxRepliesPerConversation?: number | null;
|
|
31
|
+
aiCooldownSeconds?: number;
|
|
32
|
+
aiEscalationMessage?: string | null;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Domain } from './domain.js';
|
|
2
|
+
import { Entity } from '../entity.js';
|
|
3
|
+
import { User } from './user.js';
|
|
4
|
+
export declare class DomainInvitation extends Entity {
|
|
5
|
+
protected static resourceName: string;
|
|
6
|
+
protected static singularName: string;
|
|
7
|
+
protected static pluralName: string;
|
|
8
|
+
archived?: Date | null;
|
|
9
|
+
id?: number;
|
|
10
|
+
userName?: string;
|
|
11
|
+
userEmail?: string;
|
|
12
|
+
role?: number;
|
|
13
|
+
token?: string;
|
|
14
|
+
domain?: Domain;
|
|
15
|
+
sender?: User;
|
|
16
|
+
user?: User | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Domain } from './domain.js';
|
|
2
|
+
import { Entity } from '../entity.js';
|
|
3
|
+
import { Invoice } from './invoice.js';
|
|
4
|
+
import { Job } from './job.js';
|
|
5
|
+
import { Product } from './product.js';
|
|
6
|
+
import { Shipment } from './shipment.js';
|
|
7
|
+
export declare class DomainTag extends Entity {
|
|
8
|
+
protected static resourceName: string;
|
|
9
|
+
protected static singularName: string;
|
|
10
|
+
protected static pluralName: string;
|
|
11
|
+
id?: number;
|
|
12
|
+
colour?: number;
|
|
13
|
+
name?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
showPublic?: boolean;
|
|
16
|
+
domain?: Domain;
|
|
17
|
+
jobs?: Job[];
|
|
18
|
+
products?: Product[];
|
|
19
|
+
invoices?: Invoice[];
|
|
20
|
+
shipments?: Shipment[];
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DraftComment } from './draft_comment.js';
|
|
2
|
+
import { Entity } from '../entity.js';
|
|
3
|
+
import { MerchiFile } from './file.js';
|
|
4
|
+
import { Job } from './job.js';
|
|
5
|
+
import { Notification } from './notification.js';
|
|
6
|
+
import { User } from './user.js';
|
|
7
|
+
import { DraftTemplate } from './draft_template.js';
|
|
8
|
+
export declare class Draft extends Entity {
|
|
9
|
+
protected static resourceName: string;
|
|
10
|
+
protected static singularName: string;
|
|
11
|
+
protected static pluralName: string;
|
|
12
|
+
archived?: Date | null;
|
|
13
|
+
id?: number;
|
|
14
|
+
date?: Date | null;
|
|
15
|
+
accepted?: Date | null;
|
|
16
|
+
resendDate?: Date | null;
|
|
17
|
+
viewed?: boolean;
|
|
18
|
+
sendSms?: boolean;
|
|
19
|
+
sendWhatsapp?: boolean;
|
|
20
|
+
sendEmail?: boolean;
|
|
21
|
+
comments?: DraftComment[];
|
|
22
|
+
draftTemplates?: DraftTemplate[];
|
|
23
|
+
commentsCount?: number;
|
|
24
|
+
changesRequested?: boolean;
|
|
25
|
+
designer?: User;
|
|
26
|
+
images?: MerchiFile[];
|
|
27
|
+
notification?: Notification[];
|
|
28
|
+
job?: Job;
|
|
29
|
+
sharedWithJobs?: Job[];
|
|
30
|
+
commentsYoungestToEldest: () => DraftComment[];
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Draft } from './draft.js';
|
|
2
|
+
import { Entity } from '../entity.js';
|
|
3
|
+
import { MerchiFile } from './file.js';
|
|
4
|
+
import { Job } from './job.js';
|
|
5
|
+
import { Notification } from './notification.js';
|
|
6
|
+
import { User } from './user.js';
|
|
7
|
+
export declare class DraftComment extends Entity {
|
|
8
|
+
protected static resourceName: string;
|
|
9
|
+
protected static singularName: string;
|
|
10
|
+
protected static pluralName: string;
|
|
11
|
+
archived?: Date | null;
|
|
12
|
+
id?: number;
|
|
13
|
+
date?: Date | null;
|
|
14
|
+
lastEditedTime?: Date | null;
|
|
15
|
+
urgency?: number;
|
|
16
|
+
text?: string;
|
|
17
|
+
changeRequest?: boolean;
|
|
18
|
+
sendSms?: boolean;
|
|
19
|
+
sendEmail?: boolean;
|
|
20
|
+
sendWhatsapp?: boolean;
|
|
21
|
+
user?: User;
|
|
22
|
+
lastEditedBy?: User;
|
|
23
|
+
files?: MerchiFile[];
|
|
24
|
+
forwards?: User[];
|
|
25
|
+
notifications?: Notification[];
|
|
26
|
+
draft?: Draft | null;
|
|
27
|
+
job?: Job | null;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Entity } from '../entity.js';
|
|
2
|
+
import { MerchiFile } from './file.js';
|
|
3
|
+
import { Product } from './product.js';
|
|
4
|
+
import { DraftPreviewLayer } from './draft_preview_layer.js';
|
|
5
|
+
export declare class DraftPreview extends Entity {
|
|
6
|
+
protected static resourceName: string;
|
|
7
|
+
protected static singularName: string;
|
|
8
|
+
protected static pluralName: string;
|
|
9
|
+
id?: number;
|
|
10
|
+
file?: MerchiFile;
|
|
11
|
+
product?: Product;
|
|
12
|
+
description?: string | null;
|
|
13
|
+
name?: string | null;
|
|
14
|
+
date?: Date | null;
|
|
15
|
+
height?: number;
|
|
16
|
+
width?: number;
|
|
17
|
+
draftPreviewLayers?: DraftPreviewLayer[];
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Entity } from '../entity.js';
|
|
2
|
+
import { DraftPreview } from './draft_preview.js';
|
|
3
|
+
import { DraftTemplate } from './draft_template.js';
|
|
4
|
+
export declare class DraftPreviewLayer extends Entity {
|
|
5
|
+
protected static resourceName: string;
|
|
6
|
+
protected static singularName: string;
|
|
7
|
+
protected static pluralName: string;
|
|
8
|
+
id?: number;
|
|
9
|
+
layerName?: string;
|
|
10
|
+
draftPreview?: DraftPreview;
|
|
11
|
+
draftTemplate?: DraftTemplate;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DraftPreviewLayer } from './draft_preview_layer.js';
|
|
2
|
+
import { Entity } from '../entity.js';
|
|
3
|
+
import { MerchiFile } from './file.js';
|
|
4
|
+
import { Job } from './job.js';
|
|
5
|
+
import { Product } from './product.js';
|
|
6
|
+
import { VariationField } from './variation_field.js';
|
|
7
|
+
import { VariationFieldsOption } from './variation_fields_option.js';
|
|
8
|
+
export declare class DraftTemplate extends Entity {
|
|
9
|
+
protected static resourceName: string;
|
|
10
|
+
protected static singularName: string;
|
|
11
|
+
protected static pluralName: string;
|
|
12
|
+
archived?: Date | null;
|
|
13
|
+
id?: number;
|
|
14
|
+
date?: Date | null;
|
|
15
|
+
description?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
height?: number;
|
|
18
|
+
width?: number;
|
|
19
|
+
widthMm?: number | null;
|
|
20
|
+
heightMm?: number | null;
|
|
21
|
+
file?: MerchiFile;
|
|
22
|
+
design?: MerchiFile;
|
|
23
|
+
product?: Product | null;
|
|
24
|
+
job?: Job | null;
|
|
25
|
+
selectedByVariationFieldOptions?: VariationFieldsOption[];
|
|
26
|
+
editedByVariationFields?: VariationField[];
|
|
27
|
+
draftPreviewLayers?: DraftPreviewLayer[];
|
|
28
|
+
customisationMap?: Record<string, unknown> | null;
|
|
29
|
+
customisationMapSource?: string | null;
|
|
30
|
+
customisationMapFileId?: string | null;
|
|
31
|
+
}
|
|
@@ -74,6 +74,14 @@ var DraftTemplate = /** @class */ (function (_super) {
|
|
|
74
74
|
DraftTemplate.property(),
|
|
75
75
|
__metadata("design:type", Number)
|
|
76
76
|
], DraftTemplate.prototype, "width", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
DraftTemplate.property({ type: Number }),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], DraftTemplate.prototype, "widthMm", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
DraftTemplate.property({ type: Number }),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], DraftTemplate.prototype, "heightMm", void 0);
|
|
77
85
|
__decorate([
|
|
78
86
|
DraftTemplate.property({ type: MerchiFile }),
|
|
79
87
|
__metadata("design:type", MerchiFile)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Company } from './company.js';
|
|
2
|
+
import { Entity } from '../entity.js';
|
|
3
|
+
import { User } from './user.js';
|
|
4
|
+
export declare class EmailAddress extends Entity {
|
|
5
|
+
protected static resourceName: string;
|
|
6
|
+
protected static singularName: string;
|
|
7
|
+
protected static pluralName: string;
|
|
8
|
+
archived?: Date | null;
|
|
9
|
+
id?: number;
|
|
10
|
+
emailAddress?: string;
|
|
11
|
+
users?: User[];
|
|
12
|
+
companies?: Company[];
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Entity } from '../entity.js';
|
|
2
|
+
export declare class EmailCounter extends Entity {
|
|
3
|
+
protected static resourceName: string;
|
|
4
|
+
protected static singularName: string;
|
|
5
|
+
protected static pluralName: string;
|
|
6
|
+
protected static primaryKey: string;
|
|
7
|
+
emailAddress?: string;
|
|
8
|
+
unsubscribed?: boolean;
|
|
9
|
+
silenced?: boolean;
|
|
10
|
+
tokens?: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Domain } from './domain.js';
|
|
2
|
+
import { Entity } from '../entity.js';
|
|
3
|
+
import { User } from './user.js';
|
|
4
|
+
import { Role } from '../constants/roles.js';
|
|
5
|
+
export declare class EnrolledDomain extends Entity {
|
|
6
|
+
protected static resourceName: string;
|
|
7
|
+
protected static singularName: string;
|
|
8
|
+
protected static pluralName: string;
|
|
9
|
+
archived?: Date | null;
|
|
10
|
+
id?: number;
|
|
11
|
+
isJobsAssignee?: boolean;
|
|
12
|
+
role?: Role;
|
|
13
|
+
user?: User;
|
|
14
|
+
domain?: Domain;
|
|
15
|
+
getRole(): Role;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Entity } from '../entity.js';
|
|
2
|
+
export declare class ExchangeRate extends Entity {
|
|
3
|
+
protected static resourceName: string;
|
|
4
|
+
protected static singularName: string;
|
|
5
|
+
protected static pluralName: string;
|
|
6
|
+
id?: number;
|
|
7
|
+
fromCurrency?: string;
|
|
8
|
+
toCurrency?: string;
|
|
9
|
+
rate?: number;
|
|
10
|
+
lastUpdated?: Date;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Company } from './company.js';
|
|
2
|
+
import { Domain } from './domain.js';
|
|
3
|
+
import { Draft } from './draft.js';
|
|
4
|
+
import { DraftComment } from './draft_comment.js';
|
|
5
|
+
import { Entity } from '../entity.js';
|
|
6
|
+
import { Invoice } from './invoice.js';
|
|
7
|
+
import { Job } from './job.js';
|
|
8
|
+
import { JobComment } from './job_comment.js';
|
|
9
|
+
import { JobNote } from './job_note.js';
|
|
10
|
+
import { Notification } from './notification.js';
|
|
11
|
+
import { Product } from './product.js';
|
|
12
|
+
import { ProductionComment } from './production_comment.js';
|
|
13
|
+
import { Theme } from './theme.js';
|
|
14
|
+
import { User } from './user.js';
|
|
15
|
+
import { Variation } from './variation.js';
|
|
16
|
+
import { VariationFieldsOption } from './variation_fields_option.js';
|
|
17
|
+
export declare class MerchiFile extends Entity {
|
|
18
|
+
protected static resourceName: string;
|
|
19
|
+
protected static singularName: string;
|
|
20
|
+
protected static pluralName: string;
|
|
21
|
+
fileData?: File;
|
|
22
|
+
fromFormFile: (file: File) => void;
|
|
23
|
+
archived?: Date | null;
|
|
24
|
+
id?: number;
|
|
25
|
+
uploadId?: string;
|
|
26
|
+
name?: string | null;
|
|
27
|
+
mimetype?: string | null;
|
|
28
|
+
size?: number;
|
|
29
|
+
creationDate?: Date | null;
|
|
30
|
+
cachedViewUrl?: string | null;
|
|
31
|
+
viewUrlExpires?: Date | null;
|
|
32
|
+
cachedDownloadUrl?: string | null;
|
|
33
|
+
downloadUrlExpires?: Date | null;
|
|
34
|
+
uploader?: User | null;
|
|
35
|
+
viewUrl?: string;
|
|
36
|
+
downloadUrl?: string;
|
|
37
|
+
draftComments?: DraftComment[];
|
|
38
|
+
variations?: Variation[];
|
|
39
|
+
notification?: Notification[];
|
|
40
|
+
companyLogos?: Company[];
|
|
41
|
+
products?: Product[];
|
|
42
|
+
featuredProducts?: Product[];
|
|
43
|
+
drafts?: Draft[];
|
|
44
|
+
options?: VariationFieldsOption[];
|
|
45
|
+
jobComments?: JobComment[];
|
|
46
|
+
jobNotes?: JobNote[];
|
|
47
|
+
jobs?: Job[];
|
|
48
|
+
clientJobs?: Job[];
|
|
49
|
+
domainLogos?: Domain[];
|
|
50
|
+
domainFavicons?: Domain[];
|
|
51
|
+
userProfilePictures?: User[];
|
|
52
|
+
invoices?: Invoice[];
|
|
53
|
+
invoicesPaid?: Invoice[];
|
|
54
|
+
themeMainCss?: Theme[];
|
|
55
|
+
themeMainCssUsing?: Theme[];
|
|
56
|
+
themeMainCssEditing?: Theme[];
|
|
57
|
+
themeEmailCss?: Theme[];
|
|
58
|
+
themeEmailCssUsing?: Theme[];
|
|
59
|
+
themeEmailCssEditing?: Theme[];
|
|
60
|
+
themes?: Theme[];
|
|
61
|
+
themeFeatureImages?: Theme[];
|
|
62
|
+
themeImages?: Theme[];
|
|
63
|
+
productionComments?: ProductionComment[];
|
|
64
|
+
isImage: () => boolean;
|
|
65
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Company } from './company.js';
|
|
2
|
+
import { Domain } from './domain.js';
|
|
3
|
+
import { Entity } from '../entity.js';
|
|
4
|
+
import { Invoice } from './invoice.js';
|
|
5
|
+
import { Job } from './job.js';
|
|
6
|
+
import { Product } from './product.js';
|
|
7
|
+
import { Shipment } from './shipment.js';
|
|
8
|
+
import { Theme } from './theme.js';
|
|
9
|
+
import { User } from './user.js';
|
|
10
|
+
export declare class InternalTag extends Entity {
|
|
11
|
+
protected static resourceName: string;
|
|
12
|
+
protected static singularName: string;
|
|
13
|
+
protected static pluralName: string;
|
|
14
|
+
id?: number;
|
|
15
|
+
colour?: number;
|
|
16
|
+
name?: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
companies?: Company[];
|
|
19
|
+
domains?: Domain[];
|
|
20
|
+
jobs?: Job[];
|
|
21
|
+
products?: Product[];
|
|
22
|
+
invoices?: Invoice[];
|
|
23
|
+
shipments?: Shipment[];
|
|
24
|
+
themes?: Theme[];
|
|
25
|
+
users?: User[];
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Address } from './address.js';
|
|
2
|
+
import { Entity } from '../entity.js';
|
|
3
|
+
import { InventoryGroup } from './inventory_group.js';
|
|
4
|
+
import { InventoryUnitVariation } from './inventory_unit_variation.js';
|
|
5
|
+
import { Job } from './job.js';
|
|
6
|
+
import { Product } from './product.js';
|
|
7
|
+
import { VariationsGroup } from './variations_group.js';
|
|
8
|
+
import { VariationFieldsOption } from './variation_fields_option.js';
|
|
9
|
+
export declare class Inventory extends Entity {
|
|
10
|
+
protected static resourceName: string;
|
|
11
|
+
protected static singularName: string;
|
|
12
|
+
protected static pluralName: string;
|
|
13
|
+
archived?: Date | null;
|
|
14
|
+
id?: number;
|
|
15
|
+
quantity?: number;
|
|
16
|
+
name?: string;
|
|
17
|
+
position?: number;
|
|
18
|
+
notes?: string;
|
|
19
|
+
isOrphan?: boolean;
|
|
20
|
+
products?: Product[];
|
|
21
|
+
inventoryGroups?: InventoryGroup[];
|
|
22
|
+
address?: Address | null;
|
|
23
|
+
variationsGroups?: VariationsGroup[];
|
|
24
|
+
jobs?: Job[];
|
|
25
|
+
inventoryUnitVariations?: InventoryUnitVariation[];
|
|
26
|
+
isVariationFieldOptionSelected: (option: VariationFieldsOption) => boolean;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Entity } from '../entity.js';
|
|
2
|
+
import { Company } from './company.js';
|
|
3
|
+
import { Inventory } from './inventory.js';
|
|
4
|
+
import { Job } from './job.js';
|
|
5
|
+
import { Product } from './product.js';
|
|
6
|
+
import { VariationField } from './variation_field.js';
|
|
7
|
+
export declare class InventoryGroup extends Entity {
|
|
8
|
+
protected static resourceName: string;
|
|
9
|
+
protected static singularName: string;
|
|
10
|
+
protected static pluralName: string;
|
|
11
|
+
archived?: Date | null;
|
|
12
|
+
id?: number;
|
|
13
|
+
company?: Company;
|
|
14
|
+
inventories?: Inventory[];
|
|
15
|
+
name?: string;
|
|
16
|
+
products?: Product[];
|
|
17
|
+
jobs?: Job[];
|
|
18
|
+
variationFields?: VariationField[];
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Entity } from '../entity.js';
|
|
2
|
+
import { Inventory } from './inventory.js';
|
|
3
|
+
import { VariationFieldsOption } from './variation_fields_option.js';
|
|
4
|
+
export declare class InventoryUnitVariation extends Entity {
|
|
5
|
+
protected static resourceName: string;
|
|
6
|
+
protected static singularName: string;
|
|
7
|
+
protected static pluralName: string;
|
|
8
|
+
archived?: Date | null;
|
|
9
|
+
id?: number;
|
|
10
|
+
inventory?: Inventory;
|
|
11
|
+
variationFieldsOption?: VariationFieldsOption;
|
|
12
|
+
optionId: () => number | undefined;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Address } from './address.js';
|
|
2
|
+
import { Cart } from './cart.js';
|
|
3
|
+
import { Company } from './company.js';
|
|
4
|
+
import { Domain } from './domain.js';
|
|
5
|
+
import { DomainTag } from './domain_tag.js';
|
|
6
|
+
import { EmailAddress } from './email_address.js';
|
|
7
|
+
import { Entity } from '../entity.js';
|
|
8
|
+
import { MerchiFile } from './file.js';
|
|
9
|
+
import { InternalTag } from './internal_tag.js';
|
|
10
|
+
import { Item } from './item.js';
|
|
11
|
+
import { Job } from './job.js';
|
|
12
|
+
import { Quote } from './quote.js';
|
|
13
|
+
import { Reminder } from './reminder.js';
|
|
14
|
+
import { Notification } from './notification.js';
|
|
15
|
+
import { Payment } from './payment.js';
|
|
16
|
+
import { PhoneNumber } from './phone_number.js';
|
|
17
|
+
import { Shipment } from './shipment.js';
|
|
18
|
+
import { User } from './user.js';
|
|
19
|
+
export declare class Invoice extends Entity {
|
|
20
|
+
protected static resourceName: string;
|
|
21
|
+
protected static singularName: string;
|
|
22
|
+
protected static pluralName: string;
|
|
23
|
+
archived?: Date | null;
|
|
24
|
+
id?: number;
|
|
25
|
+
stripePaymentEngine?: string;
|
|
26
|
+
creationDate?: Date | null;
|
|
27
|
+
paymentDeadline?: Date | null;
|
|
28
|
+
reminded?: Date | null;
|
|
29
|
+
reminderMessage?: string;
|
|
30
|
+
shopifyOrderId?: string;
|
|
31
|
+
forceReminders?: boolean;
|
|
32
|
+
buySide?: boolean;
|
|
33
|
+
canAutoPay?: boolean;
|
|
34
|
+
note?: string | null;
|
|
35
|
+
terms?: Date | null;
|
|
36
|
+
subtotalCost?: number | null;
|
|
37
|
+
taxAmount?: number | null;
|
|
38
|
+
totalCost?: number | null;
|
|
39
|
+
sendSms?: boolean | null;
|
|
40
|
+
sendEmail?: boolean | null;
|
|
41
|
+
sendWhatsapp?: boolean | null;
|
|
42
|
+
unpaid?: boolean | null;
|
|
43
|
+
isTest?: boolean | null;
|
|
44
|
+
currency?: string;
|
|
45
|
+
acceptSquare?: boolean;
|
|
46
|
+
acceptStripe?: boolean;
|
|
47
|
+
acceptPaypal?: boolean;
|
|
48
|
+
acceptUtrust?: boolean;
|
|
49
|
+
acceptBankTransfer?: boolean;
|
|
50
|
+
acceptPhonePayment?: boolean;
|
|
51
|
+
invoiceToken?: string | null;
|
|
52
|
+
paymentUrl?: string;
|
|
53
|
+
isRemindable?: boolean;
|
|
54
|
+
owedMoney?: number;
|
|
55
|
+
paidMoney?: number;
|
|
56
|
+
isCompletelyPaid?: boolean;
|
|
57
|
+
responsibleManager?: User | null;
|
|
58
|
+
creator?: User | null;
|
|
59
|
+
client?: User;
|
|
60
|
+
clientCompany?: Company | null;
|
|
61
|
+
subscriptionCompanies?: Company[];
|
|
62
|
+
shipping?: Address | null;
|
|
63
|
+
domain?: Domain;
|
|
64
|
+
items?: Item[];
|
|
65
|
+
pdf?: MerchiFile | null;
|
|
66
|
+
receipt?: MerchiFile | null;
|
|
67
|
+
clientPhone?: PhoneNumber | null;
|
|
68
|
+
clientEmail?: EmailAddress | null;
|
|
69
|
+
clientCompanyPhone?: PhoneNumber | null;
|
|
70
|
+
clientCompanyEmail?: EmailAddress | null;
|
|
71
|
+
internalTags?: InternalTag[];
|
|
72
|
+
tags?: DomainTag[];
|
|
73
|
+
shipments?: Shipment[];
|
|
74
|
+
notifications?: Notification[];
|
|
75
|
+
reminders?: Reminder[];
|
|
76
|
+
jobs?: Job[];
|
|
77
|
+
quotes?: Quote[];
|
|
78
|
+
cart?: Cart;
|
|
79
|
+
payments?: Payment[];
|
|
80
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CountryTax } from './country_tax.js';
|
|
2
|
+
import { Entity } from '../entity.js';
|
|
3
|
+
import { Cart } from './cart.js';
|
|
4
|
+
import { Discount } from './discount.js';
|
|
5
|
+
import { Invoice } from './invoice.js';
|
|
6
|
+
import { Job } from './job.js';
|
|
7
|
+
export declare class Item extends Entity {
|
|
8
|
+
protected static resourceName: string;
|
|
9
|
+
protected static singularName: string;
|
|
10
|
+
protected static pluralName: string;
|
|
11
|
+
archived?: Date | null;
|
|
12
|
+
code?: string;
|
|
13
|
+
id?: number;
|
|
14
|
+
quantity?: number | null;
|
|
15
|
+
description?: string;
|
|
16
|
+
cost?: number;
|
|
17
|
+
taxAmount?: number | null;
|
|
18
|
+
cart?: Cart | null;
|
|
19
|
+
discount?: Discount | null;
|
|
20
|
+
invoice?: Invoice | null;
|
|
21
|
+
job?: Job | null;
|
|
22
|
+
taxType?: CountryTax | null;
|
|
23
|
+
totalCost: () => number;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|