@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.
Files changed (62) hide show
  1. package/README.md +20 -1
  2. package/dist/EntityRegistry.d.ts +4 -0
  3. package/dist/EntityRegistry.js +4 -0
  4. package/dist/OdinApiClient.d.ts +8 -0
  5. package/dist/OdinApiClient.js +16 -0
  6. package/dist/OdinDbClient.d.ts +8 -0
  7. package/dist/OdinDbClient.js +16 -0
  8. package/dist/accessors-v2/NotificationTemplateAccessor.d.ts +111 -0
  9. package/dist/accessors-v2/NotificationTemplateAccessor.js +190 -0
  10. package/dist/accessors-v2/SmsTemplateAccessor.d.ts +111 -0
  11. package/dist/accessors-v2/SmsTemplateAccessor.js +190 -0
  12. package/dist/accessors-v2/index.d.ts +2 -0
  13. package/dist/accessors-v2/index.js +6 -2
  14. package/dist/actions-v2/CreateAppointmentDto.d.ts +5 -5
  15. package/dist/actions-v2/CreateCollectionAmcoWorkOrderDto.d.ts +8 -1
  16. package/dist/actions-v2/CreateCollectionAmcoWorkOrderFromOrderDto.d.ts +8 -1
  17. package/dist/actions-v2/CreateInboundSupportEmailDto.d.ts +170 -0
  18. package/dist/actions-v2/CreateInboundSupportEmailDto.js +56 -0
  19. package/dist/actions-v2/CreateOutageEmailDto.d.ts +142 -0
  20. package/dist/actions-v2/CreateOutageEmailDto.js +56 -0
  21. package/dist/actions-v2/CreateOutboundSupportEmailDto.d.ts +149 -0
  22. package/dist/actions-v2/CreateOutboundSupportEmailDto.js +56 -0
  23. package/dist/actions-v2/RecordSmsAppointmentConfirmationDto.d.ts +86 -0
  24. package/dist/actions-v2/RecordSmsAppointmentConfirmationDto.js +56 -0
  25. package/dist/actions-v2/RecordSmsSurveyRatingDto.d.ts +86 -0
  26. package/dist/actions-v2/RecordSmsSurveyRatingDto.js +56 -0
  27. package/dist/actions-v2/ReturnCaseToAgentOnCustomerReplyDto.d.ts +86 -0
  28. package/dist/actions-v2/ReturnCaseToAgentOnCustomerReplyDto.js +56 -0
  29. package/dist/actions-v2/UpdateNotificationTemplateDto.d.ts +93 -0
  30. package/dist/actions-v2/UpdateNotificationTemplateDto.js +56 -0
  31. package/dist/actions-v2/UpdateSmsDeliveryStatusDto.d.ts +73 -0
  32. package/dist/actions-v2/UpdateSmsDeliveryStatusDto.js +56 -0
  33. package/dist/actions-v2/UpdateSmsTemplateDto.d.ts +79 -0
  34. package/dist/actions-v2/UpdateSmsTemplateDto.js +56 -0
  35. package/dist/db-accessors-v2/NotificationTemplateDbAccessor.d.ts +149 -0
  36. package/dist/db-accessors-v2/NotificationTemplateDbAccessor.js +227 -0
  37. package/dist/db-accessors-v2/SmsTemplateDbAccessor.d.ts +149 -0
  38. package/dist/db-accessors-v2/SmsTemplateDbAccessor.js +227 -0
  39. package/dist/db-accessors-v2/index.d.ts +2 -0
  40. package/dist/db-accessors-v2/index.js +6 -2
  41. package/dist/entities-v2/Case.d.ts +67 -94
  42. package/dist/entities-v2/Case.js +67 -94
  43. package/dist/entities-v2/File.d.ts +6 -0
  44. package/dist/entities-v2/File.js +5 -1
  45. package/dist/records-v2/CaseRecord.d.ts +28 -0
  46. package/dist/records-v2/CaseRecord.js +37 -0
  47. package/dist/records-v2/EmailRecord.d.ts +84 -0
  48. package/dist/records-v2/EmailRecord.js +111 -0
  49. package/dist/records-v2/NotificationTemplateRecord.d.ts +183 -0
  50. package/dist/records-v2/NotificationTemplateRecord.js +244 -0
  51. package/dist/records-v2/SmsMessageRecord.d.ts +83 -0
  52. package/dist/records-v2/SmsMessageRecord.js +106 -0
  53. package/dist/records-v2/SmsTemplateRecord.d.ts +183 -0
  54. package/dist/records-v2/SmsTemplateRecord.js +244 -0
  55. package/dist/records-v2/index.d.ts +2 -0
  56. package/dist/records-v2/index.js +7 -1
  57. package/dist/wholesale-provider/index.d.ts +1 -1
  58. package/dist/wholesale-provider/interface.d.ts +54 -0
  59. package/dist/wholesale-provider/providers/netomnia-provider.d.ts +8 -1
  60. package/dist/wholesale-provider/providers/netomnia-provider.js +3 -0
  61. package/dist/wholesale-provider/test/netomnia-provider.spec.js +31 -0
  62. package/package.json +1 -1
