n8n-nodes-servicem8-jobcreation 1.0.0
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/README.md +517 -0
- package/dist/credentials/ServiceM8Api.credentials.d.ts +9 -0
- package/dist/credentials/ServiceM8Api.credentials.js +38 -0
- package/dist/credentials/ServiceM8Api.credentials.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/ServiceM8JobCreation.node.d.ts +18 -0
- package/dist/nodes/ServiceM8JobCreation/ServiceM8JobCreation.node.js +39 -0
- package/dist/nodes/ServiceM8JobCreation/ServiceM8JobCreation.node.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/execute.d.ts +6 -0
- package/dist/nodes/ServiceM8JobCreation/execute.js +47 -0
- package/dist/nodes/ServiceM8JobCreation/execute.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/helpers/addressUtils.d.ts +56 -0
- package/dist/nodes/ServiceM8JobCreation/helpers/addressUtils.js +124 -0
- package/dist/nodes/ServiceM8JobCreation/helpers/addressUtils.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/helpers/api.d.ts +180 -0
- package/dist/nodes/ServiceM8JobCreation/helpers/api.js +418 -0
- package/dist/nodes/ServiceM8JobCreation/helpers/api.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/helpers/clientMatcher.d.ts +67 -0
- package/dist/nodes/ServiceM8JobCreation/helpers/clientMatcher.js +216 -0
- package/dist/nodes/ServiceM8JobCreation/helpers/clientMatcher.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/helpers/phoneUtils.d.ts +35 -0
- package/dist/nodes/ServiceM8JobCreation/helpers/phoneUtils.js +122 -0
- package/dist/nodes/ServiceM8JobCreation/helpers/phoneUtils.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/methods/index.d.ts +13 -0
- package/dist/nodes/ServiceM8JobCreation/methods/index.js +17 -0
- package/dist/nodes/ServiceM8JobCreation/methods/index.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/methods/loadOptions.d.ts +9 -0
- package/dist/nodes/ServiceM8JobCreation/methods/loadOptions.js +61 -0
- package/dist/nodes/ServiceM8JobCreation/methods/loadOptions.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/categoryAssign.d.ts +22 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/categoryAssign.js +61 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/categoryAssign.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/clientCreate.d.ts +36 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/clientCreate.js +66 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/clientCreate.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/clientLookup.d.ts +28 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/clientLookup.js +46 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/clientLookup.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/contactLookup.d.ts +18 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/contactLookup.js +48 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/contactLookup.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/index.d.ts +12 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/index.js +40 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/index.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/inputProcessor.d.ts +63 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/inputProcessor.js +176 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/inputProcessor.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/jobCreate.d.ts +43 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/jobCreate.js +82 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/jobCreate.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/notifications.d.ts +38 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/notifications.js +123 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/notifications.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/orchestrator.d.ts +12 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/orchestrator.js +192 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/orchestrator.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/queueAssign.d.ts +22 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/queueAssign.js +61 -0
- package/dist/nodes/ServiceM8JobCreation/operations/create/queueAssign.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/operations/index.d.ts +8 -0
- package/dist/nodes/ServiceM8JobCreation/operations/index.js +35 -0
- package/dist/nodes/ServiceM8JobCreation/operations/index.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/operations/shared/attachmentsUpload.d.ts +41 -0
- package/dist/nodes/ServiceM8JobCreation/operations/shared/attachmentsUpload.js +243 -0
- package/dist/nodes/ServiceM8JobCreation/operations/shared/attachmentsUpload.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/operations/shared/badgesAssign.d.ts +21 -0
- package/dist/nodes/ServiceM8JobCreation/operations/shared/badgesAssign.js +65 -0
- package/dist/nodes/ServiceM8JobCreation/operations/shared/badgesAssign.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/operations/shared/index.d.ts +7 -0
- package/dist/nodes/ServiceM8JobCreation/operations/shared/index.js +15 -0
- package/dist/nodes/ServiceM8JobCreation/operations/shared/index.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/operations/shared/notesCreate.d.ts +42 -0
- package/dist/nodes/ServiceM8JobCreation/operations/shared/notesCreate.js +103 -0
- package/dist/nodes/ServiceM8JobCreation/operations/shared/notesCreate.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/operations/update/index.d.ts +5 -0
- package/dist/nodes/ServiceM8JobCreation/operations/update/index.js +9 -0
- package/dist/nodes/ServiceM8JobCreation/operations/update/index.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/operations/update/jobUpdate.d.ts +10 -0
- package/dist/nodes/ServiceM8JobCreation/operations/update/jobUpdate.js +239 -0
- package/dist/nodes/ServiceM8JobCreation/operations/update/jobUpdate.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/address.d.ts +5 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/address.js +145 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/address.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/business.d.ts +5 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/business.js +22 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/business.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/contact.d.ts +5 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/contact.js +85 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/contact.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/index.d.ts +10 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/index.js +30 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/index.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/job.d.ts +5 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/job.js +43 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/job.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/additionalOptions.d.ts +5 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/additionalOptions.js +49 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/additionalOptions.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/attachments.d.ts +5 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/attachments.js +151 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/attachments.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/badges.d.ts +5 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/badges.js +65 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/badges.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/category.d.ts +5 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/category.js +65 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/category.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/index.d.ts +12 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/index.js +38 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/index.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/notes.d.ts +5 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/notes.js +49 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/notes.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/notifications.d.ts +5 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/notifications.js +197 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/notifications.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/queue.d.ts +5 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/queue.js +65 -0
- package/dist/nodes/ServiceM8JobCreation/properties/create/options/queue.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/index.d.ts +9 -0
- package/dist/nodes/ServiceM8JobCreation/properties/index.js +23 -0
- package/dist/nodes/ServiceM8JobCreation/properties/index.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/operation.d.ts +5 -0
- package/dist/nodes/ServiceM8JobCreation/properties/operation.js +28 -0
- package/dist/nodes/ServiceM8JobCreation/properties/operation.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/update/fields.d.ts +5 -0
- package/dist/nodes/ServiceM8JobCreation/properties/update/fields.js +74 -0
- package/dist/nodes/ServiceM8JobCreation/properties/update/fields.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/update/index.d.ts +8 -0
- package/dist/nodes/ServiceM8JobCreation/properties/update/index.js +22 -0
- package/dist/nodes/ServiceM8JobCreation/properties/update/index.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/update/jobSelection.d.ts +5 -0
- package/dist/nodes/ServiceM8JobCreation/properties/update/jobSelection.js +63 -0
- package/dist/nodes/ServiceM8JobCreation/properties/update/jobSelection.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/properties/update/options.d.ts +5 -0
- package/dist/nodes/ServiceM8JobCreation/properties/update/options.js +142 -0
- package/dist/nodes/ServiceM8JobCreation/properties/update/options.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/servicem8.svg +75 -0
- package/dist/nodes/ServiceM8JobCreation/types/api.d.ts +59 -0
- package/dist/nodes/ServiceM8JobCreation/types/api.js +34 -0
- package/dist/nodes/ServiceM8JobCreation/types/api.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/types/index.d.ts +7 -0
- package/dist/nodes/ServiceM8JobCreation/types/index.js +21 -0
- package/dist/nodes/ServiceM8JobCreation/types/index.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/types/input.d.ts +119 -0
- package/dist/nodes/ServiceM8JobCreation/types/input.js +6 -0
- package/dist/nodes/ServiceM8JobCreation/types/input.js.map +1 -0
- package/dist/nodes/ServiceM8JobCreation/types/result.d.ts +79 -0
- package/dist/nodes/ServiceM8JobCreation/types/result.js +96 -0
- package/dist/nodes/ServiceM8JobCreation/types/result.js.map +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Notifications Properties (Create Job)
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.notificationsProperties = void 0;
|
|
7
|
+
exports.notificationsProperties = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Send Notifications',
|
|
10
|
+
name: 'enableNotifications',
|
|
11
|
+
type: 'boolean',
|
|
12
|
+
default: false,
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: {
|
|
15
|
+
operation: ['create'],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
description: 'Whether to send SMS/email notifications for the new job',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: 'Notification Recipients',
|
|
22
|
+
name: 'notificationRecipients',
|
|
23
|
+
type: 'fixedCollection',
|
|
24
|
+
typeOptions: {
|
|
25
|
+
multipleValues: true,
|
|
26
|
+
},
|
|
27
|
+
placeholder: 'Add Recipient',
|
|
28
|
+
default: {},
|
|
29
|
+
displayOptions: {
|
|
30
|
+
show: {
|
|
31
|
+
operation: ['create'],
|
|
32
|
+
enableNotifications: [true],
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
options: [
|
|
36
|
+
{
|
|
37
|
+
displayName: 'Recipient',
|
|
38
|
+
name: 'recipient',
|
|
39
|
+
values: [
|
|
40
|
+
{
|
|
41
|
+
displayName: 'Notification Type',
|
|
42
|
+
name: 'notificationType',
|
|
43
|
+
type: 'options',
|
|
44
|
+
options: [
|
|
45
|
+
{
|
|
46
|
+
name: 'Email',
|
|
47
|
+
value: 'email',
|
|
48
|
+
description: 'Send an email notification',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'SMS',
|
|
52
|
+
value: 'sms',
|
|
53
|
+
description: 'Send an SMS notification',
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
default: 'email',
|
|
57
|
+
description: 'Type of notification to send',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
displayName: 'Email Address',
|
|
61
|
+
name: 'email',
|
|
62
|
+
type: 'string',
|
|
63
|
+
default: '',
|
|
64
|
+
placeholder: 'name@email.com',
|
|
65
|
+
displayOptions: {
|
|
66
|
+
show: {
|
|
67
|
+
notificationType: ['email'],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
description: 'Recipient email address',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
displayName: 'Phone Number',
|
|
74
|
+
name: 'phone',
|
|
75
|
+
type: 'string',
|
|
76
|
+
default: '',
|
|
77
|
+
placeholder: '04xx xxx xxx',
|
|
78
|
+
displayOptions: {
|
|
79
|
+
show: {
|
|
80
|
+
notificationType: ['sms'],
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
description: 'Recipient phone number for SMS',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
displayName: 'Recipient Name',
|
|
87
|
+
name: 'name',
|
|
88
|
+
type: 'string',
|
|
89
|
+
default: '',
|
|
90
|
+
placeholder: 'John',
|
|
91
|
+
description: 'Recipient name (used in greeting)',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
displayName: 'Email Format',
|
|
95
|
+
name: 'emailFormat',
|
|
96
|
+
type: 'options',
|
|
97
|
+
options: [
|
|
98
|
+
{
|
|
99
|
+
name: 'HTML',
|
|
100
|
+
value: 'html',
|
|
101
|
+
description: 'Send HTML formatted email',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'Plain Text',
|
|
105
|
+
value: 'text',
|
|
106
|
+
description: 'Send plain text email',
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
default: 'html',
|
|
110
|
+
displayOptions: {
|
|
111
|
+
show: {
|
|
112
|
+
notificationType: ['email'],
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
description: 'Format for email content',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
displayName: 'Subject',
|
|
119
|
+
name: 'subject',
|
|
120
|
+
type: 'string',
|
|
121
|
+
default: '[SM8 NEW JOB] #{{jobNumber}} - {{clientName}}',
|
|
122
|
+
placeholder: 'New job notification',
|
|
123
|
+
displayOptions: {
|
|
124
|
+
show: {
|
|
125
|
+
notificationType: ['email'],
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
description: 'Email subject line. Available placeholders: {{name}}, {{jobNumber}}, {{clientName}}, {{jobAddress}}, {{jobDetails}}',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
displayName: 'Message (HTML)',
|
|
132
|
+
name: 'htmlMessage',
|
|
133
|
+
type: 'string',
|
|
134
|
+
typeOptions: {
|
|
135
|
+
rows: 5,
|
|
136
|
+
},
|
|
137
|
+
default: '<p>Hi {{name}},</p><p>A new job has been created.</p><ul><li><strong>Customer:</strong> {{clientName}}</li><li><strong>Job Address:</strong> {{jobAddress}}</li><li><strong>Job #:</strong> #{{jobNumber}}</li><li><strong>Description:</strong> {{jobDetails}}</li></ul><p>Thanks</p>',
|
|
138
|
+
placeholder: '<p>Hi {{name}},</p><p>A new job has been created...</p>',
|
|
139
|
+
displayOptions: {
|
|
140
|
+
show: {
|
|
141
|
+
notificationType: ['email'],
|
|
142
|
+
emailFormat: ['html'],
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
description: 'HTML email body. Available placeholders: {{name}}, {{jobNumber}}, {{clientName}}, {{jobAddress}}, {{jobDetails}}',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
displayName: 'Message (Text)',
|
|
149
|
+
name: 'textMessage',
|
|
150
|
+
type: 'string',
|
|
151
|
+
typeOptions: {
|
|
152
|
+
rows: 4,
|
|
153
|
+
},
|
|
154
|
+
default: 'Hi {{name}},\n\nA new job has been created.\n\nCustomer: {{clientName}}\nJob Address: {{jobAddress}}\nJob #: #{{jobNumber}}\nDescription: {{jobDetails}}\n\nThanks',
|
|
155
|
+
placeholder: 'Hi {{name}}, a new job #{{jobNumber}} has been created...',
|
|
156
|
+
displayOptions: {
|
|
157
|
+
show: {
|
|
158
|
+
notificationType: ['email'],
|
|
159
|
+
emailFormat: ['text'],
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
description: 'Plain text email body. Available placeholders: {{name}}, {{jobNumber}}, {{clientName}}, {{jobAddress}}, {{jobDetails}}',
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
displayName: 'SMS Message',
|
|
166
|
+
name: 'smsMessage',
|
|
167
|
+
type: 'string',
|
|
168
|
+
typeOptions: {
|
|
169
|
+
rows: 3,
|
|
170
|
+
},
|
|
171
|
+
default: '[NEW JOB] #{{jobNumber}} - {{clientName}}. Check ServiceM8 for details.',
|
|
172
|
+
placeholder: '[NEW JOB] #{{jobNumber}} - {{clientName}}',
|
|
173
|
+
displayOptions: {
|
|
174
|
+
show: {
|
|
175
|
+
notificationType: ['sms'],
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
description: 'SMS message (max 160 characters recommended). Available placeholders: {{name}}, {{jobNumber}}, {{clientName}}, {{jobAddress}}, {{jobDetails}}',
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
displayName: 'Include Attachments',
|
|
182
|
+
name: 'includeAttachments',
|
|
183
|
+
type: 'boolean',
|
|
184
|
+
default: false,
|
|
185
|
+
displayOptions: {
|
|
186
|
+
show: {
|
|
187
|
+
notificationType: ['email'],
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
description: 'Whether to include attachments from incoming binary data in the email. If enabled, all binary data from the incoming item will be attached.',
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
},
|
|
196
|
+
];
|
|
197
|
+
//# sourceMappingURL=notifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../../../../nodes/ServiceM8JobCreation/properties/create/options/notifications.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Queue Properties (Create Job)
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.queueProperties = void 0;
|
|
7
|
+
exports.queueProperties = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Assign to Queue',
|
|
10
|
+
name: 'enableQueue',
|
|
11
|
+
type: 'boolean',
|
|
12
|
+
default: false,
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: {
|
|
15
|
+
operation: ['create'],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
description: 'Whether to assign the job to a queue',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: 'Use Dynamic Queue Name',
|
|
22
|
+
name: 'queueDynamic',
|
|
23
|
+
type: 'boolean',
|
|
24
|
+
default: false,
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
operation: ['create'],
|
|
28
|
+
enableQueue: [true],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
description: 'Use a dynamic queue name from expression instead of dropdown',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Queue',
|
|
35
|
+
name: 'queue',
|
|
36
|
+
type: 'options',
|
|
37
|
+
typeOptions: {
|
|
38
|
+
loadOptionsMethod: 'getQueues',
|
|
39
|
+
},
|
|
40
|
+
default: '',
|
|
41
|
+
displayOptions: {
|
|
42
|
+
show: {
|
|
43
|
+
operation: ['create'],
|
|
44
|
+
enableQueue: [true],
|
|
45
|
+
queueDynamic: [false],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
description: 'Queue to assign the job to',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
displayName: 'Queue Name',
|
|
52
|
+
name: 'queueName',
|
|
53
|
+
type: 'string',
|
|
54
|
+
default: '',
|
|
55
|
+
displayOptions: {
|
|
56
|
+
show: {
|
|
57
|
+
operation: ['create'],
|
|
58
|
+
enableQueue: [true],
|
|
59
|
+
queueDynamic: [true],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
description: 'Queue name to look up (case-insensitive)',
|
|
63
|
+
},
|
|
64
|
+
];
|
|
65
|
+
//# sourceMappingURL=queue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../../../../nodes/ServiceM8JobCreation/properties/create/options/queue.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAIU,QAAA,eAAe,GAAsB;IACjD;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,WAAW,EAAE,sCAAsC;KACnD;IACD;QACC,WAAW,EAAE,wBAAwB;QACrC,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,WAAW,EAAE,CAAC,IAAI,CAAC;aACnB;SACD;QACD,WAAW,EAAE,8DAA8D;KAC3E;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACZ,iBAAiB,EAAE,WAAW;SAC9B;QACD,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,WAAW,EAAE,CAAC,IAAI,CAAC;gBACnB,YAAY,EAAE,CAAC,KAAK,CAAC;aACrB;SACD;QACD,WAAW,EAAE,4BAA4B;KACzC;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,WAAW,EAAE,CAAC,IAAI,CAAC;gBACnB,YAAY,EAAE,CAAC,IAAI,CAAC;aACpB;SACD;QACD,WAAW,EAAE,0CAA0C;KACvD;CACD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Properties Index
|
|
3
|
+
* Combines all node properties into a single array
|
|
4
|
+
*/
|
|
5
|
+
import type { INodeProperties } from 'n8n-workflow';
|
|
6
|
+
export declare const properties: INodeProperties[];
|
|
7
|
+
export { operationProperty } from './operation';
|
|
8
|
+
export { updateProperties } from './update';
|
|
9
|
+
export { createProperties } from './create';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Properties Index
|
|
4
|
+
* Combines all node properties into a single array
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.createProperties = exports.updateProperties = exports.operationProperty = exports.properties = void 0;
|
|
8
|
+
const operation_1 = require("./operation");
|
|
9
|
+
const update_1 = require("./update");
|
|
10
|
+
const create_1 = require("./create");
|
|
11
|
+
exports.properties = [
|
|
12
|
+
operation_1.operationProperty,
|
|
13
|
+
...update_1.updateProperties,
|
|
14
|
+
...create_1.createProperties,
|
|
15
|
+
];
|
|
16
|
+
// Re-export modules for granular access
|
|
17
|
+
var operation_2 = require("./operation");
|
|
18
|
+
Object.defineProperty(exports, "operationProperty", { enumerable: true, get: function () { return operation_2.operationProperty; } });
|
|
19
|
+
var update_2 = require("./update");
|
|
20
|
+
Object.defineProperty(exports, "updateProperties", { enumerable: true, get: function () { return update_2.updateProperties; } });
|
|
21
|
+
var create_2 = require("./create");
|
|
22
|
+
Object.defineProperty(exports, "createProperties", { enumerable: true, get: function () { return create_2.createProperties; } });
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/ServiceM8JobCreation/properties/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,2CAAgD;AAChD,qCAA4C;AAC5C,qCAA4C;AAE/B,QAAA,UAAU,GAAsB;IAC5C,6BAAiB;IACjB,GAAG,yBAAgB;IACnB,GAAG,yBAAgB;CACnB,CAAC;AAEF,wCAAwC;AACxC,yCAAgD;AAAvC,8GAAA,iBAAiB,OAAA;AAC1B,mCAA4C;AAAnC,0GAAA,gBAAgB,OAAA;AACzB,mCAA4C;AAAnC,0GAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Operation Selector Property
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.operationProperty = void 0;
|
|
7
|
+
exports.operationProperty = {
|
|
8
|
+
displayName: 'Operation',
|
|
9
|
+
name: 'operation',
|
|
10
|
+
type: 'options',
|
|
11
|
+
noDataExpression: true,
|
|
12
|
+
options: [
|
|
13
|
+
{
|
|
14
|
+
name: 'Create Job',
|
|
15
|
+
value: 'create',
|
|
16
|
+
description: 'Create a new job with intelligent client/contact deduplication',
|
|
17
|
+
action: 'Create a new job',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: 'Update Job',
|
|
21
|
+
value: 'update',
|
|
22
|
+
description: 'Update an existing job by job number',
|
|
23
|
+
action: 'Update an existing job',
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
default: 'create',
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.js","sourceRoot":"","sources":["../../../../nodes/ServiceM8JobCreation/properties/operation.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAIU,QAAA,iBAAiB,GAAoB;IACjD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,OAAO,EAAE;QACR;YACC,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,gEAAgE;YAC7E,MAAM,EAAE,kBAAkB;SAC1B;QACD;YACC,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,sCAAsC;YACnD,MAAM,EAAE,wBAAwB;SAChC;KACD;IACD,OAAO,EAAE,QAAQ;CACjB,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Update Fields Properties (Update Job)
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.fieldsProperties = void 0;
|
|
7
|
+
exports.fieldsProperties = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Update Fields',
|
|
10
|
+
name: 'updateFieldsNotice',
|
|
11
|
+
type: 'notice',
|
|
12
|
+
default: '',
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: {
|
|
15
|
+
operation: ['update'],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Fields to Update',
|
|
21
|
+
name: 'updateFields',
|
|
22
|
+
type: 'collection',
|
|
23
|
+
placeholder: 'Add Field',
|
|
24
|
+
default: {},
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
operation: ['update'],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
options: [
|
|
31
|
+
{
|
|
32
|
+
displayName: 'Job Description',
|
|
33
|
+
name: 'job_description',
|
|
34
|
+
type: 'string',
|
|
35
|
+
typeOptions: {
|
|
36
|
+
rows: 4,
|
|
37
|
+
},
|
|
38
|
+
default: '',
|
|
39
|
+
description: 'Update the job description/notes',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'Job Status',
|
|
43
|
+
name: 'status',
|
|
44
|
+
type: 'options',
|
|
45
|
+
options: [
|
|
46
|
+
{ name: 'Quote', value: 'Quote' },
|
|
47
|
+
{ name: 'Work Order', value: 'Work Order' },
|
|
48
|
+
{ name: 'In Progress', value: 'In Progress' },
|
|
49
|
+
{ name: 'Completed', value: 'Completed' },
|
|
50
|
+
],
|
|
51
|
+
default: 'Quote',
|
|
52
|
+
description: 'Update the job status',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
displayName: 'Job Address',
|
|
56
|
+
name: 'job_address',
|
|
57
|
+
type: 'string',
|
|
58
|
+
default: '',
|
|
59
|
+
description: 'Update the job site address',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
displayName: 'Category',
|
|
63
|
+
name: 'category_uuid',
|
|
64
|
+
type: 'options',
|
|
65
|
+
typeOptions: {
|
|
66
|
+
loadOptionsMethod: 'getCategories',
|
|
67
|
+
},
|
|
68
|
+
default: '',
|
|
69
|
+
description: 'Update the job category',
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
];
|
|
74
|
+
//# sourceMappingURL=fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../nodes/ServiceM8JobCreation/properties/update/fields.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAIU,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;KACD;IACD;QACC,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,IAAI,EAAE,CAAC;iBACP;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,kCAAkC;aAC/C;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;oBACjC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;oBAC3C,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;oBAC7C,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;iBACzC;gBACD,OAAO,EAAE,OAAO;gBAChB,WAAW,EAAE,uBAAuB;aACpC;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,6BAA6B;aAC1C;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE;oBACZ,iBAAiB,EAAE,eAAe;iBAClC;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,yBAAyB;aACtC;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Update Job Properties Index
|
|
3
|
+
*/
|
|
4
|
+
import type { INodeProperties } from 'n8n-workflow';
|
|
5
|
+
export declare const updateProperties: INodeProperties[];
|
|
6
|
+
export { jobSelectionProperties } from './jobSelection';
|
|
7
|
+
export { fieldsProperties } from './fields';
|
|
8
|
+
export { updateOptionsProperties } from './options';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Update Job Properties Index
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.updateOptionsProperties = exports.fieldsProperties = exports.jobSelectionProperties = exports.updateProperties = void 0;
|
|
7
|
+
const jobSelection_1 = require("./jobSelection");
|
|
8
|
+
const fields_1 = require("./fields");
|
|
9
|
+
const options_1 = require("./options");
|
|
10
|
+
exports.updateProperties = [
|
|
11
|
+
...jobSelection_1.jobSelectionProperties,
|
|
12
|
+
...fields_1.fieldsProperties,
|
|
13
|
+
...options_1.updateOptionsProperties,
|
|
14
|
+
];
|
|
15
|
+
// Re-export individual property groups
|
|
16
|
+
var jobSelection_2 = require("./jobSelection");
|
|
17
|
+
Object.defineProperty(exports, "jobSelectionProperties", { enumerable: true, get: function () { return jobSelection_2.jobSelectionProperties; } });
|
|
18
|
+
var fields_2 = require("./fields");
|
|
19
|
+
Object.defineProperty(exports, "fieldsProperties", { enumerable: true, get: function () { return fields_2.fieldsProperties; } });
|
|
20
|
+
var options_2 = require("./options");
|
|
21
|
+
Object.defineProperty(exports, "updateOptionsProperties", { enumerable: true, get: function () { return options_2.updateOptionsProperties; } });
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/ServiceM8JobCreation/properties/update/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAIH,iDAAwD;AACxD,qCAA4C;AAC5C,uCAAoD;AAEvC,QAAA,gBAAgB,GAAsB;IAClD,GAAG,qCAAsB;IACzB,GAAG,yBAAgB;IACnB,GAAG,iCAAuB;CAC1B,CAAC;AAEF,uCAAuC;AACvC,+CAAwD;AAA/C,sHAAA,sBAAsB,OAAA;AAC/B,mCAA4C;AAAnC,0GAAA,gBAAgB,OAAA;AACzB,qCAAoD;AAA3C,kHAAA,uBAAuB,OAAA"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Job Selection Properties (Update Job)
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.jobSelectionProperties = void 0;
|
|
7
|
+
exports.jobSelectionProperties = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Job Selection Mode',
|
|
10
|
+
name: 'jobSelectionMode',
|
|
11
|
+
type: 'options',
|
|
12
|
+
options: [
|
|
13
|
+
{
|
|
14
|
+
name: 'Dropdown (Select from List)',
|
|
15
|
+
value: 'dropdown',
|
|
16
|
+
description: 'Select a job from a searchable dropdown',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: 'Dynamic (Expression)',
|
|
20
|
+
value: 'dynamic',
|
|
21
|
+
description: 'Enter job number directly or use an expression',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
default: 'dropdown',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
operation: ['update'],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
description: 'How to specify the job to update',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Job',
|
|
34
|
+
name: 'jobUuid',
|
|
35
|
+
type: 'options',
|
|
36
|
+
typeOptions: {
|
|
37
|
+
loadOptionsMethod: 'getJobs',
|
|
38
|
+
},
|
|
39
|
+
default: '',
|
|
40
|
+
displayOptions: {
|
|
41
|
+
show: {
|
|
42
|
+
operation: ['update'],
|
|
43
|
+
jobSelectionMode: ['dropdown'],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
description: 'Select the job to update',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
displayName: 'Job Number',
|
|
50
|
+
name: 'jobNumber',
|
|
51
|
+
type: 'string',
|
|
52
|
+
default: '',
|
|
53
|
+
placeholder: 'J00123',
|
|
54
|
+
displayOptions: {
|
|
55
|
+
show: {
|
|
56
|
+
operation: ['update'],
|
|
57
|
+
jobSelectionMode: ['dynamic'],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
description: 'The job number (e.g., J00123) to update',
|
|
61
|
+
},
|
|
62
|
+
];
|
|
63
|
+
//# sourceMappingURL=jobSelection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobSelection.js","sourceRoot":"","sources":["../../../../../nodes/ServiceM8JobCreation/properties/update/jobSelection.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAIU,QAAA,sBAAsB,GAAsB;IACxD;QACC,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,6BAA6B;gBACnC,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,yCAAyC;aACtD;YACD;gBACC,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,gDAAgD;aAC7D;SACD;QACD,OAAO,EAAE,UAAU;QACnB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,WAAW,EAAE,kCAAkC;KAC/C;IACD;QACC,WAAW,EAAE,KAAK;QAClB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACZ,iBAAiB,EAAE,SAAS;SAC5B;QACD,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,gBAAgB,EAAE,CAAC,UAAU,CAAC;aAC9B;SACD;QACD,WAAW,EAAE,0BAA0B;KACvC;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,QAAQ;QACrB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,gBAAgB,EAAE,CAAC,SAAS,CAAC;aAC7B;SACD;QACD,WAAW,EAAE,yCAAyC;KACtD;CACD,CAAC"}
|