@merchi/sdk 1.42.15 → 1.42.16
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 +20 -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/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,156 @@
|
|
|
1
|
+
import { Address } from './address.js';
|
|
2
|
+
import { Assignment } from './assignment.js';
|
|
3
|
+
import { Company } from './company.js';
|
|
4
|
+
import { CountryTax } from './country_tax.js';
|
|
5
|
+
import { Domain } from './domain.js';
|
|
6
|
+
import { DomainTag } from './domain_tag.js';
|
|
7
|
+
import { Draft } from './draft.js';
|
|
8
|
+
import { DraftComment } from './draft_comment.js';
|
|
9
|
+
import { EmailAddress } from './email_address.js';
|
|
10
|
+
import { Entity } from '../entity.js';
|
|
11
|
+
import { MerchiFile } from './file.js';
|
|
12
|
+
import { MatchingInventory } from './matching_inventory.js';
|
|
13
|
+
import { InternalTag } from './internal_tag.js';
|
|
14
|
+
import { Invoice } from './invoice.js';
|
|
15
|
+
import { JobComment } from './job_comment.js';
|
|
16
|
+
import { JobNote } from './job_note.js';
|
|
17
|
+
import { JobOperationLog } from './job_operation_log.js';
|
|
18
|
+
import { Notification } from './notification.js';
|
|
19
|
+
import { PhoneNumber } from './phone_number.js';
|
|
20
|
+
import { Product } from './product.js';
|
|
21
|
+
import { Reminder } from './reminder.js';
|
|
22
|
+
import { Shipment } from './shipment.js';
|
|
23
|
+
import { User } from './user.js';
|
|
24
|
+
import { Variation } from './variation.js';
|
|
25
|
+
import { VariationsGroup } from './variations_group.js';
|
|
26
|
+
import { InventoryStatus } from '../constants/inventory_statuses.js';
|
|
27
|
+
import { Item } from './item.js';
|
|
28
|
+
export declare class Job extends Entity {
|
|
29
|
+
protected static resourceName: string;
|
|
30
|
+
protected static singularName: string;
|
|
31
|
+
protected static pluralName: string;
|
|
32
|
+
archived?: Date | null;
|
|
33
|
+
id?: number;
|
|
34
|
+
jobType?: number;
|
|
35
|
+
quantity?: number;
|
|
36
|
+
currency?: string;
|
|
37
|
+
jobNotes?: JobNote[];
|
|
38
|
+
operationLogs?: JobOperationLog[];
|
|
39
|
+
shopifyShopUrl?: string | null;
|
|
40
|
+
shopifyOrderId?: string;
|
|
41
|
+
shopifyOrderLineItemId?: string;
|
|
42
|
+
productionStatus?: number | null;
|
|
43
|
+
productionQuotingSpec?: string | null;
|
|
44
|
+
productionSpecChanged?: boolean;
|
|
45
|
+
productionQuotingReopened?: boolean;
|
|
46
|
+
designStatus?: number | null;
|
|
47
|
+
supplyChainRequestStatus?: number | null;
|
|
48
|
+
needsDrafting?: boolean;
|
|
49
|
+
assignToAgent?: boolean;
|
|
50
|
+
agentLastRunAt?: Date | null;
|
|
51
|
+
agentNextCheckAt?: Date | null;
|
|
52
|
+
needsGroupBuy?: boolean;
|
|
53
|
+
needsProduction?: boolean;
|
|
54
|
+
needsShipping?: boolean;
|
|
55
|
+
sendWhatsapp?: boolean;
|
|
56
|
+
needsInvoicing?: boolean;
|
|
57
|
+
needsInventory?: boolean;
|
|
58
|
+
needsSupplyChainRequest?: boolean;
|
|
59
|
+
showProductionFilesToClient?: boolean;
|
|
60
|
+
allowClientDraftContribution?: boolean;
|
|
61
|
+
quoteSet?: boolean;
|
|
62
|
+
jobInfoApprovedByClient?: boolean;
|
|
63
|
+
groupBuyStatus?: number | null;
|
|
64
|
+
paymentStatus?: number | null;
|
|
65
|
+
deductionDate?: Date | null;
|
|
66
|
+
shippingStatus?: number | null;
|
|
67
|
+
completed?: boolean;
|
|
68
|
+
callToActions?: string;
|
|
69
|
+
callToActionDetails?: any[];
|
|
70
|
+
priority?: number;
|
|
71
|
+
jobWeight?: number | null;
|
|
72
|
+
jobVolume?: number | null;
|
|
73
|
+
received?: Date;
|
|
74
|
+
deadline?: Date;
|
|
75
|
+
updated?: Date;
|
|
76
|
+
dateLastActioned?: Date | null;
|
|
77
|
+
dateFirstActioned?: Date | null;
|
|
78
|
+
groupBuyProductionStarted?: Date;
|
|
79
|
+
automaticPriceEnabled?: boolean;
|
|
80
|
+
dropShip?: boolean;
|
|
81
|
+
pickUp?: boolean;
|
|
82
|
+
costPerUnit?: number | null;
|
|
83
|
+
cost?: number | null;
|
|
84
|
+
taxAmount?: number | null;
|
|
85
|
+
totalCost?: number | null;
|
|
86
|
+
inventoriesStatus?: InventoryStatus;
|
|
87
|
+
unreadNotificationsCount?: number;
|
|
88
|
+
unreadJobInfoNotificationsCount?: number;
|
|
89
|
+
unreadJobDraftingNotificationsCount?: number;
|
|
90
|
+
unreadJobProductionNotificationsCount?: number;
|
|
91
|
+
unreadJobShippingNotificationsCount?: number;
|
|
92
|
+
unreadJobInvoicingNotificationsCount?: number;
|
|
93
|
+
limitedStock?: boolean;
|
|
94
|
+
inventoryCount?: number;
|
|
95
|
+
inventorySufficient?: boolean;
|
|
96
|
+
items?: Item[];
|
|
97
|
+
drafts?: Draft[];
|
|
98
|
+
sharedDrafts?: Draft[];
|
|
99
|
+
ownDrafts?: Draft[];
|
|
100
|
+
comments?: JobComment[];
|
|
101
|
+
client?: User;
|
|
102
|
+
clientBrowser?: string;
|
|
103
|
+
clientDevice?: string;
|
|
104
|
+
clientOs?: string;
|
|
105
|
+
clientIp?: string;
|
|
106
|
+
clientOrigin?: string;
|
|
107
|
+
sourceChannel?: string | null;
|
|
108
|
+
utmSource?: string | null;
|
|
109
|
+
utmMedium?: string | null;
|
|
110
|
+
utmCampaign?: string | null;
|
|
111
|
+
utmContent?: string | null;
|
|
112
|
+
utmTerm?: string | null;
|
|
113
|
+
sourceClickId?: string | null;
|
|
114
|
+
sourceLanding?: string | null;
|
|
115
|
+
sourceReferrer?: string | null;
|
|
116
|
+
checkoutType?: string | null;
|
|
117
|
+
manager?: User | null;
|
|
118
|
+
designer?: User | null;
|
|
119
|
+
clientCompany?: Company | null;
|
|
120
|
+
notificationSubscribers?: User[];
|
|
121
|
+
clientPhone?: PhoneNumber | null;
|
|
122
|
+
clientEmail?: EmailAddress | null;
|
|
123
|
+
clientCompanyPhone?: PhoneNumber | null;
|
|
124
|
+
clientCompanyEmail?: EmailAddress | null;
|
|
125
|
+
product?: Product;
|
|
126
|
+
supplyChainRequestProduct?: Product;
|
|
127
|
+
draftComments?: DraftComment[];
|
|
128
|
+
preDraftCommentsCount?: number;
|
|
129
|
+
taxType?: CountryTax | null;
|
|
130
|
+
internalTags?: InternalTag[];
|
|
131
|
+
tags?: DomainTag[];
|
|
132
|
+
createdProducts?: Product[];
|
|
133
|
+
shipping?: Address | null;
|
|
134
|
+
productionShippingAddress?: Address | null;
|
|
135
|
+
domain?: Domain;
|
|
136
|
+
invoice?: Invoice | null;
|
|
137
|
+
productionFiles?: MerchiFile[];
|
|
138
|
+
clientFiles?: MerchiFile[];
|
|
139
|
+
shipment?: Shipment | null;
|
|
140
|
+
matchingInventories?: MatchingInventory[];
|
|
141
|
+
variationsGroups?: VariationsGroup[];
|
|
142
|
+
variations?: Variation[];
|
|
143
|
+
notifications?: Notification[];
|
|
144
|
+
assignments?: Assignment[];
|
|
145
|
+
reminders?: Reminder[];
|
|
146
|
+
supplyAssignment?: Assignment;
|
|
147
|
+
supplyJob?: Job;
|
|
148
|
+
supplyQuoteTotalCost?: number;
|
|
149
|
+
hasValidVolume?: boolean;
|
|
150
|
+
hasValidWeight?: boolean;
|
|
151
|
+
isNewClient?: boolean;
|
|
152
|
+
isTest?: boolean;
|
|
153
|
+
getQuote: () => Promise<this>;
|
|
154
|
+
deduct: (matchingInventories: MatchingInventory[]) => Promise<this>;
|
|
155
|
+
bulkDeduct: () => Promise<this>;
|
|
156
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Entity } from '../entity.js';
|
|
2
|
+
import { MerchiFile } from './file.js';
|
|
3
|
+
import { Job } from './job.js';
|
|
4
|
+
import { Notification } from './notification.js';
|
|
5
|
+
import { User } from './user.js';
|
|
6
|
+
export declare class JobComment extends Entity {
|
|
7
|
+
protected static resourceName: string;
|
|
8
|
+
protected static singularName: string;
|
|
9
|
+
protected static pluralName: string;
|
|
10
|
+
archived?: Date | null;
|
|
11
|
+
id?: number;
|
|
12
|
+
date?: Date | null;
|
|
13
|
+
text?: string;
|
|
14
|
+
sendSms?: boolean;
|
|
15
|
+
sendEmail?: boolean;
|
|
16
|
+
sendWhatsapp?: boolean;
|
|
17
|
+
openToClient?: boolean;
|
|
18
|
+
urgency?: number;
|
|
19
|
+
files?: MerchiFile[];
|
|
20
|
+
forwards?: User[];
|
|
21
|
+
notifications?: Notification[];
|
|
22
|
+
job?: Job;
|
|
23
|
+
user?: User;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Entity } from '../entity.js';
|
|
2
|
+
import { MerchiFile } from './file.js';
|
|
3
|
+
import { Job } from './job.js';
|
|
4
|
+
import { User } from './user.js';
|
|
5
|
+
export declare class JobNote 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
|
+
noteType?: number;
|
|
12
|
+
richText?: string;
|
|
13
|
+
creationDate?: Date | null;
|
|
14
|
+
lastEditedTime?: Date | null;
|
|
15
|
+
files?: MerchiFile[];
|
|
16
|
+
job?: Job;
|
|
17
|
+
createdBy?: User;
|
|
18
|
+
lastEditedBy?: User;
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Entity } from '../entity.js';
|
|
2
|
+
import type { Job } from './job.js';
|
|
3
|
+
import { User } from './user.js';
|
|
4
|
+
export declare class JobOperationLog extends Entity {
|
|
5
|
+
protected static resourceName: string;
|
|
6
|
+
protected static singularName: string;
|
|
7
|
+
protected static pluralName: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
job?: Job | null;
|
|
10
|
+
user?: User | null;
|
|
11
|
+
sourceType?: string;
|
|
12
|
+
aiInvolved?: boolean;
|
|
13
|
+
action?: string;
|
|
14
|
+
payloadJson?: Record<string, unknown> | null;
|
|
15
|
+
changesJson?: Record<string, unknown> | null;
|
|
16
|
+
operationJson?: Record<string, unknown> | null;
|
|
17
|
+
createdAt?: Date | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Entity } from '../entity.js';
|
|
2
|
+
import { Job } from './job.js';
|
|
3
|
+
import { Inventory } from './inventory.js';
|
|
4
|
+
import { VariationsGroup } from './variations_group.js';
|
|
5
|
+
import { InventoryStatus } from '../constants/inventory_statuses.js';
|
|
6
|
+
export declare class MatchingInventory extends Entity {
|
|
7
|
+
protected static resourceName: string;
|
|
8
|
+
protected static singularName: string;
|
|
9
|
+
protected static pluralName: string;
|
|
10
|
+
archived?: Date | null;
|
|
11
|
+
deductionDate?: Date | null;
|
|
12
|
+
job?: Job;
|
|
13
|
+
group?: VariationsGroup | null;
|
|
14
|
+
inventory?: Inventory | null;
|
|
15
|
+
status?: InventoryStatus;
|
|
16
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Assignment } from './assignment.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 { MerchiFile } from './file.js';
|
|
7
|
+
import { Invoice } from './invoice.js';
|
|
8
|
+
import { Job } from './job.js';
|
|
9
|
+
import { JobComment } from './job_comment.js';
|
|
10
|
+
import { ProductionComment } from './production_comment.js';
|
|
11
|
+
import { Reminder } from './reminder.js';
|
|
12
|
+
import { ShortUrl } from './short_url.js';
|
|
13
|
+
import { User } from './user.js';
|
|
14
|
+
export declare class Notification extends Entity {
|
|
15
|
+
protected static resourceName: string;
|
|
16
|
+
protected static singularName: string;
|
|
17
|
+
protected static pluralName: string;
|
|
18
|
+
archived?: Date | null;
|
|
19
|
+
id?: number;
|
|
20
|
+
notificationType?: number;
|
|
21
|
+
date?: Date;
|
|
22
|
+
emailOpenedAt?: Date | null;
|
|
23
|
+
seen?: boolean;
|
|
24
|
+
sendEmail?: boolean;
|
|
25
|
+
sendSms?: boolean;
|
|
26
|
+
urgency?: number;
|
|
27
|
+
description?: string | null;
|
|
28
|
+
subject?: string | null;
|
|
29
|
+
message?: string;
|
|
30
|
+
htmlMessage?: string;
|
|
31
|
+
link?: string | null;
|
|
32
|
+
section?: number;
|
|
33
|
+
shortUrl?: ShortUrl | null;
|
|
34
|
+
recipient?: User;
|
|
35
|
+
sender?: User | null;
|
|
36
|
+
relatedJob?: Job | null;
|
|
37
|
+
relatedDraft?: Draft | null;
|
|
38
|
+
relatedAssignment?: Assignment | null;
|
|
39
|
+
relatedInvoice?: Invoice | null;
|
|
40
|
+
relatedJobComment?: JobComment | null;
|
|
41
|
+
relatedDraftComment?: DraftComment | null;
|
|
42
|
+
relatedProductionComment?: ProductionComment | null;
|
|
43
|
+
domain?: Domain;
|
|
44
|
+
avatar?: MerchiFile | null;
|
|
45
|
+
attachment?: MerchiFile | null;
|
|
46
|
+
reminders?: Reminder[];
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Entity } from '../entity.js';
|
|
2
|
+
import { Invoice } from './invoice.js';
|
|
3
|
+
import { User } from './user.js';
|
|
4
|
+
import { AutomaticPaymentRelationship } from './automatic_payment_relationship.js';
|
|
5
|
+
export declare class Payment 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
|
+
payDate?: Date;
|
|
12
|
+
paymentType?: number;
|
|
13
|
+
paymentProvider?: string;
|
|
14
|
+
paymentMethod?: string;
|
|
15
|
+
refundedAmount?: number;
|
|
16
|
+
refundStatus?: string | null;
|
|
17
|
+
note?: string;
|
|
18
|
+
amount?: number;
|
|
19
|
+
autoRefundable?: boolean;
|
|
20
|
+
refunded?: Date | null;
|
|
21
|
+
sendSms?: boolean;
|
|
22
|
+
sendEmail?: boolean;
|
|
23
|
+
invoice?: Invoice | null;
|
|
24
|
+
paymentRecorder?: User | null;
|
|
25
|
+
refundIssuer?: User | null;
|
|
26
|
+
chargedByPaymentRelationship?: AutomaticPaymentRelationship | null;
|
|
27
|
+
refund: () => Promise<this>;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Entity } from '../entity.js';
|
|
2
|
+
import { Company } from './company.js';
|
|
3
|
+
export declare class PaymentDevice extends Entity {
|
|
4
|
+
protected static resourceName: string;
|
|
5
|
+
protected static singularName: string;
|
|
6
|
+
protected static pluralName: string;
|
|
7
|
+
archived?: Date | null;
|
|
8
|
+
id?: number;
|
|
9
|
+
code?: string;
|
|
10
|
+
deviceId?: string;
|
|
11
|
+
squareId?: string;
|
|
12
|
+
deviceData?: string;
|
|
13
|
+
company?: Company | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Company } from './company.js';
|
|
2
|
+
import { Entity } from '../entity.js';
|
|
3
|
+
import { User } from './user.js';
|
|
4
|
+
export declare class PhoneNumber 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
|
+
number?: string;
|
|
11
|
+
code?: string;
|
|
12
|
+
users?: User[];
|
|
13
|
+
companies?: Company[];
|
|
14
|
+
paymentCompanies?: Company[];
|
|
15
|
+
localFormatNumber?: string;
|
|
16
|
+
internationalFormatNumber?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { CartItem } from './cart_item.js';
|
|
2
|
+
import { Category } from './category.js';
|
|
3
|
+
import { Company } from './company.js';
|
|
4
|
+
import { ProductForm } from './product_form.js';
|
|
5
|
+
import { CountryTax } from './country_tax.js';
|
|
6
|
+
import { DiscountGroup } from './discount_group.js';
|
|
7
|
+
import { Domain } from './domain.js';
|
|
8
|
+
import { DomainTag } from './domain_tag.js';
|
|
9
|
+
import { DraftPreview } from './draft_preview.js';
|
|
10
|
+
import { DraftTemplate } from './draft_template.js';
|
|
11
|
+
import { Entity } from '../entity.js';
|
|
12
|
+
import { MerchiFile } from './file.js';
|
|
13
|
+
import { Reminder } from './reminder.js';
|
|
14
|
+
import { InternalTag } from './internal_tag.js';
|
|
15
|
+
import { Inventory } from './inventory.js';
|
|
16
|
+
import { InventoryGroup } from './inventory_group.js';
|
|
17
|
+
import { SupplyDomain } from './supply_domain.js';
|
|
18
|
+
import { User } from './user.js';
|
|
19
|
+
import { VariationField } from './variation_field.js';
|
|
20
|
+
import { ShipmentMethod } from './shipment_method.js';
|
|
21
|
+
import { AutoAssignProductionOnAction } from '../constants/auto_assign_production_on_actions.js';
|
|
22
|
+
import { Job } from './job.js';
|
|
23
|
+
export declare class Product extends Entity {
|
|
24
|
+
protected static resourceName: string;
|
|
25
|
+
protected static singularName: string;
|
|
26
|
+
protected static pluralName: string;
|
|
27
|
+
archived?: Date | null;
|
|
28
|
+
id?: number;
|
|
29
|
+
position?: number;
|
|
30
|
+
created?: Date;
|
|
31
|
+
updated?: Date;
|
|
32
|
+
storefrontLastDeployed?: Date | null;
|
|
33
|
+
createdBy?: User | null;
|
|
34
|
+
designer?: User | null;
|
|
35
|
+
updatedBy?: User | null;
|
|
36
|
+
productType?: number;
|
|
37
|
+
minimum?: number;
|
|
38
|
+
defaultQuantity?: number;
|
|
39
|
+
minimumPrice?: number;
|
|
40
|
+
setupPrice?: number;
|
|
41
|
+
setupPerGroup?: boolean;
|
|
42
|
+
minimumPerGroup?: boolean;
|
|
43
|
+
groupsFirst?: boolean;
|
|
44
|
+
independentVariationColumns?: number;
|
|
45
|
+
groupVariationColumns?: number;
|
|
46
|
+
deliveryDaysNormal?: number;
|
|
47
|
+
unitPrice?: number;
|
|
48
|
+
buyUnitPrice?: number;
|
|
49
|
+
unitPriceDiscountGroup?: DiscountGroup | null;
|
|
50
|
+
shipmentMethods?: ShipmentMethod[];
|
|
51
|
+
margin?: number;
|
|
52
|
+
unitWeight?: number | null;
|
|
53
|
+
unitHeight?: number | null;
|
|
54
|
+
unitWidth?: number | null;
|
|
55
|
+
unitDepth?: number | null;
|
|
56
|
+
name?: string;
|
|
57
|
+
country?: string;
|
|
58
|
+
currency?: string;
|
|
59
|
+
description?: string | null;
|
|
60
|
+
notes?: string | null;
|
|
61
|
+
internalUseNotes?: string;
|
|
62
|
+
internalUseAiContext?: string;
|
|
63
|
+
aiContext?: string;
|
|
64
|
+
googleMerchantCenterId?: string;
|
|
65
|
+
googleMerchantCenterTitle?: string;
|
|
66
|
+
googleMerchantCenterDescription?: string;
|
|
67
|
+
googleMerchantCenterProductUrl?: string;
|
|
68
|
+
googleMerchantCenterPrice?: number;
|
|
69
|
+
shopifyProductId?: string | null;
|
|
70
|
+
spProductId?: string | null;
|
|
71
|
+
useCompanyShipmentMethods?: boolean;
|
|
72
|
+
dropShipment?: boolean;
|
|
73
|
+
needsDrafting?: boolean;
|
|
74
|
+
needsProduction?: boolean;
|
|
75
|
+
needsShipping?: boolean;
|
|
76
|
+
needsInvoicing?: boolean;
|
|
77
|
+
needsInventory?: boolean;
|
|
78
|
+
featureDeadline?: Date;
|
|
79
|
+
showFeatureDeadline?: boolean;
|
|
80
|
+
showPublic?: boolean;
|
|
81
|
+
isDraft?: boolean;
|
|
82
|
+
showGroupBuyStatus?: boolean;
|
|
83
|
+
groupBuyStatus?: number | null;
|
|
84
|
+
acceptSquare?: boolean;
|
|
85
|
+
acceptStripe?: boolean;
|
|
86
|
+
acceptPaypal?: boolean;
|
|
87
|
+
acceptUtrust?: boolean;
|
|
88
|
+
acceptBankTransfer?: boolean;
|
|
89
|
+
acceptPhonePayment?: boolean;
|
|
90
|
+
allowAddToCart?: boolean;
|
|
91
|
+
allowAutomaticPaymentSupply?: boolean;
|
|
92
|
+
allowGroupBuy?: boolean;
|
|
93
|
+
allowPaymentUpfront?: boolean;
|
|
94
|
+
allowQuotation?: boolean;
|
|
95
|
+
allowChainedInventoryCreation?: boolean;
|
|
96
|
+
allowClientDraftContribution?: boolean;
|
|
97
|
+
allowAdditionalDesignObjects?: boolean;
|
|
98
|
+
chainedInventoryHandlingUnitPrice?: number;
|
|
99
|
+
bestPrice?: number;
|
|
100
|
+
unitVolume?: number;
|
|
101
|
+
categories?: Category[];
|
|
102
|
+
platformCategories?: Category[];
|
|
103
|
+
discountGroups?: DiscountGroup[];
|
|
104
|
+
domain?: Domain;
|
|
105
|
+
taxType?: CountryTax | null;
|
|
106
|
+
originalProduct?: Product | null;
|
|
107
|
+
clonedFromProduct?: Product | null;
|
|
108
|
+
chainedSupplierProduct?: Product | null;
|
|
109
|
+
chainedSellerProducts?: Product[];
|
|
110
|
+
chainedInventorySupplierProduct?: Product | null;
|
|
111
|
+
chainedInventorySellerProducts?: Product[];
|
|
112
|
+
productForm?: ProductForm | null;
|
|
113
|
+
images?: MerchiFile[];
|
|
114
|
+
publicFiles?: MerchiFile[];
|
|
115
|
+
productionFiles?: MerchiFile[];
|
|
116
|
+
groupVariationFields?: VariationField[];
|
|
117
|
+
independentVariationFields?: VariationField[];
|
|
118
|
+
tags?: DomainTag[];
|
|
119
|
+
internalTags?: InternalTag[];
|
|
120
|
+
featureImage?: MerchiFile | null;
|
|
121
|
+
createdByJob?: Job | null;
|
|
122
|
+
defaultJob?: Job | null;
|
|
123
|
+
savedByCompanies?: Company[];
|
|
124
|
+
suppliedByDomains?: SupplyDomain[];
|
|
125
|
+
autoAssignProductionOnAction?: AutoAssignProductionOnAction;
|
|
126
|
+
supplyDomains?: SupplyDomain[];
|
|
127
|
+
inventoriesOpen?: boolean;
|
|
128
|
+
clientSideCalculation?: boolean;
|
|
129
|
+
supplyChainDisabled?: boolean;
|
|
130
|
+
inventories?: Inventory[];
|
|
131
|
+
inventoryGroups?: InventoryGroup[];
|
|
132
|
+
cartItems?: CartItem[];
|
|
133
|
+
jobs?: Job[];
|
|
134
|
+
reminders?: Reminder[];
|
|
135
|
+
supplyChainRequestJobs?: Job[];
|
|
136
|
+
savedByUsers?: User[];
|
|
137
|
+
suppliers?: User[];
|
|
138
|
+
draftTemplates?: DraftTemplate[];
|
|
139
|
+
draftPreviews?: DraftPreview[];
|
|
140
|
+
duplicate: () => Promise<Product>;
|
|
141
|
+
primaryImage: () => MerchiFile | null;
|
|
142
|
+
hasGroupVariationFields: () => boolean;
|
|
143
|
+
hasIndependentVariationFields: () => boolean;
|
|
144
|
+
allVariationFields: () => VariationField[];
|
|
145
|
+
buildEmptyVariations: () => import("./variation.js").Variation[];
|
|
146
|
+
buildEmptyVariationGroup: () => import("./variations_group.js").VariationsGroup;
|
|
147
|
+
removeVariationField: (variationField: VariationField) => VariationField[];
|
|
148
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Entity } from '../entity.js';
|
|
2
|
+
import { ProductFormVersion } from './product_form_version.js';
|
|
3
|
+
import { User } from './user.js';
|
|
4
|
+
export declare class ProductForm extends Entity {
|
|
5
|
+
protected static resourceName: string;
|
|
6
|
+
protected static singularName: string;
|
|
7
|
+
protected static pluralName: string;
|
|
8
|
+
archived?: Date | null;
|
|
9
|
+
created?: Date;
|
|
10
|
+
updated?: Date;
|
|
11
|
+
id?: number;
|
|
12
|
+
name?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
tags?: string[];
|
|
15
|
+
source?: string;
|
|
16
|
+
sdkVersion?: string;
|
|
17
|
+
status?: string;
|
|
18
|
+
activeVersion?: ProductFormVersion | null;
|
|
19
|
+
versions?: ProductFormVersion[];
|
|
20
|
+
createdBy?: User | null;
|
|
21
|
+
updatedBy?: User | null;
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Entity } from '../entity.js';
|
|
2
|
+
import { User } from './user.js';
|
|
3
|
+
export declare class ProductFormVersion extends Entity {
|
|
4
|
+
protected static resourceName: string;
|
|
5
|
+
protected static singularName: string;
|
|
6
|
+
protected static pluralName: string;
|
|
7
|
+
created?: Date;
|
|
8
|
+
id?: number;
|
|
9
|
+
versionNumber?: number;
|
|
10
|
+
source?: string;
|
|
11
|
+
sdkVersion?: string;
|
|
12
|
+
compiledBundleUrl?: string | null;
|
|
13
|
+
bundleSha?: string | null;
|
|
14
|
+
compiledError?: string | null;
|
|
15
|
+
staticGateReport?: any;
|
|
16
|
+
status?: string;
|
|
17
|
+
approvedAt?: Date | null;
|
|
18
|
+
approvedBy?: User | null;
|
|
19
|
+
createdBy?: User | null;
|
|
20
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Entity } from '../entity.js';
|
|
2
|
+
import type { Domain } from './domain.js';
|
|
3
|
+
import type { Job } from './job.js';
|
|
4
|
+
import type { Product } from './product.js';
|
|
5
|
+
/** Create payload; the API expects ``jobId`` — pass ``job`` with at least ``id``. */
|
|
6
|
+
export interface ProductReviewCreateInput {
|
|
7
|
+
job: {
|
|
8
|
+
id: number;
|
|
9
|
+
};
|
|
10
|
+
rating: number;
|
|
11
|
+
title?: string | null;
|
|
12
|
+
content?: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface ProductReviewPatchInput {
|
|
15
|
+
status?: string;
|
|
16
|
+
rejectionReason?: string | null;
|
|
17
|
+
rating?: number;
|
|
18
|
+
title?: string | null;
|
|
19
|
+
content?: string | null;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Post-purchase product review. List/create are nested under ``/products/:id/reviews/``;
|
|
23
|
+
* updates use ``/product-reviews/:id/``. Do not use :meth:`Entity.create` / :meth:`Entity.list`
|
|
24
|
+
* for this resource.
|
|
25
|
+
*
|
|
26
|
+
* API responses use ``jobId``, ``productId``, and ``domainId``; this entity maps those onto
|
|
27
|
+
* ``job``, ``product``, and ``domain`` (minimal ``{ id }`` objects unless the API nests more).
|
|
28
|
+
*/
|
|
29
|
+
export declare class ProductReview extends Entity {
|
|
30
|
+
protected static resourceName: string;
|
|
31
|
+
protected static singularName: string;
|
|
32
|
+
protected static pluralName: string;
|
|
33
|
+
id?: number;
|
|
34
|
+
product?: Product;
|
|
35
|
+
domain?: Domain;
|
|
36
|
+
authorUserId?: number;
|
|
37
|
+
authorName?: string | null;
|
|
38
|
+
job?: Job;
|
|
39
|
+
rating?: number;
|
|
40
|
+
title?: string | null;
|
|
41
|
+
content?: string | null;
|
|
42
|
+
status?: string;
|
|
43
|
+
purchaseInvoiceId?: number | null;
|
|
44
|
+
/** ISO 8601 string from the API. */
|
|
45
|
+
submittedAt?: string | null;
|
|
46
|
+
/** ISO 8601 string from the API. */
|
|
47
|
+
updatedAt?: string | null;
|
|
48
|
+
rejectionReason?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Map flat API fields (``jobId``, ``productId``, ``domainId``) to nested
|
|
51
|
+
* ``job`` / ``product`` / ``domain`` objects before :meth:`Entity.fromJson`.
|
|
52
|
+
*/
|
|
53
|
+
static normalizeApiJson(json: any): any;
|
|
54
|
+
/**
|
|
55
|
+
* Domain managers/admins: list reviews for a product.
|
|
56
|
+
*/
|
|
57
|
+
static listForProduct(this: typeof ProductReview, productId: number, options?: {
|
|
58
|
+
withRights?: boolean;
|
|
59
|
+
}): Promise<ProductReview[]>;
|
|
60
|
+
/**
|
|
61
|
+
* Buyer: create a review for the catalog ``productId`` (master product).
|
|
62
|
+
* ``body.job.id`` must be a completed job whose line item resolves to this product.
|
|
63
|
+
*/
|
|
64
|
+
static createForProduct(this: typeof ProductReview, productId: number, body: ProductReviewCreateInput, options?: {
|
|
65
|
+
withRights?: boolean;
|
|
66
|
+
}): Promise<ProductReview>;
|
|
67
|
+
/**
|
|
68
|
+
* Partial update (moderation or author edit). Uses ``multipart/form-data`` fields
|
|
69
|
+
* matching the Merchi API.
|
|
70
|
+
*/
|
|
71
|
+
patch(payload: ProductReviewPatchInput, options?: {
|
|
72
|
+
withRights?: boolean;
|
|
73
|
+
}): Promise<this>;
|
|
74
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Assignment } from './assignment.js';
|
|
2
|
+
import { Entity } from '../entity.js';
|
|
3
|
+
import { MerchiFile } from './file.js';
|
|
4
|
+
import { Notification } from './notification.js';
|
|
5
|
+
import { User } from './user.js';
|
|
6
|
+
export declare class ProductionComment extends Entity {
|
|
7
|
+
protected static resourceName: string;
|
|
8
|
+
protected static singularName: string;
|
|
9
|
+
protected static pluralName: string;
|
|
10
|
+
archived?: Date | null;
|
|
11
|
+
id?: number;
|
|
12
|
+
date?: Date | null;
|
|
13
|
+
urgency?: number;
|
|
14
|
+
text?: string;
|
|
15
|
+
isUrgentQuestion?: boolean;
|
|
16
|
+
sendSms?: boolean;
|
|
17
|
+
sendEmail?: boolean;
|
|
18
|
+
sendWhatsapp?: boolean;
|
|
19
|
+
files?: MerchiFile[];
|
|
20
|
+
user?: User;
|
|
21
|
+
forwards?: User[];
|
|
22
|
+
notifications?: Notification[];
|
|
23
|
+
assignment?: Assignment;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|