@@ -0,0 +1,111 @@
1
+ /**
2
+ * SmsTemplate Accessor
3
+ *
4
+ * Provides typed access to SmsTemplate records via API.
5
+ * Returns wrapped records with typed action methods.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * // Get existing record
10
+ * const record = await accessor.get(id);
11
+ * await record.updateSmsTemplate({ ... });
12
+ *
13
+ * // Create new record
14
+ * const newRecord = accessor.new();
15
+ * await newRecord.createSmsTemplate({ ... });
16
+ * ```
17
+ *
18
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
19
+ */
20
+ import { OdinSearchV2 } from '@d19n/odin-types/dist/core';
21
+ import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
22
+ import { OauthParams } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
23
+ import { QueryBuilder } from '@d19n/odin-sdk-generator/dist/query-builder';
24
+ import { SmsTemplateProperties } from '../entities-v2/SmsTemplate';
25
+ import { SmsTemplateRecord } from '../records-v2/SmsTemplateRecord';
26
+ /** List response with wrapped records */
27
+ export interface SmsTemplateListResponse {
28
+ data: SmsTemplateRecord[];
29
+ hasMore: boolean;
30
+ totalRecords: number;
31
+ }
32
+ /** Search response with wrapped records */
33
+ export interface SmsTemplateSearchResponse {
34
+ records: SmsTemplateRecord[];
35
+ totalRecords: number;
36
+ hasMore: boolean;
37
+ }
38
+ export declare class SmsTemplateAccessor {
39
+ private readonly _provider;
40
+ private readonly _moduleName;
41
+ private readonly _entityName;
42
+ constructor(provider: ApiProvider);
43
+ constructor(authParams: OauthParams);
44
+ constructor(authToken: string, host?: string);
45
+ get moduleName(): string;
46
+ get entityName(): string;
47
+ /**
48
+ * Create a new empty SmsTemplate record instance for create operations.
49
+ * Pre-generates an ID that can be referenced before the record is saved.
50
+ *
51
+ * @param id - Optional ID to use (auto-generated UUID if not provided)
52
+ * @returns A new record wrapper with pre-generated ID
53
+ *
54
+ * @example
55
+ * ```typescript
56
+ * // Auto-generated ID
57
+ * const note = odinClient.notes.new();
58
+ * console.log(note.id); // UUID available immediately
59
+ *
60
+ * // Custom ID
61
+ * const order = odinClient.orders.new("custom-id-123");
62
+ *
63
+ * // Reference ID before save
64
+ * const account = odinClient.accounts.new();
65
+ * const contact = odinClient.contacts.new();
66
+ * await contact
67
+ * .link({ id: account.id, entity: "CrmModule:Account" })
68
+ * .createContact({ FirstName: "John" });
69
+ * ```
70
+ */
71
+ new(id?: string): SmsTemplateRecord;
72
+ /**
73
+ * Get a single SmsTemplate record by ID
74
+ */
75
+ get(id: string): Promise<SmsTemplateRecord>;
76
+ /**
77
+ * Get multiple SmsTemplate records by IDs
78
+ */
79
+ getMany(ids: string[]): Promise<SmsTemplateRecord[]>;
80
+ /**
81
+ * Search SmsTemplate records
82
+ */
83
+ search(params: Partial<OdinSearchV2>): Promise<SmsTemplateSearchResponse>;
84
+ /**
85
+ * Search all SmsTemplate records with automatic pagination
86
+ */
87
+ searchAll(params: Partial<OdinSearchV2>): Promise<SmsTemplateRecord[]>;
88
+ /**
89
+ * Async generator for paginating through all matching records.
90
+ * Yields batches of wrapped records.
91
+ */
92
+ paginate(params: Partial<OdinSearchV2>): AsyncGenerator<SmsTemplateRecord[]>;
93
+ /**
94
+ * Create a fluent query builder for SmsTemplate records
95
+ *
96
+ * @example
97
+ * ```typescript
98
+ * const results = await accessor
99
+ * .query()
100
+ * .where('Status', 'in', ['Active', 'Pending'])
101
+ * .where('CreatedAt', 'gte', '2025-01-01')
102
+ * .select('id', 'title', 'properties.*')
103
+ * .sortBy('createdAt', 'desc')
104
+ * .limit(100)
105
+ * .execute();
106
+ * ```
107
+ */
108
+ query(): QueryBuilder<SmsTemplateProperties, SmsTemplateRecord>;
109
+ /** Access the underlying ApiProvider */
110
+ get provider(): ApiProvider;
111
+ }
@@ -0,0 +1,190 @@
1
+ "use strict";
2
+ /**
3
+ * SmsTemplate Accessor
4
+ *
5
+ * Provides typed access to SmsTemplate records via API.
6
+ * Returns wrapped records with typed action methods.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * // Get existing record
11
+ * const record = await accessor.get(id);
12
+ * await record.updateSmsTemplate({ ... });
13
+ *
14
+ * // Create new record
15
+ * const newRecord = accessor.new();
16
+ * await newRecord.createSmsTemplate({ ... });
17
+ * ```
18
+ *
19
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
20
+ */
21
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
22
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23
+ return new (P || (P = Promise))(function (resolve, reject) {
24
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
25
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
26
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
27
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
28
+ });
29
+ };
30
+ var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
31
+ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
32
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
33
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
34
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
35
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
36
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
37
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
38
+ function fulfill(value) { resume("next", value); }
39
+ function reject(value) { resume("throw", value); }
40
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
41
+ };
42
+ Object.defineProperty(exports, "__esModule", { value: true });
43
+ exports.SmsTemplateAccessor = void 0;
44
+ const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
45
+ const query_builder_1 = require("@d19n/odin-sdk-generator/dist/query-builder");
46
+ const SmsTemplateRecord_1 = require("../records-v2/SmsTemplateRecord");
47
+ class SmsTemplateAccessor {
48
+ constructor(providerOrAuth, host) {
49
+ this._moduleName = 'NotificationModule';
50
+ this._entityName = 'SmsTemplate';
51
+ if (providerOrAuth instanceof api_provider_1.ApiProvider) {
52
+ this._provider = providerOrAuth;
53
+ }
54
+ else if (typeof providerOrAuth === 'string') {
55
+ // Auth token provided
56
+ this._provider = new api_provider_1.ApiProvider(host ? { host } : undefined, providerOrAuth);
57
+ }
58
+ else {
59
+ // OauthParams provided
60
+ this._provider = new api_provider_1.ApiProvider(providerOrAuth);
61
+ }
62
+ }
63
+ get moduleName() { return this._moduleName; }
64
+ get entityName() { return this._entityName; }
65
+ // ============================================
66
+ // RECORD CREATION
67
+ // ============================================
68
+ /**
69
+ * Create a new empty SmsTemplate record instance for create operations.
70
+ * Pre-generates an ID that can be referenced before the record is saved.
71
+ *
72
+ * @param id - Optional ID to use (auto-generated UUID if not provided)
73
+ * @returns A new record wrapper with pre-generated ID
74
+ *
75
+ * @example
76
+ * ```typescript
77
+ * // Auto-generated ID
78
+ * const note = odinClient.notes.new();
79
+ * console.log(note.id); // UUID available immediately
80
+ *
81
+ * // Custom ID
82
+ * const order = odinClient.orders.new("custom-id-123");
83
+ *
84
+ * // Reference ID before save
85
+ * const account = odinClient.accounts.new();
86
+ * const contact = odinClient.contacts.new();
87
+ * await contact
88
+ * .link({ id: account.id, entity: "CrmModule:Account" })
89
+ * .createContact({ FirstName: "John" });
90
+ * ```
91
+ */
92
+ new(id) {
93
+ return new SmsTemplateRecord_1.SmsTemplateRecord(null, this._provider, id);
94
+ }
95
+ // ============================================
96
+ // RECORD RETRIEVAL
97
+ // ============================================
98
+ /**
99
+ * Get a single SmsTemplate record by ID
100
+ */
101
+ get(id) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ const record = yield this._provider._getByPrimaryKey(this._moduleName, this._entityName, id);
104
+ return new SmsTemplateRecord_1.SmsTemplateRecord(record, this._provider);
105
+ });
106
+ }
107
+ /**
108
+ * Get multiple SmsTemplate records by IDs
109
+ */
110
+ getMany(ids) {
111
+ return __awaiter(this, void 0, void 0, function* () {
112
+ if (ids.length === 0)
113
+ return [];
114
+ const records = yield this._provider._getManyByPrimaryKey(this._moduleName, this._entityName, ids);
115
+ return records.map((r) => new SmsTemplateRecord_1.SmsTemplateRecord(r, this._provider));
116
+ });
117
+ }
118
+ // ============================================
119
+ // SEARCH OPERATIONS
120
+ // ============================================
121
+ /**
122
+ * Search SmsTemplate records
123
+ */
124
+ search(params) {
125
+ return __awaiter(this, void 0, void 0, function* () {
126
+ const result = yield this._provider._searchRecords(this._moduleName, this._entityName, params);
127
+ return {
128
+ records: result.records.map((r) => new SmsTemplateRecord_1.SmsTemplateRecord(r, this._provider)),
129
+ totalRecords: result.totalRecords,
130
+ hasMore: result.hasMore,
131
+ };
132
+ });
133
+ }
134
+ /**
135
+ * Search all SmsTemplate records with automatic pagination
136
+ */
137
+ searchAll(params) {
138
+ return __awaiter(this, void 0, void 0, function* () {
139
+ const result = yield this._provider._searchAllRecordsAndPaginate(this._moduleName, this._entityName, params);
140
+ return result.records.map((r) => new SmsTemplateRecord_1.SmsTemplateRecord(r, this._provider));
141
+ });
142
+ }
143
+ /**
144
+ * Async generator for paginating through all matching records.
145
+ * Yields batches of wrapped records.
146
+ */
147
+ paginate(params) {
148
+ var _a;
149
+ return __asyncGenerator(this, arguments, function* paginate_1() {
150
+ let hasMore = true;
151
+ let searchAfter;
152
+ const query = Object.assign(Object.assign({}, params.query), { pageSize: ((_a = params.query) === null || _a === void 0 ? void 0 : _a.pageSize) || 500 });
153
+ while (hasMore) {
154
+ const result = yield __await(this._provider._searchRecords(this._moduleName, this._entityName, Object.assign(Object.assign({}, params), { query: Object.assign(Object.assign({}, query), { searchAfter }) })));
155
+ if (result.records.length > 0) {
156
+ yield yield __await(result.records.map((r) => new SmsTemplateRecord_1.SmsTemplateRecord(r, this._provider)));
157
+ const lastRecord = result.records[result.records.length - 1];
158
+ searchAfter = lastRecord === null || lastRecord === void 0 ? void 0 : lastRecord.sort;
159
+ }
160
+ hasMore = result.hasMore && result.records.length >= query.pageSize;
161
+ }
162
+ });
163
+ }
164
+ // ============================================
165
+ // QUERY BUILDER
166
+ // ============================================
167
+ /**
168
+ * Create a fluent query builder for SmsTemplate records
169
+ *
170
+ * @example
171
+ * ```typescript
172
+ * const results = await accessor
173
+ * .query()
174
+ * .where('Status', 'in', ['Active', 'Pending'])
175
+ * .where('CreatedAt', 'gte', '2025-01-01')
176
+ * .select('id', 'title', 'properties.*')
177
+ * .sortBy('createdAt', 'desc')
178
+ * .limit(100)
179
+ * .execute();
180
+ * ```
181
+ */
182
+ query() {
183
+ return (0, query_builder_1.createQueryBuilder)(this);
184
+ }
185
+ /** Access the underlying ApiProvider */
186
+ get provider() {
187
+ return this._provider;
188
+ }
189
+ }
190
+ exports.SmsTemplateAccessor = SmsTemplateAccessor;
@@ -56,6 +56,7 @@ export { MessageAccessor, MessageSearchResponse, MessageListResponse } from './M
56
56
  export { ModifyServiceRequestAccessor, ModifyServiceRequestSearchResponse, ModifyServiceRequestListResponse } from './ModifyServiceRequestAccessor';
