@d19n/youfibre-odin-sdk 2.0.273 → 2.0.276
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 +20 -1
- package/dist/EntityRegistry.d.ts +4 -0
- package/dist/EntityRegistry.js +4 -0
- package/dist/OdinApiClient.d.ts +8 -0
- package/dist/OdinApiClient.js +16 -0
- package/dist/OdinDbClient.d.ts +8 -0
- package/dist/OdinDbClient.js +16 -0
- package/dist/accessors-v2/NotificationTemplateAccessor.d.ts +111 -0
- package/dist/accessors-v2/NotificationTemplateAccessor.js +190 -0
- package/dist/accessors-v2/SmsTemplateAccessor.d.ts +111 -0
- package/dist/accessors-v2/SmsTemplateAccessor.js +190 -0
- package/dist/accessors-v2/index.d.ts +2 -0
- package/dist/accessors-v2/index.js +6 -2
- package/dist/actions-v2/CreateAppointmentDto.d.ts +5 -5
- package/dist/actions-v2/CreateCollectionAmcoWorkOrderDto.d.ts +8 -1
- package/dist/actions-v2/CreateCollectionAmcoWorkOrderFromOrderDto.d.ts +8 -1
- package/dist/actions-v2/CreateInboundSupportEmailDto.d.ts +170 -0
- package/dist/actions-v2/CreateInboundSupportEmailDto.js +56 -0
- package/dist/actions-v2/CreateOutageEmailDto.d.ts +142 -0
- package/dist/actions-v2/CreateOutageEmailDto.js +56 -0
- package/dist/actions-v2/CreateOutboundSupportEmailDto.d.ts +149 -0
- package/dist/actions-v2/CreateOutboundSupportEmailDto.js +56 -0
- package/dist/actions-v2/RecordSmsAppointmentConfirmationDto.d.ts +86 -0
- package/dist/actions-v2/RecordSmsAppointmentConfirmationDto.js +56 -0
- package/dist/actions-v2/RecordSmsSurveyRatingDto.d.ts +86 -0
- package/dist/actions-v2/RecordSmsSurveyRatingDto.js +56 -0
- package/dist/actions-v2/ReturnCaseToAgentOnCustomerReplyDto.d.ts +86 -0
- package/dist/actions-v2/ReturnCaseToAgentOnCustomerReplyDto.js +56 -0
- package/dist/actions-v2/UpdateNotificationTemplateDto.d.ts +93 -0
- package/dist/actions-v2/UpdateNotificationTemplateDto.js +56 -0
- package/dist/actions-v2/UpdateSmsDeliveryStatusDto.d.ts +73 -0
- package/dist/actions-v2/UpdateSmsDeliveryStatusDto.js +56 -0
- package/dist/actions-v2/UpdateSmsTemplateDto.d.ts +79 -0
- package/dist/actions-v2/UpdateSmsTemplateDto.js +56 -0
- package/dist/db-accessors-v2/NotificationTemplateDbAccessor.d.ts +149 -0
- package/dist/db-accessors-v2/NotificationTemplateDbAccessor.js +227 -0
- package/dist/db-accessors-v2/SmsTemplateDbAccessor.d.ts +149 -0
- package/dist/db-accessors-v2/SmsTemplateDbAccessor.js +227 -0
- package/dist/db-accessors-v2/index.d.ts +2 -0
- package/dist/db-accessors-v2/index.js +6 -2
- package/dist/entities-v2/Case.d.ts +67 -94
- package/dist/entities-v2/Case.js +67 -94
- package/dist/entities-v2/File.d.ts +6 -0
- package/dist/entities-v2/File.js +5 -1
- package/dist/records-v2/CaseRecord.d.ts +28 -0
- package/dist/records-v2/CaseRecord.js +37 -0
- package/dist/records-v2/EmailRecord.d.ts +84 -0
- package/dist/records-v2/EmailRecord.js +111 -0
- package/dist/records-v2/NotificationTemplateRecord.d.ts +183 -0
- package/dist/records-v2/NotificationTemplateRecord.js +244 -0
- package/dist/records-v2/SmsMessageRecord.d.ts +83 -0
- package/dist/records-v2/SmsMessageRecord.js +106 -0
- package/dist/records-v2/SmsTemplateRecord.d.ts +183 -0
- package/dist/records-v2/SmsTemplateRecord.js +244 -0
- package/dist/records-v2/index.d.ts +2 -0
- package/dist/records-v2/index.js +7 -1
- package/dist/wholesale-provider/index.d.ts +1 -1
- package/dist/wholesale-provider/interface.d.ts +54 -0
- package/dist/wholesale-provider/providers/netomnia-provider.d.ts +8 -1
- package/dist/wholesale-provider/providers/netomnia-provider.js +3 -0
- package/dist/wholesale-provider/test/netomnia-provider.spec.js +31 -0
- package/package.json +1 -1
package/dist/entities-v2/Case.js
CHANGED
|
@@ -208,35 +208,29 @@ var CaseFormalComplaint;
|
|
|
208
208
|
* Primary Exception
|
|
209
209
|
*
|
|
210
210
|
* @remarks Available options:
|
|
211
|
-
* - `
|
|
212
|
-
* - `
|
|
213
|
-
* - `
|
|
214
|
-
* - `
|
|
215
|
-
* - `
|
|
216
|
-
* - `
|
|
217
|
-
* - `
|
|
218
|
-
* - `
|
|
219
|
-
* - `
|
|
220
|
-
* - `
|
|
221
|
-
* - `SERVICE_MISINFORMATION` - Service - Mis-Information
|
|
222
|
-
* - `SERVICE_RESPONSE_TIMES` - Service - Response Times
|
|
223
|
-
* - `SERVICE_VERBAL_COMMUNICATION` - Service - Verbal communication
|
|
211
|
+
* - `BILLING_AND_CHARGES` - Billing & Charges
|
|
212
|
+
* - `CANCELLATION_AND_RETENTIONS` - Cancellation & Retentions
|
|
213
|
+
* - `CONNECTIVITY_AND_PERFORMANCE` - Connectivity & Performance
|
|
214
|
+
* - `CONTRACT_RENEWALS_AND_UPGRADES` - Contract, Renewals & Upgrades
|
|
215
|
+
* - `CUSTOMER_SERVICE` - Customer Service
|
|
216
|
+
* - `ENGINEER_EXPERIENCE` - Engineer Experience
|
|
217
|
+
* - `ESCALATIONS_AND_ADR` - Escalations & ADR
|
|
218
|
+
* - `INSTALLATION_AND_PROVISIONING` - Installation & Provisioning
|
|
219
|
+
* - `LOSS_OF_SERVICE` - Loss of Service
|
|
220
|
+
* - `SALES` - Sales
|
|
224
221
|
*/
|
|
225
222
|
var CasePrimaryException;
|
|
226
223
|
(function (CasePrimaryException) {
|
|
227
|
-
CasePrimaryException["
|
|
228
|
-
CasePrimaryException["
|
|
229
|
-
CasePrimaryException["
|
|
230
|
-
CasePrimaryException["
|
|
231
|
-
CasePrimaryException["
|
|
232
|
-
CasePrimaryException["
|
|
233
|
-
CasePrimaryException["
|
|
234
|
-
CasePrimaryException["
|
|
235
|
-
CasePrimaryException["
|
|
236
|
-
CasePrimaryException["
|
|
237
|
-
CasePrimaryException["SERVICE_MIS_INFORMATION"] = "SERVICE_MISINFORMATION";
|
|
238
|
-
CasePrimaryException["SERVICE_RESPONSE_TIMES"] = "SERVICE_RESPONSE_TIMES";
|
|
239
|
-
CasePrimaryException["SERVICE_VERBAL_COMMUNICATION"] = "SERVICE_VERBAL_COMMUNICATION";
|
|
224
|
+
CasePrimaryException["BILLING_CHARGES"] = "BILLING_AND_CHARGES";
|
|
225
|
+
CasePrimaryException["CANCELLATION_RETENTIONS"] = "CANCELLATION_AND_RETENTIONS";
|
|
226
|
+
CasePrimaryException["CONNECTIVITY_PERFORMANCE"] = "CONNECTIVITY_AND_PERFORMANCE";
|
|
227
|
+
CasePrimaryException["CONTRACT_RENEWALS_UPGRADES"] = "CONTRACT_RENEWALS_AND_UPGRADES";
|
|
228
|
+
CasePrimaryException["CUSTOMER_SERVICE"] = "CUSTOMER_SERVICE";
|
|
229
|
+
CasePrimaryException["ENGINEER_EXPERIENCE"] = "ENGINEER_EXPERIENCE";
|
|
230
|
+
CasePrimaryException["ESCALATIONS_ADR"] = "ESCALATIONS_AND_ADR";
|
|
231
|
+
CasePrimaryException["INSTALLATION_PROVISIONING"] = "INSTALLATION_AND_PROVISIONING";
|
|
232
|
+
CasePrimaryException["LOSS_OF_SERVICE"] = "LOSS_OF_SERVICE";
|
|
233
|
+
CasePrimaryException["SALES"] = "SALES";
|
|
240
234
|
})(CasePrimaryException = exports.CasePrimaryException || (exports.CasePrimaryException = {}));
|
|
241
235
|
/**
|
|
242
236
|
* Valid values for Case.PrimaryExceptionReason
|
|
@@ -244,78 +238,57 @@ var CasePrimaryException;
|
|
|
244
238
|
* Primary Exception Reason
|
|
245
239
|
*
|
|
246
240
|
* @remarks Available options:
|
|
247
|
-
* - `
|
|
248
|
-
* - `
|
|
249
|
-
* - `
|
|
250
|
-
* - `
|
|
251
|
-
* - `
|
|
252
|
-
* - `
|
|
253
|
-
* - `
|
|
254
|
-
* - `
|
|
255
|
-
* - `
|
|
256
|
-
* - `
|
|
257
|
-
* - `
|
|
258
|
-
* - `
|
|
259
|
-
* - `
|
|
260
|
-
* - `
|
|
261
|
-
* - `
|
|
262
|
-
* - ... and
|
|
241
|
+
* - `BROADBAND_OUTAGE` - Broadband outage
|
|
242
|
+
* - `CANCELLATION_DELAYS` - Cancellation delays
|
|
243
|
+
* - `CONTINUED_BILLING_AFTER_CANCELLATION` - Continued billing after cancellation
|
|
244
|
+
* - `CONTRACT_TERMS_DISAGREEMENT` - Contract terms disagreement
|
|
245
|
+
* - `DEADLOCK_LETTER_REQUEST` - Deadlock letter request
|
|
246
|
+
* - `DELAYED_INSTALLATION` - Delayed installation
|
|
247
|
+
* - `ENGINEER_BEHAVIOUR` - Engineer Behaviour
|
|
248
|
+
* - `FAILED_ACTIVATION` - Failed activation
|
|
249
|
+
* - `ICO_REFERRAL` - ICO referral
|
|
250
|
+
* - `INCOMPLETE_RESOLUTION` - Incomplete resolution
|
|
251
|
+
* - `INCORRECT_AMOUNT_CHARGED` - Incorrect amount charged
|
|
252
|
+
* - `INCORRECT_DATE_CHARGED` - Incorrect date charged
|
|
253
|
+
* - `INCORRECT_PRODUCT_INFORMATION` - Incorrect product information
|
|
254
|
+
* - `INTERMITTENT_CONNECTION` - Intermittent connection
|
|
255
|
+
* - `LACK_OF_ESCALATION` - Lack of escalation
|
|
256
|
+
* - ... and 17 more
|
|
263
257
|
*/
|
|
264
258
|
var CasePrimaryExceptionReason;
|
|
265
259
|
(function (CasePrimaryExceptionReason) {
|
|
266
|
-
CasePrimaryExceptionReason["
|
|
267
|
-
CasePrimaryExceptionReason["
|
|
268
|
-
CasePrimaryExceptionReason["
|
|
269
|
-
CasePrimaryExceptionReason["
|
|
270
|
-
CasePrimaryExceptionReason["
|
|
271
|
-
CasePrimaryExceptionReason["
|
|
272
|
-
CasePrimaryExceptionReason["
|
|
273
|
-
CasePrimaryExceptionReason["
|
|
274
|
-
CasePrimaryExceptionReason["
|
|
275
|
-
CasePrimaryExceptionReason["DISCOUNT_MISALIGNMENT"] = "DISCOUNT_MISALIGNMENT";
|
|
276
|
-
CasePrimaryExceptionReason["DISMISSED_THEIR_COMPLAINT"] = "DISMISSED_THEIR_COMPLAINT";
|
|
277
|
-
CasePrimaryExceptionReason["DISMISSIVE"] = "DISMISSIVE";
|
|
278
|
-
CasePrimaryExceptionReason["DUCT_BLOCKAGE_ISSUES"] = "DUCT_BLOCKAGE_ISSUES";
|
|
279
|
-
CasePrimaryExceptionReason["EMAIL_RESPONSE_TIMES"] = "EMAIL_RESPONSE_TIMES";
|
|
280
|
-
CasePrimaryExceptionReason["ENGINEER_CONDUCT"] = "ENGINEER_CONDUCT";
|
|
281
|
-
CasePrimaryExceptionReason["ENGINEER_TIMES_INCORRECT"] = "ENGINEER_TIMES_INCORRECT";
|
|
282
|
-
CasePrimaryExceptionReason["ESCALATION_PROCESS_NOT_FOLLOWED"] = "ESCALATION_PROCESS_NOT_FOLLOWED";
|
|
283
|
-
CasePrimaryExceptionReason["FEATURE_MISREPRESENTATION"] = "FEATURE_MISREPRESENTATION";
|
|
284
|
-
CasePrimaryExceptionReason["FORCED_UPSELL"] = "FORCED_UPSELL";
|
|
285
|
-
CasePrimaryExceptionReason["HIDDEN_FEES"] = "HIDDEN_FEES";
|
|
286
|
-
CasePrimaryExceptionReason["HIGH_PRESSURE_TACTICS"] = "HIGH-PRESSURE_TACTICS";
|
|
287
|
-
CasePrimaryExceptionReason["INACCURATE_COMPARISONS"] = "INACCURATE_COMPARISONS";
|
|
288
|
-
CasePrimaryExceptionReason["IN_A_RUSH_TO_FINISH"] = "IN_A_RUSH_TO_FINISH";
|
|
289
|
-
CasePrimaryExceptionReason["INCOMPLETE_NETWORK_TESTING"] = "INCOMPLETE_NETWORK_TESTING";
|
|
260
|
+
CasePrimaryExceptionReason["BROADBAND_OUTAGE"] = "BROADBAND_OUTAGE";
|
|
261
|
+
CasePrimaryExceptionReason["CANCELLATION_DELAYS"] = "CANCELLATION_DELAYS";
|
|
262
|
+
CasePrimaryExceptionReason["CONTINUED_BILLING_AFTER_CANCELLATION"] = "CONTINUED_BILLING_AFTER_CANCELLATION";
|
|
263
|
+
CasePrimaryExceptionReason["CONTRACT_TERMS_DISAGREEMENT"] = "CONTRACT_TERMS_DISAGREEMENT";
|
|
264
|
+
CasePrimaryExceptionReason["DEADLOCK_LETTER_REQUEST"] = "DEADLOCK_LETTER_REQUEST";
|
|
265
|
+
CasePrimaryExceptionReason["DELAYED_INSTALLATION"] = "DELAYED_INSTALLATION";
|
|
266
|
+
CasePrimaryExceptionReason["ENGINEER_BEHAVIOUR"] = "ENGINEER_BEHAVIOUR";
|
|
267
|
+
CasePrimaryExceptionReason["FAILED_ACTIVATION"] = "FAILED_ACTIVATION";
|
|
268
|
+
CasePrimaryExceptionReason["ICO_REFERRAL"] = "ICO_REFERRAL";
|
|
290
269
|
CasePrimaryExceptionReason["INCOMPLETE_RESOLUTION"] = "INCOMPLETE_RESOLUTION";
|
|
291
|
-
CasePrimaryExceptionReason["
|
|
292
|
-
CasePrimaryExceptionReason["
|
|
293
|
-
CasePrimaryExceptionReason["
|
|
294
|
-
CasePrimaryExceptionReason["
|
|
295
|
-
CasePrimaryExceptionReason["
|
|
296
|
-
CasePrimaryExceptionReason["
|
|
297
|
-
CasePrimaryExceptionReason["
|
|
298
|
-
CasePrimaryExceptionReason["
|
|
299
|
-
CasePrimaryExceptionReason["
|
|
300
|
-
CasePrimaryExceptionReason["
|
|
301
|
-
CasePrimaryExceptionReason["
|
|
302
|
-
CasePrimaryExceptionReason["
|
|
303
|
-
CasePrimaryExceptionReason["
|
|
304
|
-
CasePrimaryExceptionReason["
|
|
305
|
-
CasePrimaryExceptionReason["
|
|
306
|
-
CasePrimaryExceptionReason["
|
|
307
|
-
CasePrimaryExceptionReason["
|
|
308
|
-
CasePrimaryExceptionReason["
|
|
309
|
-
CasePrimaryExceptionReason["
|
|
310
|
-
CasePrimaryExceptionReason["
|
|
311
|
-
CasePrimaryExceptionReason["
|
|
312
|
-
CasePrimaryExceptionReason["
|
|
313
|
-
CasePrimaryExceptionReason["UNWANTED_BUNDLING"] = "UNWANTED_BUNDLING";
|
|
314
|
-
CasePrimaryExceptionReason["VENDOR_SCHEDULING_FAILURE"] = "VENDOR_SCHEDULING_FAILURE";
|
|
315
|
-
CasePrimaryExceptionReason["VERBAL_VS_WRITTEN_MISMATCH"] = "VERBAL_VS_WRITTEN_MISMATCH";
|
|
316
|
-
CasePrimaryExceptionReason["VULNERABILITY_MISSED"] = "VULNERABILITY_MISSED";
|
|
317
|
-
CasePrimaryExceptionReason["WAYLEAVE_DISPUTES"] = "WAYLEAVE_DISPUTES";
|
|
318
|
-
CasePrimaryExceptionReason["WRONG_ADVICE"] = "WRONG_ADVICE";
|
|
270
|
+
CasePrimaryExceptionReason["INCORRECT_AMOUNT_CHARGED"] = "INCORRECT_AMOUNT_CHARGED";
|
|
271
|
+
CasePrimaryExceptionReason["INCORRECT_DATE_CHARGED"] = "INCORRECT_DATE_CHARGED";
|
|
272
|
+
CasePrimaryExceptionReason["INCORRECT_PRODUCT_INFORMATION"] = "INCORRECT_PRODUCT_INFORMATION";
|
|
273
|
+
CasePrimaryExceptionReason["INTERMITTENT_CONNECTION"] = "INTERMITTENT_CONNECTION";
|
|
274
|
+
CasePrimaryExceptionReason["LACK_OF_ESCALATION"] = "LACK_OF_ESCALATION";
|
|
275
|
+
CasePrimaryExceptionReason["LACK_OF_OWNERSHIP"] = "LACK_OF_OWNERSHIP";
|
|
276
|
+
CasePrimaryExceptionReason["LONG_RESPONSE_TIMES"] = "LONG_RESPONSE_TIMES";
|
|
277
|
+
CasePrimaryExceptionReason["MISSED_APPOINTMENT"] = "MISSED_APPOINTMENT";
|
|
278
|
+
CasePrimaryExceptionReason["MIS_SELLING"] = "MISSELLING";
|
|
279
|
+
CasePrimaryExceptionReason["OFCOM_REFERRAL"] = "OFCOM_REFERRAL";
|
|
280
|
+
CasePrimaryExceptionReason["OMBUDSMAN_REFERRAL"] = "OMBUDSMAN_REFERRAL";
|
|
281
|
+
CasePrimaryExceptionReason["PHONE_SERVICE_OUTAGE"] = "PHONE_SERVICE_OUTAGE";
|
|
282
|
+
CasePrimaryExceptionReason["POOR_COMMUNICATION"] = "POOR_COMMUNICATION";
|
|
283
|
+
CasePrimaryExceptionReason["POOR_WI_FI_COVERAGE"] = "POOR_WIFI_COVERAGE";
|
|
284
|
+
CasePrimaryExceptionReason["POOR_WORKMANSHIP"] = "POOR_WORKMANSHIP";
|
|
285
|
+
CasePrimaryExceptionReason["RENEWAL_PRICING_DISPUTE"] = "RENEWAL_PRICING_DISPUTE";
|
|
286
|
+
CasePrimaryExceptionReason["REPEATED_SERVICE_LOSS"] = "REPEATED_SERVICE_LOSS";
|
|
287
|
+
CasePrimaryExceptionReason["RETENTION_PROCESS_COMPLAINT"] = "RETENTION_PROCESS_COMPLAINT";
|
|
288
|
+
CasePrimaryExceptionReason["SLOW_SPEED"] = "SLOW_SPEED";
|
|
289
|
+
CasePrimaryExceptionReason["UNEXPECTED_CHARGES"] = "UNEXPECTED_CHARGES";
|
|
290
|
+
CasePrimaryExceptionReason["UNMET_EXPECTATIONS_AFTER_PURCHASE"] = "UNMET_EXPECTATIONS_AFTER_PURCHASE";
|
|
291
|
+
CasePrimaryExceptionReason["UPGRADE_DOWNGRADE_ISSUE"] = "UPGRADE_DOWNGRADE_ISSUE";
|
|
319
292
|
})(CasePrimaryExceptionReason = exports.CasePrimaryExceptionReason || (exports.CasePrimaryExceptionReason = {}));
|
|
320
293
|
/**
|
|
321
294
|
* Valid values for Case.Problem
|
|
@@ -837,6 +837,8 @@ export declare class File extends OdinRecord<FileProperties> {
|
|
|
837
837
|
type: FileEntityTypes;
|
|
838
838
|
schemaId: '74510906-4af8-479c-862e-04a1bae015d7';
|
|
839
839
|
properties: FileProperties;
|
|
840
|
+
/** Linked File records (ServiceVisitAudit__File) */
|
|
841
|
+
File: OdinLink<LinkedOdinRecord<FileProperties>>;
|
|
840
842
|
/** Linked ServiceVisitAudit records (ServiceVisitAudit__File) */
|
|
841
843
|
ServiceVisitAudit: OdinLink<LinkedOdinRecord<ServiceVisitAuditProperties>>;
|
|
842
844
|
/** Linked BlockageA55 records (BlockageA55_File) */
|
|
@@ -1032,6 +1034,10 @@ export declare const ROUTING_KEY_FILE_OTDR_CREATED = "SchemaModule.File.OTDR.Sub
|
|
|
1032
1034
|
export declare const ROUTING_KEY_FILE_OTDR_UPDATED = "SchemaModule.File.OTDR.SubDbRecordUpdated";
|
|
1033
1035
|
/** OTDR evidence for L1 and L2 closures deleted */
|
|
1034
1036
|
export declare const ROUTING_KEY_FILE_OTDR_DELETED = "SchemaModule.File.OTDR.SubDbRecordDeleted";
|
|
1037
|
+
/** Event: ServiceVisitAudit__File link created */
|
|
1038
|
+
export declare const ROUTING_KEY_LINK_SERVICE_VISIT_AUDIT_FILE_CREATED = "SchemaModule.File.File.SubDbRecordAssociationCreated";
|
|
1039
|
+
/** Event: ServiceVisitAudit__File link deleted */
|
|
1040
|
+
export declare const ROUTING_KEY_LINK_SERVICE_VISIT_AUDIT_FILE_DELETED = "SchemaModule.File.File.SubDbRecordAssociationDeleted";
|
|
1035
1041
|
/** Event: File__Note link created */
|
|
1036
1042
|
export declare const ROUTING_KEY_LINK_FILE_NOTE_CREATED = "SchemaModule.File.Note.SubDbRecordAssociationCreated";
|
|
1037
1043
|
/** Event: File__Note link deleted */
|
package/dist/entities-v2/File.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Generated from Odin schema definition
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ROUTING_KEY_LINK_FILE_NOTE_DELETED = exports.ROUTING_KEY_LINK_FILE_NOTE_CREATED = exports.ROUTING_KEY_FILE_OTDR_DELETED = exports.ROUTING_KEY_FILE_OTDR_UPDATED = exports.ROUTING_KEY_FILE_OTDR_CREATED = exports.ROUTING_KEY_FILE_OPENREACH_A55_DELETED = exports.ROUTING_KEY_FILE_OPENREACH_A55_UPDATED = exports.ROUTING_KEY_FILE_OPENREACH_A55_CREATED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_DELETED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_UPDATED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_CREATED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_DELETED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_UPDATED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_CREATED = exports.ROUTING_KEY_FILE_INVOICE_DELETED = exports.ROUTING_KEY_FILE_INVOICE_UPDATED = exports.ROUTING_KEY_FILE_INVOICE_CREATED = exports.ROUTING_KEY_FILE_EMAIL_DELETED = exports.ROUTING_KEY_FILE_EMAIL_UPDATED = exports.ROUTING_KEY_FILE_EMAIL_CREATED = exports.ROUTING_KEY_FILE_DEFAULT_DELETED = exports.ROUTING_KEY_FILE_DEFAULT_UPDATED = exports.ROUTING_KEY_FILE_DEFAULT_CREATED = exports.ROUTING_KEY_FILE_CSV_DELETED = exports.ROUTING_KEY_FILE_CSV_UPDATED = exports.ROUTING_KEY_FILE_CSV_CREATED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_DELETED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_UPDATED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_CREATED = exports.ROUTING_KEY_FILE_AFP_INVOICE_DELETED = exports.ROUTING_KEY_FILE_AFP_INVOICE_UPDATED = exports.ROUTING_KEY_FILE_AFP_INVOICE_CREATED = exports.ROUTING_KEY_FILE_DELETED = exports.ROUTING_KEY_FILE_UPDATED = exports.ROUTING_KEY_FILE_CREATED = exports.File = exports.FilePropertyKeys = exports.FileCategory = exports.FileDevice = exports.FileDataStore = exports.FileEntityTypes = void 0;
|
|
15
|
+
exports.ROUTING_KEY_LINK_FILE_NOTE_DELETED = exports.ROUTING_KEY_LINK_FILE_NOTE_CREATED = exports.ROUTING_KEY_LINK_SERVICE_VISIT_AUDIT_FILE_DELETED = exports.ROUTING_KEY_LINK_SERVICE_VISIT_AUDIT_FILE_CREATED = exports.ROUTING_KEY_FILE_OTDR_DELETED = exports.ROUTING_KEY_FILE_OTDR_UPDATED = exports.ROUTING_KEY_FILE_OTDR_CREATED = exports.ROUTING_KEY_FILE_OPENREACH_A55_DELETED = exports.ROUTING_KEY_FILE_OPENREACH_A55_UPDATED = exports.ROUTING_KEY_FILE_OPENREACH_A55_CREATED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_DELETED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_UPDATED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_CREATED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_DELETED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_UPDATED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_CREATED = exports.ROUTING_KEY_FILE_INVOICE_DELETED = exports.ROUTING_KEY_FILE_INVOICE_UPDATED = exports.ROUTING_KEY_FILE_INVOICE_CREATED = exports.ROUTING_KEY_FILE_EMAIL_DELETED = exports.ROUTING_KEY_FILE_EMAIL_UPDATED = exports.ROUTING_KEY_FILE_EMAIL_CREATED = exports.ROUTING_KEY_FILE_DEFAULT_DELETED = exports.ROUTING_KEY_FILE_DEFAULT_UPDATED = exports.ROUTING_KEY_FILE_DEFAULT_CREATED = exports.ROUTING_KEY_FILE_CSV_DELETED = exports.ROUTING_KEY_FILE_CSV_UPDATED = exports.ROUTING_KEY_FILE_CSV_CREATED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_DELETED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_UPDATED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_CREATED = exports.ROUTING_KEY_FILE_AFP_INVOICE_DELETED = exports.ROUTING_KEY_FILE_AFP_INVOICE_UPDATED = exports.ROUTING_KEY_FILE_AFP_INVOICE_CREATED = exports.ROUTING_KEY_FILE_DELETED = exports.ROUTING_KEY_FILE_UPDATED = exports.ROUTING_KEY_FILE_CREATED = exports.File = exports.FilePropertyKeys = exports.FileCategory = exports.FileDevice = exports.FileDataStore = exports.FileEntityTypes = void 0;
|
|
16
16
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
17
|
/**
|
|
18
18
|
* Available types for File records
|
|
@@ -194,6 +194,10 @@ exports.ROUTING_KEY_FILE_OTDR_CREATED = 'SchemaModule.File.OTDR.SubDbRecordCreat
|
|
|
194
194
|
exports.ROUTING_KEY_FILE_OTDR_UPDATED = 'SchemaModule.File.OTDR.SubDbRecordUpdated';
|
|
195
195
|
/** OTDR evidence for L1 and L2 closures deleted */
|
|
196
196
|
exports.ROUTING_KEY_FILE_OTDR_DELETED = 'SchemaModule.File.OTDR.SubDbRecordDeleted';
|
|
197
|
+
/** Event: ServiceVisitAudit__File link created */
|
|
198
|
+
exports.ROUTING_KEY_LINK_SERVICE_VISIT_AUDIT_FILE_CREATED = 'SchemaModule.File.File.SubDbRecordAssociationCreated';
|
|
199
|
+
/** Event: ServiceVisitAudit__File link deleted */
|
|
200
|
+
exports.ROUTING_KEY_LINK_SERVICE_VISIT_AUDIT_FILE_DELETED = 'SchemaModule.File.File.SubDbRecordAssociationDeleted';
|
|
197
201
|
/** Event: File__Note link created */
|
|
198
202
|
exports.ROUTING_KEY_LINK_FILE_NOTE_CREATED = 'SchemaModule.File.Note.SubDbRecordAssociationCreated';
|
|
199
203
|
/** Event: File__Note link deleted */
|
|
@@ -46,6 +46,7 @@ import { MoveCaseOutageToSolvedActionProperties } from '../actions-v2/MoveCaseOu
|
|
|
46
46
|
import { UpdateAdditionalNoteProperties } from '../actions-v2/MoveCaseToClosedWithAdditionalNoteDto';
|
|
47
47
|
import { MoveCaseToSolvedActionProperties } from '../actions-v2/MoveCaseToSolvedActionDto';
|
|
48
48
|
import { RemoveAssignmentFromCaseProperties } from '../actions-v2/RemoveAssignmentFromCaseDto';
|
|
49
|
+
import { ReturnCaseToAgentOnCustomerReplyProperties } from '../actions-v2/ReturnCaseToAgentOnCustomerReplyDto';
|
|
49
50
|
import { UpdateCaseChannelOnCallProperties } from '../actions-v2/UpdateCaseChannelOnCallDto';
|
|
50
51
|
import { UpdateCaseCsatProperties } from '../actions-v2/UpdateCaseCsatDto';
|
|
51
52
|
import { UpdateCaseFromLinkedCallProperties } from '../actions-v2/UpdateCaseFromLinkedCallDto';
|
|
@@ -2958,6 +2959,33 @@ export declare class CaseRecord<TProps = CaseProperties> {
|
|
|
2958
2959
|
journeyId?: string;
|
|
2959
2960
|
stageKey?: string;
|
|
2960
2961
|
}): ActionBuilder;
|
|
2962
|
+
/**
|
|
2963
|
+
* ReturnCaseToAgentOnCustomerReply
|
|
2964
|
+
*
|
|
2965
|
+
* Updates this Case record.
|
|
2966
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
2967
|
+
*
|
|
2968
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
2969
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
2970
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
2971
|
+
* @throws Error if called on a new (unsaved) record
|
|
2972
|
+
*
|
|
2973
|
+
* @example
|
|
2974
|
+
* ```typescript
|
|
2975
|
+
* const record = await odinClient.cases.get(id);
|
|
2976
|
+
* await record.returnCaseToAgentOnCustomerReply({ ... }).execute();
|
|
2977
|
+
*
|
|
2978
|
+
* // Dry run (for debugging)
|
|
2979
|
+
* const payload = record.returnCaseToAgentOnCustomerReply({ ... }).dryRun();
|
|
2980
|
+
* ```
|
|
2981
|
+
*/
|
|
2982
|
+
returnCaseToAgentOnCustomerReply(propertiesOrOptions?: ReturnCaseToAgentOnCustomerReplyProperties | {
|
|
2983
|
+
journeyId?: string;
|
|
2984
|
+
stageKey?: string;
|
|
2985
|
+
}, options?: {
|
|
2986
|
+
journeyId?: string;
|
|
2987
|
+
stageKey?: string;
|
|
2988
|
+
}): ActionBuilder;
|
|
2961
2989
|
/**
|
|
2962
2990
|
* TestingCsatUpdateFlow
|
|
2963
2991
|
*
|
|
@@ -4337,6 +4337,43 @@ class CaseRecord {
|
|
|
4337
4337
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'RemoveAssignmentFromCase', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
4338
4338
|
return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
|
|
4339
4339
|
}
|
|
4340
|
+
/**
|
|
4341
|
+
* ReturnCaseToAgentOnCustomerReply
|
|
4342
|
+
*
|
|
4343
|
+
* Updates this Case record.
|
|
4344
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
4345
|
+
*
|
|
4346
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
4347
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
4348
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
4349
|
+
* @throws Error if called on a new (unsaved) record
|
|
4350
|
+
*
|
|
4351
|
+
* @example
|
|
4352
|
+
* ```typescript
|
|
4353
|
+
* const record = await odinClient.cases.get(id);
|
|
4354
|
+
* await record.returnCaseToAgentOnCustomerReply({ ... }).execute();
|
|
4355
|
+
*
|
|
4356
|
+
* // Dry run (for debugging)
|
|
4357
|
+
* const payload = record.returnCaseToAgentOnCustomerReply({ ... }).dryRun();
|
|
4358
|
+
* ```
|
|
4359
|
+
*/
|
|
4360
|
+
returnCaseToAgentOnCustomerReply(propertiesOrOptions, options) {
|
|
4361
|
+
var _a;
|
|
4362
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
4363
|
+
throw new Error('returnCaseToAgentOnCustomerReply requires an existing record. Use accessor.get() first.');
|
|
4364
|
+
let properties = {};
|
|
4365
|
+
let opts = options;
|
|
4366
|
+
if (propertiesOrOptions) {
|
|
4367
|
+
if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
|
|
4368
|
+
opts = propertiesOrOptions;
|
|
4369
|
+
}
|
|
4370
|
+
else {
|
|
4371
|
+
properties = propertiesOrOptions;
|
|
4372
|
+
}
|
|
4373
|
+
}
|
|
4374
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'ReturnCaseToAgentOnCustomerReply', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
4375
|
+
return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
|
|
4376
|
+
}
|
|
4340
4377
|
/**
|
|
4341
4378
|
* TestingCsatUpdateFlow
|
|
4342
4379
|
*
|
|
@@ -32,6 +32,7 @@ import { CreateCashbackRewardReferrerSuccessEmailProperties } from '../actions-v
|
|
|
32
32
|
import { CreateCboEmailProperties } from '../actions-v2/CreateCboEmailDto';
|
|
33
33
|
import { CreateFailedInvoicePaymentProperties } from '../actions-v2/CreateFailedInvoicePaymentDto';
|
|
34
34
|
import { CreateGenericRemediationRequiredProperties } from '../actions-v2/CreateGenericRemediationRequiredDto';
|
|
35
|
+
import { CreateInboundSupportEmailProperties } from '../actions-v2/CreateInboundSupportEmailDto';
|
|
35
36
|
import { CreateNewCreditNoteProperties } from '../actions-v2/CreateNewCreditNoteDto';
|
|
36
37
|
import { CreateNewInvoiceProperties } from '../actions-v2/CreateNewInvoiceDto';
|
|
37
38
|
import { CreateOrderConfirmationProperties } from '../actions-v2/CreateOrderConfirmationDto';
|
|
@@ -49,6 +50,8 @@ import { CreateOtsGainingSwitchCompleteProperties } from '../actions-v2/CreateOt
|
|
|
49
50
|
import { CreateOtsLosingSwitchConfirmationProperties } from '../actions-v2/CreateOtsLosingSwitchConfirmationDto';
|
|
50
51
|
import { CreateOtsLosingSwitchImpactProperties } from '../actions-v2/CreateOtsLosingSwitchImpactDto';
|
|
51
52
|
import { CreateOtsSwitchLosingCompleteConfirmationProperties } from '../actions-v2/CreateOtsSwitchLosingCompleteConfirmationDto';
|
|
53
|
+
import { CreateOutageEmailProperties } from '../actions-v2/CreateOutageEmailDto';
|
|
54
|
+
import { CreateOutboundSupportEmailProperties } from '../actions-v2/CreateOutboundSupportEmailDto';
|
|
52
55
|
import { CreatePaymentFailureNoMandateProperties } from '../actions-v2/CreatePaymentFailureNoMandateDto';
|
|
53
56
|
import { CreatePaymentRequestProperties } from '../actions-v2/CreatePaymentRequestDto';
|
|
54
57
|
import { CreatePortalSignupProperties } from '../actions-v2/CreatePortalSignupDto';
|
|
@@ -1781,6 +1784,87 @@ export declare class EmailRecord<TProps = EmailProperties> {
|
|
|
1781
1784
|
journeyId?: string;
|
|
1782
1785
|
stageKey?: string;
|
|
1783
1786
|
}): ActionBuilder;
|
|
1787
|
+
/**
|
|
1788
|
+
* CreateInboundSupportEmail
|
|
1789
|
+
*
|
|
1790
|
+
* Updates this Email record.
|
|
1791
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
1792
|
+
*
|
|
1793
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
1794
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
1795
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
1796
|
+
* @throws Error if called on a new (unsaved) record
|
|
1797
|
+
*
|
|
1798
|
+
* @example
|
|
1799
|
+
* ```typescript
|
|
1800
|
+
* const record = await odinClient.emails.get(id);
|
|
1801
|
+
* await record.createInboundSupportEmail({ ... }).execute();
|
|
1802
|
+
*
|
|
1803
|
+
* // Dry run (for debugging)
|
|
1804
|
+
* const payload = record.createInboundSupportEmail({ ... }).dryRun();
|
|
1805
|
+
* ```
|
|
1806
|
+
*/
|
|
1807
|
+
createInboundSupportEmail(propertiesOrOptions?: CreateInboundSupportEmailProperties | {
|
|
1808
|
+
journeyId?: string;
|
|
1809
|
+
stageKey?: string;
|
|
1810
|
+
}, options?: {
|
|
1811
|
+
journeyId?: string;
|
|
1812
|
+
stageKey?: string;
|
|
1813
|
+
}): ActionBuilder;
|
|
1814
|
+
/**
|
|
1815
|
+
* CreateOutageEmail
|
|
1816
|
+
*
|
|
1817
|
+
* Updates this Email record.
|
|
1818
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
1819
|
+
*
|
|
1820
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
1821
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
1822
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
1823
|
+
* @throws Error if called on a new (unsaved) record
|
|
1824
|
+
*
|
|
1825
|
+
* @example
|
|
1826
|
+
* ```typescript
|
|
1827
|
+
* const record = await odinClient.emails.get(id);
|
|
1828
|
+
* await record.createOutageEmail({ ... }).execute();
|
|
1829
|
+
*
|
|
1830
|
+
* // Dry run (for debugging)
|
|
1831
|
+
* const payload = record.createOutageEmail({ ... }).dryRun();
|
|
1832
|
+
* ```
|
|
1833
|
+
*/
|
|
1834
|
+
createOutageEmail(propertiesOrOptions?: CreateOutageEmailProperties | {
|
|
1835
|
+
journeyId?: string;
|
|
1836
|
+
stageKey?: string;
|
|
1837
|
+
}, options?: {
|
|
1838
|
+
journeyId?: string;
|
|
1839
|
+
stageKey?: string;
|
|
1840
|
+
}): ActionBuilder;
|
|
1841
|
+
/**
|
|
1842
|
+
* CreateOutboundSupportEmail
|
|
1843
|
+
*
|
|
1844
|
+
* Updates this Email record.
|
|
1845
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
1846
|
+
*
|
|
1847
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
1848
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
1849
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
1850
|
+
* @throws Error if called on a new (unsaved) record
|
|
1851
|
+
*
|
|
1852
|
+
* @example
|
|
1853
|
+
* ```typescript
|
|
1854
|
+
* const record = await odinClient.emails.get(id);
|
|
1855
|
+
* await record.createOutboundSupportEmail({ ... }).execute();
|
|
1856
|
+
*
|
|
1857
|
+
* // Dry run (for debugging)
|
|
1858
|
+
* const payload = record.createOutboundSupportEmail({ ... }).dryRun();
|
|
1859
|
+
* ```
|
|
1860
|
+
*/
|
|
1861
|
+
createOutboundSupportEmail(propertiesOrOptions?: CreateOutboundSupportEmailProperties | {
|
|
1862
|
+
journeyId?: string;
|
|
1863
|
+
stageKey?: string;
|
|
1864
|
+
}, options?: {
|
|
1865
|
+
journeyId?: string;
|
|
1866
|
+
stageKey?: string;
|
|
1867
|
+
}): ActionBuilder;
|
|
1784
1868
|
/**
|
|
1785
1869
|
* UpdateEmail
|
|
1786
1870
|
*
|
|
@@ -2261,6 +2261,117 @@ class EmailRecord {
|
|
|
2261
2261
|
// ============================================
|
|
2262
2262
|
// UPDATE ACTIONS (require existing record)
|
|
2263
2263
|
// ============================================
|
|
2264
|
+
/**
|
|
2265
|
+
* CreateInboundSupportEmail
|
|
2266
|
+
*
|
|
2267
|
+
* Updates this Email record.
|
|
2268
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
2269
|
+
*
|
|
2270
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
2271
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
2272
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
2273
|
+
* @throws Error if called on a new (unsaved) record
|
|
2274
|
+
*
|
|
2275
|
+
* @example
|
|
2276
|
+
* ```typescript
|
|
2277
|
+
* const record = await odinClient.emails.get(id);
|
|
2278
|
+
* await record.createInboundSupportEmail({ ... }).execute();
|
|
2279
|
+
*
|
|
2280
|
+
* // Dry run (for debugging)
|
|
2281
|
+
* const payload = record.createInboundSupportEmail({ ... }).dryRun();
|
|
2282
|
+
* ```
|
|
2283
|
+
*/
|
|
2284
|
+
createInboundSupportEmail(propertiesOrOptions, options) {
|
|
2285
|
+
var _a;
|
|
2286
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
2287
|
+
throw new Error('createInboundSupportEmail requires an existing record. Use accessor.get() first.');
|
|
2288
|
+
let properties = {};
|
|
2289
|
+
let opts = options;
|
|
2290
|
+
if (propertiesOrOptions) {
|
|
2291
|
+
if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
|
|
2292
|
+
opts = propertiesOrOptions;
|
|
2293
|
+
}
|
|
2294
|
+
else {
|
|
2295
|
+
properties = propertiesOrOptions;
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CreateInboundSupportEmail', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
2299
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
|
|
2300
|
+
}
|
|
2301
|
+
/**
|
|
2302
|
+
* CreateOutageEmail
|
|
2303
|
+
*
|
|
2304
|
+
* Updates this Email record.
|
|
2305
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
2306
|
+
*
|
|
2307
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
2308
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
2309
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
2310
|
+
* @throws Error if called on a new (unsaved) record
|
|
2311
|
+
*
|
|
2312
|
+
* @example
|
|
2313
|
+
* ```typescript
|
|
2314
|
+
* const record = await odinClient.emails.get(id);
|
|
2315
|
+
* await record.createOutageEmail({ ... }).execute();
|
|
2316
|
+
*
|
|
2317
|
+
* // Dry run (for debugging)
|
|
2318
|
+
* const payload = record.createOutageEmail({ ... }).dryRun();
|
|
2319
|
+
* ```
|
|
2320
|
+
*/
|
|
2321
|
+
createOutageEmail(propertiesOrOptions, options) {
|
|
2322
|
+
var _a;
|
|
2323
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
2324
|
+
throw new Error('createOutageEmail requires an existing record. Use accessor.get() first.');
|
|
2325
|
+
let properties = {};
|
|
2326
|
+
let opts = options;
|
|
2327
|
+
if (propertiesOrOptions) {
|
|
2328
|
+
if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
|
|
2329
|
+
opts = propertiesOrOptions;
|
|
2330
|
+
}
|
|
2331
|
+
else {
|
|
2332
|
+
properties = propertiesOrOptions;
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2335
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CreateOutageEmail', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
2336
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
|
|
2337
|
+
}
|
|
2338
|
+
/**
|
|
2339
|
+
* CreateOutboundSupportEmail
|
|
2340
|
+
*
|
|
2341
|
+
* Updates this Email record.
|
|
2342
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
2343
|
+
*
|
|
2344
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
2345
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
2346
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
2347
|
+
* @throws Error if called on a new (unsaved) record
|
|
2348
|
+
*
|
|
2349
|
+
* @example
|
|
2350
|
+
* ```typescript
|
|
2351
|
+
* const record = await odinClient.emails.get(id);
|
|
2352
|
+
* await record.createOutboundSupportEmail({ ... }).execute();
|
|
2353
|
+
*
|
|
2354
|
+
* // Dry run (for debugging)
|
|
2355
|
+
* const payload = record.createOutboundSupportEmail({ ... }).dryRun();
|
|
2356
|
+
* ```
|
|
2357
|
+
*/
|
|
2358
|
+
createOutboundSupportEmail(propertiesOrOptions, options) {
|
|
2359
|
+
var _a;
|
|
2360
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
2361
|
+
throw new Error('createOutboundSupportEmail requires an existing record. Use accessor.get() first.');
|
|
2362
|
+
let properties = {};
|
|
2363
|
+
let opts = options;
|
|
2364
|
+
if (propertiesOrOptions) {
|
|
2365
|
+
if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
|
|
2366
|
+
opts = propertiesOrOptions;
|
|
2367
|
+
}
|
|
2368
|
+
else {
|
|
2369
|
+
properties = propertiesOrOptions;
|
|
2370
|
+
}
|
|
2371
|
+
}
|
|
2372
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CreateOutboundSupportEmail', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
2373
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'Email', payload, () => { this._pendingLinks = []; });
|
|
2374
|
+
}
|
|
2264
2375
|
/**
|
|
2265
2376
|
* UpdateEmail
|
|
2266
2377
|
*
|