57
57
  export { NetworkDeviceAccessor, NetworkDeviceSearchResponse, NetworkDeviceListResponse } from './NetworkDeviceAccessor';
58
58
  export { NoteAccessor, NoteSearchResponse, NoteListResponse } from './NoteAccessor';
59
+ export { NotificationTemplateAccessor, NotificationTemplateSearchResponse, NotificationTemplateListResponse } from './NotificationTemplateAccessor';
59
60
  export { OfferAccessor, OfferSearchResponse, OfferListResponse } from './OfferAccessor';
60
61
  export { OfferTemplateAccessor, OfferTemplateSearchResponse, OfferTemplateListResponse } from './OfferTemplateAccessor';
61
62
  export { OhExternalAuditAccessor, OhExternalAuditSearchResponse, OhExternalAuditListResponse } from './OhExternalAuditAccessor';
@@ -104,6 +105,7 @@ export { ServiceAppointmentAccessor, ServiceAppointmentSearchResponse, ServiceAp
104
105
  export { ServiceAccessor, ServiceSearchResponse, ServiceListResponse } from './ServiceAccessor';
105
106
  export { SiteSpecificRiskAssessmentOutcomeFormAccessor, SiteSpecificRiskAssessmentOutcomeFormSearchResponse, SiteSpecificRiskAssessmentOutcomeFormListResponse } from './SiteSpecificRiskAssessmentOutcomeFormAccessor';
106
107
  export { SmsMessageAccessor, SmsMessageSearchResponse, SmsMessageListResponse } from './SmsMessageAccessor';
108
+ export { SmsTemplateAccessor, SmsTemplateSearchResponse, SmsTemplateListResponse } from './SmsTemplateAccessor';
107
109
  export { TeamAccessor, TeamSearchResponse, TeamListResponse } from './TeamAccessor';
108
110
  export { TimeSlotAccessor, TimeSlotSearchResponse, TimeSlotListResponse } from './TimeSlotAccessor';
109
111
  export { TransactionAccessor, TransactionSearchResponse, TransactionListResponse } from './TransactionAccessor';
@@ -9,8 +9,8 @@
9
9
  */
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
11
  exports.NoteAccessor = exports.NetworkDeviceAccessor = exports.ModifyServiceRequestAccessor = exports.MessageAccessor = exports.LeadAccessor = exports.KnowledgeArticleAccessor = exports.InvoiceAccessor = exports.InvoiceItemAccessor = exports.ImpersonationTrackerAccessor = exports.FileAccessor = exports.FieldServiceProductAccessor = exports.FieldServiceDispatchedProductAccessor = exports.ExchangeAccessor = exports.EmailTemplateAccessor = exports.EmailSenderAccessor = exports.EmailAccessor = exports.DiscountAccessor = exports.DataIssueAccessor = exports.CustomerPhonePortingAccessor = exports.CustomerDeviceRouterAccessor = exports.CustomerDeviceAccessor = exports.CustomerDeviceOntAccessor = exports.CustomerDeviceConfigurationAccessor = exports.CustomerDeviceAtaAccessor = exports.CrmDatasetAccessor = exports.CreditNoteAccessor = exports.ConversationSummaryFeedbackAccessor = exports.ConversationAccessor = exports.ContractBuyOutAccessor = exports.ContactAccessor = exports.ContactIdentityAccessor = exports.ConfigAccessor = exports.ChurnRequestAccessor = exports.ChangeReasonAccessor = exports.CaseAccessor = exports.CampaignAccessor = exports.CallAccessor = exports.CallLegAccessor = exports.BrskEntityMigrationErrorAccessor = exports.BngProvisionAccessor = exports.BillingRequestAccessor = exports.BillingAdjustmentAccessor = exports.AppointmentAccessor = exports.AffiliateCodeAccessor = exports.AddressAccessor = exports.AddressInteractionAccessor = exports.ActivityAccessor = exports.ActivityLogAccessor = exports.AccountAccessor = exports.AccountCreditAccessor = void 0;
12
- exports.TimeSlotAccessor = exports.TeamAccessor = exports.SmsMessageAccessor = exports.SiteSpecificRiskAssessmentOutcomeFormAccessor = exports.ServiceAccessor = exports.ServiceAppointmentAccessor = exports.ServiceAppointmentConfigAccessor = exports.ScheduleSlotAccessor = exports.SalesTerritoryAccessor = exports.RewardAccessor = exports.ReturnsAccessor = exports.RemediationRequiredReasonAccessor = exports.RemediationOutcomeFormAccessor = exports.RegionAccessor = exports.ReferralAccessor = exports.PushNotificationAccessor = exports.ProductAccessor = exports.PriceBookAccessor = exports.PgWebhookAccessor = exports.PgWebhookAttemptAccessor = exports.PgVocalinkAccessor = exports.PgTransactionAccessor = exports.PgSortCodeSubstitutionAccessor = exports.PgReportEventAccessor = exports.PgPaymentMethodAccessor = exports.PgLogAccessor = exports.PgFileAllocationAccessor = exports.PgDisputeAccessor = exports.PgDirectDebitFileAccessor = exports.PgContactAccessor = exports.PgAccountValidationAccessor = exports.PermissionToFailAccessor = exports.PaymentAccessor = exports.PaymentMethodRefundAccessor = exports.PaymentMethodAccessor = exports.PICRequestAccessor = exports.OverlayRealA55Accessor = exports.OutboundDialSessionAccessor = exports.OutboundDialCampaignAccessor = exports.OutboundDialCampaignCaseAccessor = exports.OutageAccessor = exports.OrderAccessor = exports.OrderKciAccessor = exports.OrderItemAccessor = exports.OrderCheckAccessor = exports.OntReplacementApprovalAccessor = exports.OneTouchSwitchAccessor = exports.OhExternalAuditAccessor = exports.OfferTemplateAccessor = exports.OfferAccessor = void 0;
13
- exports.YfWifiSurveyAccessor = exports.YfFieldServiceVisitAccessor = exports.WorkOrderStatusUpdateAccessor = exports.WorkOrderAccessor = exports.WayleaveAuditAccessor = exports.VoiceConfigurationAccessor = exports.VisitAccessor = exports.UserAccessor = exports.UgExternalAuditAccessor = exports.TwilioWorkerAccessor = exports.TwilioUserUpdateAccessor = exports.TwilioTaskQueueAccessor = exports.TwilioCallEventAccessor = exports.TwilioActivityAccessor = exports.TransactionAccessor = void 0;
12
+ exports.SmsTemplateAccessor = exports.SmsMessageAccessor = exports.SiteSpecificRiskAssessmentOutcomeFormAccessor = exports.ServiceAccessor = exports.ServiceAppointmentAccessor = exports.ServiceAppointmentConfigAccessor = exports.ScheduleSlotAccessor = exports.SalesTerritoryAccessor = exports.RewardAccessor = exports.ReturnsAccessor = exports.RemediationRequiredReasonAccessor = exports.RemediationOutcomeFormAccessor = exports.RegionAccessor = exports.ReferralAccessor = exports.PushNotificationAccessor = exports.ProductAccessor = exports.PriceBookAccessor = exports.PgWebhookAccessor = exports.PgWebhookAttemptAccessor = exports.PgVocalinkAccessor = exports.PgTransactionAccessor = exports.PgSortCodeSubstitutionAccessor = exports.PgReportEventAccessor = exports.PgPaymentMethodAccessor = exports.PgLogAccessor = exports.PgFileAllocationAccessor = exports.PgDisputeAccessor = exports.PgDirectDebitFileAccessor = exports.PgContactAccessor = exports.PgAccountValidationAccessor = exports.PermissionToFailAccessor = exports.PaymentAccessor = exports.PaymentMethodRefundAccessor = exports.PaymentMethodAccessor = exports.PICRequestAccessor = exports.OverlayRealA55Accessor = exports.OutboundDialSessionAccessor = exports.OutboundDialCampaignAccessor = exports.OutboundDialCampaignCaseAccessor = exports.OutageAccessor = exports.OrderAccessor = exports.OrderKciAccessor = exports.OrderItemAccessor = exports.OrderCheckAccessor = exports.OntReplacementApprovalAccessor = exports.OneTouchSwitchAccessor = exports.OhExternalAuditAccessor = exports.OfferTemplateAccessor = exports.OfferAccessor = exports.NotificationTemplateAccessor = void 0;
13
+ exports.YfWifiSurveyAccessor = exports.YfFieldServiceVisitAccessor = exports.WorkOrderStatusUpdateAccessor = exports.WorkOrderAccessor = exports.WayleaveAuditAccessor = exports.VoiceConfigurationAccessor = exports.VisitAccessor = exports.UserAccessor = exports.UgExternalAuditAccessor = exports.TwilioWorkerAccessor = exports.TwilioUserUpdateAccessor = exports.TwilioTaskQueueAccessor = exports.TwilioCallEventAccessor = exports.TwilioActivityAccessor = exports.TransactionAccessor = exports.TimeSlotAccessor = exports.TeamAccessor = void 0;
14
14
  var AccountCreditAccessor_1 = require("./AccountCreditAccessor");
15
15
  Object.defineProperty(exports, "AccountCreditAccessor", { enumerable: true, get: function () { return AccountCreditAccessor_1.AccountCreditAccessor; } });
16
16
  var AccountAccessor_1 = require("./AccountAccessor");
@@ -111,6 +111,8 @@ var NetworkDeviceAccessor_1 = require("./NetworkDeviceAccessor");
111
111
  Object.defineProperty(exports, "NetworkDeviceAccessor", { enumerable: true, get: function () { return NetworkDeviceAccessor_1.NetworkDeviceAccessor; } });
112
112
  var NoteAccessor_1 = require("./NoteAccessor");
113
113
  Object.defineProperty(exports, "NoteAccessor", { enumerable: true, get: function () { return NoteAccessor_1.NoteAccessor; } });
114
+ var NotificationTemplateAccessor_1 = require("./NotificationTemplateAccessor");
115
+ Object.defineProperty(exports, "NotificationTemplateAccessor", { enumerable: true, get: function () { return NotificationTemplateAccessor_1.NotificationTemplateAccessor; } });
114
116
  var OfferAccessor_1 = require("./OfferAccessor");
115
117
  Object.defineProperty(exports, "OfferAccessor", { enumerable: true, get: function () { return OfferAccessor_1.OfferAccessor; } });
116
118
  var OfferTemplateAccessor_1 = require("./OfferTemplateAccessor");
@@ -207,6 +209,8 @@ var SiteSpecificRiskAssessmentOutcomeFormAccessor_1 = require("./SiteSpecificRis
207
209
  Object.defineProperty(exports, "SiteSpecificRiskAssessmentOutcomeFormAccessor", { enumerable: true, get: function () { return SiteSpecificRiskAssessmentOutcomeFormAccessor_1.SiteSpecificRiskAssessmentOutcomeFormAccessor; } });
208
210
  var SmsMessageAccessor_1 = require("./SmsMessageAccessor");
209
211
  Object.defineProperty(exports, "SmsMessageAccessor", { enumerable: true, get: function () { return SmsMessageAccessor_1.SmsMessageAccessor; } });
212
+ var SmsTemplateAccessor_1 = require("./SmsTemplateAccessor");
213
+ Object.defineProperty(exports, "SmsTemplateAccessor", { enumerable: true, get: function () { return SmsTemplateAccessor_1.SmsTemplateAccessor; } });
210
214
  var TeamAccessor_1 = require("./TeamAccessor");
211
215
  Object.defineProperty(exports, "TeamAccessor", { enumerable: true, get: function () { return TeamAccessor_1.TeamAccessor; } });
212
216
  var TimeSlotAccessor_1 = require("./TimeSlotAccessor");
@@ -26,7 +26,7 @@ export interface CreateAppointmentMessage extends OdinRecordCreatedEvent<CreateA
26
26
  */
27
27
  export interface CreateAppointmentProperties {
28
28
  /**
29
- * MeetingTitle
29
+ * Meeting Title
30
30
  *
31
31
  * The title of the appointment (Sales - Appointment)
32
32
  * @type {TEXT}
@@ -51,7 +51,7 @@ export interface CreateAppointmentProperties {
51
51
  */
52
52
  Date: string;
53
53
  /**
54
- * FirstName
54
+ * First Name
55
55
  *
56
56
  * Display name/title for Appointment records. Primary identifier for Sales team.
57
57
  * @type {TEXT}
@@ -59,7 +59,7 @@ export interface CreateAppointmentProperties {
59
59
  */
60
60
  FirstName: string;
61
61
  /**
62
- * LastName
62
+ * Last Name
63
63
  *
64
64
  * Display name/title for Appointment records. Primary identifier for Sales team.
65
65
  * @type {TEXT}
@@ -75,7 +75,7 @@ export interface CreateAppointmentProperties {
75
75
  */
76
76
  Comment: string;
77
77
  /**
78
- * EmailAddress
78
+ * Email Address
79
79
  *
80
80
  * email address (Sales - Appointment)
81
81
  * @type {EMAIL}
@@ -89,7 +89,7 @@ export interface CreateAppointmentProperties {
89
89
  */
90
90
  Phone?: string | null;
91
91
  /**
92
- * AddressId
92
+ * Address Id
93
93
  *
94
94
  * Reference identifier for Appointment relationships. Used for data integrity.
95
95
  * @type {LOOKUP}
@@ -23,7 +23,7 @@ export interface CreateCollectionAmcoWorkOrderMessage extends OdinRecordCreatedE
23
23
  * Properties for CreateCollectionAmcoWorkOrder action
24
24
  *
25
25
  * @property Required fields: 0
26
- * @property Optional fields: 17
26
+ * @property Optional fields: 18
27
27
  */
28
28
  export interface CreateCollectionAmcoWorkOrderProperties {
29
29
  /**
@@ -70,6 +70,13 @@ export interface CreateCollectionAmcoWorkOrderProperties {
70
70
  * @hidden This field is not visible in the UI
71
71
  */
72
72
  AddressId?: string | null;
73
+ /**
74
+ * description
75
+ *
76
+ * description of the service order (Field Operations - WorkOrder)
77
+ * @type {TEXT_LONG}
78
+ */
79
+ Description?: string | null;
73
80
  /**
74
81
  * Expected Return Date
75
82
  *
@@ -15,7 +15,7 @@ import { OdinRecord, OdinRecordCreateDto, OdinRecordUpdateDto, OdinRecordUpdated
15
15
  * Properties for CreateCollectionAmcoWorkOrder action
16
16
  *
17
17
  * @property Required fields: 0
18
- * @property Optional fields: 17
18
+ * @property Optional fields: 18
19
19
  */
20
20
  export interface CreateCollectionAmcoWorkOrderProperties {
21
21
  /**
@@ -62,6 +62,13 @@ export interface CreateCollectionAmcoWorkOrderProperties {
62
62
  * @hidden This field is not visible in the UI
63
63
  */
64
64
  AddressId?: string | null;
65
+ /**
66
+ * description
67
+ *
68
+ * description of the service order (Field Operations - WorkOrder)
69
+ * @type {TEXT_LONG}
70
+ */
71
+ Description?: string | null;
65
72
  /**
66
73
  * Expected Return Date
67
74
  *
@@ -0,0 +1,170 @@
1
+ /**
2
+ * CreateInboundSupportEmail Action DTO
3
+ *
4
+ * Records an email a customer sent in, as parsed from the SendGrid inbound-parse webhook, and links it to its Case. Carries the raw envelope, the threading headers and the rendered HTML body. Distinct from CreateOutboundSupportEmail: that one stages an agent reply before it is sent and writes a placeholder MessageId, whereas this records a message that has already been received with its real Message-ID.
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Email
8
+ * @actionKey CreateInboundSupportEmail
9
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Update.CreateInboundSupportEmail
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for CreateInboundSupportEmail updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Update.CreateInboundSupportEmail
18
+ */
19
+ export interface CreateInboundSupportEmailMessage extends OdinRecordUpdatedEvent<CreateInboundSupportEmailDto, CreateInboundSupportEmailProperties> {
20
+ }
21
+ /**
22
+ * Properties for CreateInboundSupportEmail action
23
+ *
24
+ * @property Required fields: 0
25
+ * @property Optional fields: 15
26
+ */
27
+ export interface CreateInboundSupportEmailProperties {
28
+ /**
29
+ * Message ID
30
+ *
31
+ * SMTP Message Id (Communications - Email)
32
+ * @type {TEXT}
33
+ */
34
+ MessageId?: string | null;
35
+ /**
36
+ * Parent message ID
37
+ *
38
+ * Parent Message id (Communications - Email)
39
+ * @type {LOOKUP}
40
+ */
41
+ ParentMessageId?: string | null;
42
+ /**
43
+ * Date received
44
+ *
45
+ * Date field for Email records. Used by Communications team.
46
+ * @type {DATE_TIME}
47
+ */
48
+ Date?: string | null;
49
+ /**
50
+ * SendGrid envelope
51
+ *
52
+ * Data field for Email records. Used by Communications team.
53
+ * @type {JSON}
54
+ */
55
+ Envelope?: string | null;
56
+ /**
57
+ * In-Reply-To header
58
+ *
59
+ * In Reply To (Communications - Email)
60
+ * @type {TEXT}
61
+ */
62
+ InReplyTo?: string | null;
63
+ /**
64
+ * From
65
+ *
66
+ * Data field for Email records. Used by Communications team.
67
+ * @type {TEXT}
68
+ */
69
+ From?: string | null;
70
+ /**
71
+ * To
72
+ *
73
+ * Data field for Email records. Used by Communications team.
74
+ * @type {TEXT}
75
+ */
76
+ To?: string | null;
77
+ /**
78
+ * Cc
79
+ *
80
+ * Carbon Copy (Communications - Email)
81
+ * @type {TEXT}
82
+ */
83
+ Cc?: string | null;
84
+ /**
85
+ * Bcc
86
+ *
87
+ * Blind Carbon Copy (Communications - Email)
88
+ * @type {TEXT}
89
+ */
90
+ Bcc?: string | null;
91
+ /**
92
+ * Subject
93
+ *
94
+ * Data field for Email records. Used by Communications team.
95
+ * @type {TEXT}
96
+ */
97
+ Subject?: string | null;
98
+ /**
99
+ * Plain-text body
100
+ *
101
+ * Data field for Email records. Used by Communications team.
102
+ * @type {TEXT}
103
+ */
104
+ Message?: string | null;
105
+ /**
106
+ * HTML body
107
+ *
108
+ * Formatted Message (Communications - Email)
109
+ * @type {HTML}
110
+ */
111
+ FormattedMessage?: string | null;
112
+ /**
113
+ * Sender type
114
+ *
115
+ * Sender Type (Communications - Email)
116
+ * @type {ENUM}
117
+ */
118
+ SenderType?: string | null;
119
+ /**
120
+ * Case
121
+ *
122
+ * Data field for Email records. Used by Communications team.
123
+ * @type {LOOKUP}
124
+ */
125
+ Case?: string | null;
126
+ /**
127
+ * Attachment file ids
128
+ *
129
+ * email attachments (Communications - Email)
130
+ * @type {FILE_MULTIPLE}
131
+ */
132
+ Files?: string | null;
133
+ }
134
+ /**
135
+ * CreateInboundSupportEmail
136
+ *
137
+ * Records an email a customer sent in, as parsed from the SendGrid inbound-parse webhook, and links it to its Case. Carries the raw envelope, the threading headers and the rendered HTML body. Distinct from CreateOutboundSupportEmail: that one stages an agent reply before it is sent and writes a placeholder MessageId, whereas this records a message that has already been received with its real Message-ID.
138
+ *
139
+ * @actionType UPDATE - Updates an existing Email record
140
+ * @module NotificationModule
141
+ * @entity Email
142
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Update.CreateInboundSupportEmail
143
+ * @permission schema.action.createinboundsupportemail.trigger
144
+ * @benchmark This action is tracked for performance benchmarks
145
+ */
146
+ export declare class CreateInboundSupportEmailDto extends OdinRecordUpdateDto<CreateInboundSupportEmailProperties> {
147
+ /** Used by SDK generators to identify action type */
148
+ static readonly ACTION_TYPE = "UPDATE";
149
+ static readonly ACTION_KEY = "CreateInboundSupportEmail";
150
+ static readonly MODULE_NAME = "NotificationModule";
151
+ static readonly ENTITIES: string[];
152
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Email.Update.CreateInboundSupportEmail";
153
+ static readonly PERMISSION = "schema.action.createinboundsupportemail.trigger";
154
+ /** Step metadata - entity this action targets */
155
+ static readonly STEP_ENTITY = "NotificationModule:Email";
156
+ static readonly STEP_SCHEMA_ID = "cb37958c-d72f-44aa-975a-a8fae42b1b72";
157
+ static readonly STEP_SCHEMA_ACTION_ID = "a171f7b3-03e8-444d-801e-56d5b281ca0b";
158
+ static readonly AUTO_LINK_PARENT = false;
159
+ readonly actionName: string;
160
+ readonly schemaActionId: string;
161
+ readonly entity: string;
162
+ constructor(record: OdinRecord<any> | {
163
+ id: string;
164
+ entity: string;
165
+ type?: string;
166
+ }, properties: CreateInboundSupportEmailProperties, options?: {
167
+ journeyId?: string;
168
+ stageKey?: string;
169
+ });
170
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * CreateInboundSupportEmail Action DTO
4
+ *
5
+ * Records an email a customer sent in, as parsed from the SendGrid inbound-parse webhook, and links it to its Case. Carries the raw envelope, the threading headers and the rendered HTML body. Distinct from CreateOutboundSupportEmail: that one stages an agent reply before it is sent and writes a placeholder MessageId, whereas this records a message that has already been received with its real Message-ID.
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Email
9
+ * @actionKey CreateInboundSupportEmail
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Update.CreateInboundSupportEmail
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CreateInboundSupportEmailDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * CreateInboundSupportEmail
19
+ *
20
+ * Records an email a customer sent in, as parsed from the SendGrid inbound-parse webhook, and links it to its Case. Carries the raw envelope, the threading headers and the rendered HTML body. Distinct from CreateOutboundSupportEmail: that one stages an agent reply before it is sent and writes a placeholder MessageId, whereas this records a message that has already been received with its real Message-ID.
21
+ *
22
+ * @actionType UPDATE - Updates an existing Email record
23
+ * @module NotificationModule
24
+ * @entity Email
25
+ * @event k1.t-hEOJjsDb.NotificationModule.Email.Update.CreateInboundSupportEmail
26
+ * @permission schema.action.createinboundsupportemail.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class CreateInboundSupportEmailDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
31
+ super({
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
+ });
39
+ this.actionName = 'CreateInboundSupportEmail';
40
+ this.schemaActionId = 'a171f7b3-03e8-444d-801e-56d5b281ca0b';
41
+ this.entity = 'NotificationModule:Email';
42
+ }
43
+ }
44
+ exports.CreateInboundSupportEmailDto = CreateInboundSupportEmailDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateInboundSupportEmailDto.ACTION_TYPE = 'UPDATE';
47
+ CreateInboundSupportEmailDto.ACTION_KEY = 'CreateInboundSupportEmail';
48
+ CreateInboundSupportEmailDto.MODULE_NAME = 'NotificationModule';
49
+ CreateInboundSupportEmailDto.ENTITIES = ['Email'];
50
+ CreateInboundSupportEmailDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Email.Update.CreateInboundSupportEmail';
51
+ CreateInboundSupportEmailDto.PERMISSION = 'schema.action.createinboundsupportemail.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ CreateInboundSupportEmailDto.STEP_ENTITY = 'NotificationModule:Email';
54
+ CreateInboundSupportEmailDto.STEP_SCHEMA_ID = 'cb37958c-d72f-44aa-975a-a8fae42b1b72';
55
+ CreateInboundSupportEmailDto.STEP_SCHEMA_ACTION_ID = 'a171f7b3-03e8-444d-801e-56d5b281ca0b';
56
+ CreateInboundSupportEmailDto.AUTO_LINK_PARENT = false;