@d19n/youfibre-odin-sdk 2.0.342 → 2.0.344

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 (98) hide show
  1. package/README.md +26 -2
  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/DocumentAccessor.d.ts +112 -0
  9. package/dist/accessors-v2/DocumentAccessor.js +191 -0
  10. package/dist/accessors-v2/DocumentProcessingAccessor.d.ts +112 -0
  11. package/dist/accessors-v2/DocumentProcessingAccessor.js +191 -0
  12. package/dist/accessors-v2/index.d.ts +2 -0
  13. package/dist/accessors-v2/index.js +7 -3
  14. package/dist/actions-v2/CreateAiRouteRequestDto.d.ts +1 -1
  15. package/dist/actions-v2/CreateChurnRequestDto.d.ts +2 -0
  16. package/dist/actions-v2/CreateChurnRequestDto.js +2 -0
  17. package/dist/actions-v2/CreateDocumentDto.d.ts +235 -0
  18. package/dist/actions-v2/CreateDocumentDto.js +57 -0
  19. package/dist/actions-v2/CreateDocumentProcessingDto.d.ts +192 -0
  20. package/dist/actions-v2/CreateDocumentProcessingDto.js +57 -0
  21. package/dist/actions-v2/CreateLeadSalesAppDto.d.ts +9 -17
  22. package/dist/actions-v2/UpdateDocumentDto.d.ts +236 -0
  23. package/dist/actions-v2/UpdateDocumentDto.js +59 -0
  24. package/dist/actions-v2/UpdateMessageReadByCustomerDto.d.ts +72 -0
  25. package/dist/actions-v2/UpdateMessageReadByCustomerDto.js +56 -0
  26. package/dist/api-sdk-v2/CommitmentApi.d.ts +48 -0
  27. package/dist/api-sdk-v2/CommitmentApi.js +155 -0
  28. package/dist/api-sdk-v2/ContractBuyOutApi.d.ts +2 -0
  29. package/dist/api-sdk-v2/ContractBuyOutApi.js +6 -0
  30. package/dist/api-sdk-v2/DocumentApi.d.ts +52 -0
  31. package/dist/api-sdk-v2/DocumentApi.js +167 -0
  32. package/dist/api-sdk-v2/DocumentProcessingApi.d.ts +50 -0
  33. package/dist/api-sdk-v2/DocumentProcessingApi.js +161 -0
  34. package/dist/api-sdk-v2/EquipmentReturnApi.d.ts +45 -0
  35. package/dist/api-sdk-v2/EquipmentReturnApi.js +151 -0
  36. package/dist/api-sdk-v2/EquipmentReturnItemApi.d.ts +45 -0
  37. package/dist/api-sdk-v2/EquipmentReturnItemApi.js +151 -0
  38. package/dist/api-sdk-v2/FileApi.d.ts +4 -0
  39. package/dist/api-sdk-v2/FileApi.js +12 -0
  40. package/dist/api-sdk-v2/OrderApi.d.ts +2 -0
  41. package/dist/api-sdk-v2/OrderApi.js +6 -0
  42. package/dist/db-accessors-v2/DocumentDbAccessor.d.ts +180 -0
  43. package/dist/db-accessors-v2/DocumentDbAccessor.js +265 -0
  44. package/dist/db-accessors-v2/DocumentProcessingDbAccessor.d.ts +180 -0
  45. package/dist/db-accessors-v2/DocumentProcessingDbAccessor.js +265 -0
  46. package/dist/db-accessors-v2/index.d.ts +2 -0
  47. package/dist/db-accessors-v2/index.js +7 -3
  48. package/dist/db-sdk-v2/CommitmentDb.d.ts +120 -0
  49. package/dist/db-sdk-v2/CommitmentDb.js +204 -0
  50. package/dist/db-sdk-v2/ContractBuyOutDb.d.ts +2 -0
  51. package/dist/db-sdk-v2/ContractBuyOutDb.js +6 -0
  52. package/dist/db-sdk-v2/DocumentDb.d.ts +124 -0
  53. package/dist/db-sdk-v2/DocumentDb.js +216 -0
  54. package/dist/db-sdk-v2/DocumentProcessingDb.d.ts +122 -0
  55. package/dist/db-sdk-v2/DocumentProcessingDb.js +210 -0
  56. package/dist/db-sdk-v2/EquipmentReturnDb.d.ts +117 -0
  57. package/dist/db-sdk-v2/EquipmentReturnDb.js +200 -0
  58. package/dist/db-sdk-v2/EquipmentReturnItemDb.d.ts +117 -0
  59. package/dist/db-sdk-v2/EquipmentReturnItemDb.js +200 -0
  60. package/dist/db-sdk-v2/FileDb.d.ts +4 -0
  61. package/dist/db-sdk-v2/FileDb.js +12 -0
  62. package/dist/db-sdk-v2/OrderDb.d.ts +2 -0
  63. package/dist/db-sdk-v2/OrderDb.js +6 -0
  64. package/dist/entities-v2/AiRouteRequest.d.ts +23 -11
  65. package/dist/entities-v2/AiRouteRequest.js +15 -3
  66. package/dist/entities-v2/Commitment.d.ts +154 -0
  67. package/dist/entities-v2/Commitment.js +115 -0
  68. package/dist/entities-v2/ContractBuyOut.d.ts +7 -0
  69. package/dist/entities-v2/ContractBuyOut.js +5 -1
  70. package/dist/entities-v2/Document.d.ts +1145 -0
  71. package/dist/entities-v2/Document.js +220 -0
  72. package/dist/entities-v2/DocumentProcessing.d.ts +272 -0
  73. package/dist/entities-v2/DocumentProcessing.js +156 -0
  74. package/dist/entities-v2/EquipmentReturn.d.ts +66 -0
  75. package/dist/entities-v2/EquipmentReturn.js +64 -0
  76. package/dist/entities-v2/EquipmentReturnItem.d.ts +66 -0
  77. package/dist/entities-v2/EquipmentReturnItem.js +64 -0
  78. package/dist/entities-v2/File.d.ts +81 -1
  79. package/dist/entities-v2/File.js +9 -1
  80. package/dist/entities-v2/Message.d.ts +27 -1
  81. package/dist/entities-v2/Message.js +2 -0
  82. package/dist/entities-v2/Order.d.ts +49 -8
  83. package/dist/entities-v2/Order.js +24 -4
  84. package/dist/entities-v2/YfStockCount.d.ts +197 -1
  85. package/dist/entities-v2/YfStockCount.js +28 -0
  86. package/dist/records-v2/ContractBuyOutRecord.d.ts +20 -0
  87. package/dist/records-v2/ContractBuyOutRecord.js +33 -0
  88. package/dist/records-v2/DocumentProcessingRecord.d.ts +227 -0
  89. package/dist/records-v2/DocumentProcessingRecord.js +315 -0
  90. package/dist/records-v2/DocumentRecord.d.ts +355 -0
  91. package/dist/records-v2/DocumentRecord.js +468 -0
  92. package/dist/records-v2/FileRecord.d.ts +59 -3
  93. package/dist/records-v2/FileRecord.js +83 -1
  94. package/dist/records-v2/MessageRecord.d.ts +28 -0
  95. package/dist/records-v2/MessageRecord.js +37 -0
  96. package/dist/records-v2/index.d.ts +2 -0
  97. package/dist/records-v2/index.js +10 -4
  98. package/package.json +1 -1
@@ -0,0 +1,191 @@
1
+ "use strict";
2
+ /**
3
+ * DocumentProcessing Accessor
4
+ *
5
+ * Provides typed access to DocumentProcessing 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.updateDocumentProcessing({ ... });
13
+ *
14
+ * // Create new record
15
+ * const newRecord = accessor.new();
16
+ * await newRecord.createDocumentProcessing({ ... });
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.DocumentProcessingAccessor = 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 DocumentProcessingRecord_1 = require("../records-v2/DocumentProcessingRecord");
47
+ class DocumentProcessingAccessor {
48
+ constructor(providerOrAuth, host) {
49
+ this._moduleName = 'AiModule';
50
+ this._entityName = 'DocumentProcessing';
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 DocumentProcessing 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 DocumentProcessingRecord_1.DocumentProcessingRecord(null, this._provider, id);
94
+ }
95
+ // ============================================
96
+ // RECORD RETRIEVAL
97
+ // ============================================
98
+ /**
99
+ * Get a single DocumentProcessing 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 DocumentProcessingRecord_1.DocumentProcessingRecord(record, this._provider);
105
+ });
106
+ }
107
+ /**
108
+ * Get multiple DocumentProcessing 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 DocumentProcessingRecord_1.DocumentProcessingRecord(r, this._provider));
116
+ });
117
+ }
118
+ // ============================================
119
+ // SEARCH OPERATIONS
120
+ // ============================================
121
+ /**
122
+ * Search DocumentProcessing 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 DocumentProcessingRecord_1.DocumentProcessingRecord(r, this._provider)),
129
+ totalRecords: result.totalRecords,
130
+ hasMore: result.hasMore,
131
+ aggregations: result.aggregations,
132
+ };
133
+ });
134
+ }
135
+ /**
136
+ * Search all DocumentProcessing records with automatic pagination
137
+ */
138
+ searchAll(params) {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
+ const result = yield this._provider._searchAllRecordsAndPaginate(this._moduleName, this._entityName, params);
141
+ return result.records.map((r) => new DocumentProcessingRecord_1.DocumentProcessingRecord(r, this._provider));
142
+ });
143
+ }
144
+ /**
145
+ * Async generator for paginating through all matching records.
146
+ * Yields batches of wrapped records.
147
+ */
148
+ paginate(params) {
149
+ var _a;
150
+ return __asyncGenerator(this, arguments, function* paginate_1() {
151
+ let hasMore = true;
152
+ let searchAfter;
153
+ const query = Object.assign(Object.assign({}, params.query), { pageSize: ((_a = params.query) === null || _a === void 0 ? void 0 : _a.pageSize) || 500 });
154
+ while (hasMore) {
155
+ const result = yield __await(this._provider._searchRecords(this._moduleName, this._entityName, Object.assign(Object.assign({}, params), { query: Object.assign(Object.assign({}, query), { searchAfter }) })));
156
+ if (result.records.length > 0) {
157
+ yield yield __await(result.records.map((r) => new DocumentProcessingRecord_1.DocumentProcessingRecord(r, this._provider)));
158
+ const lastRecord = result.records[result.records.length - 1];
159
+ searchAfter = lastRecord === null || lastRecord === void 0 ? void 0 : lastRecord.sort;
160
+ }
161
+ hasMore = result.hasMore && result.records.length >= query.pageSize;
162
+ }
163
+ });
164
+ }
165
+ // ============================================
166
+ // QUERY BUILDER
167
+ // ============================================
168
+ /**
169
+ * Create a fluent query builder for DocumentProcessing records
170
+ *
171
+ * @example
172
+ * ```typescript
173
+ * const results = await accessor
174
+ * .query()
175
+ * .where('Status', 'in', ['Active', 'Pending'])
176
+ * .where('CreatedAt', 'gte', '2025-01-01')
177
+ * .select('id', 'title', 'properties.*')
178
+ * .sortBy('createdAt', 'desc')
179
+ * .limit(100)
180
+ * .execute();
181
+ * ```
182
+ */
183
+ query() {
184
+ return (0, query_builder_1.createQueryBuilder)(this);
185
+ }
186
+ /** Access the underlying ApiProvider */
187
+ get provider() {
188
+ return this._provider;
189
+ }
190
+ }
191
+ exports.DocumentProcessingAccessor = DocumentProcessingAccessor;
@@ -42,6 +42,8 @@ export { CustomerDeviceRouterAccessor, CustomerDeviceRouterSearchResponse, Custo
42
42
  export { CustomerPhonePortingAccessor, CustomerPhonePortingSearchResponse, CustomerPhonePortingListResponse } from './CustomerPhonePortingAccessor';
43
43
  export { DataIssueAccessor, DataIssueSearchResponse, DataIssueListResponse } from './DataIssueAccessor';
44
44
  export { DiscountAccessor, DiscountSearchResponse, DiscountListResponse } from './DiscountAccessor';
45
+ export { DocumentProcessingAccessor, DocumentProcessingSearchResponse, DocumentProcessingListResponse } from './DocumentProcessingAccessor';
46
+ export { DocumentAccessor, DocumentSearchResponse, DocumentListResponse } from './DocumentAccessor';
45
47
  export { EmailAccessor, EmailSearchResponse, EmailListResponse } from './EmailAccessor';
46
48
  export { EmailSenderAccessor, EmailSenderSearchResponse, EmailSenderListResponse } from './EmailSenderAccessor';
47
49
  export { EmailTemplateAccessor, EmailTemplateSearchResponse, EmailTemplateListResponse } from './EmailTemplateAccessor';
@@ -8,9 +8,9 @@
8
8
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
9
9
  */
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- 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.AiRouteRequestAccessor = exports.AgentStatusAccessor = exports.AffiliateCodeAccessor = exports.AddressAccessor = exports.AddressInteractionAccessor = exports.ActivityAccessor = exports.ActivityLogAccessor = exports.AccountAccessor = exports.AccountCreditAccessor = void 0;
12
- exports.RewardAccessor = exports.ReturnsAccessor = exports.RemediationRequiredReasonAccessor = exports.RemediationOutcomeFormAccessor = exports.RegionAccessor = exports.ReferralAccessor = exports.RecontractAccessor = exports.QaRubricSectionAccessor = exports.QaRubricAccessor = exports.QaRubricItemAccessor = exports.QaReportAccessor = exports.QaAutoFailAccessor = 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 = exports.NoteAccessor = exports.NetworkDeviceAccessor = void 0;
13
- exports.YfWifiSurveyAccessor = exports.YfFieldVisitOutcomeFormAccessor = exports.YfAgentLocationAccessor = 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 = exports.SmsTemplateAccessor = exports.SmsMessageAccessor = exports.SiteSpecificRiskAssessmentOutcomeFormAccessor = exports.ServiceAccessor = exports.ServiceAppointmentAccessor = exports.ServiceAppointmentConfigAccessor = exports.ScheduleSlotAccessor = exports.SalesTerritoryAccessor = void 0;
11
+ 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.DocumentAccessor = exports.DocumentProcessingAccessor = 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.AiRouteRequestAccessor = exports.AgentStatusAccessor = exports.AffiliateCodeAccessor = exports.AddressAccessor = exports.AddressInteractionAccessor = exports.ActivityAccessor = exports.ActivityLogAccessor = exports.AccountAccessor = exports.AccountCreditAccessor = void 0;
12
+ exports.RemediationRequiredReasonAccessor = exports.RemediationOutcomeFormAccessor = exports.RegionAccessor = exports.ReferralAccessor = exports.RecontractAccessor = exports.QaRubricSectionAccessor = exports.QaRubricAccessor = exports.QaRubricItemAccessor = exports.QaReportAccessor = exports.QaAutoFailAccessor = 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 = exports.NoteAccessor = exports.NetworkDeviceAccessor = exports.ModifyServiceRequestAccessor = exports.MessageAccessor = void 0;
13
+ exports.YfWifiSurveyAccessor = exports.YfFieldVisitOutcomeFormAccessor = exports.YfAgentLocationAccessor = 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 = exports.SmsTemplateAccessor = exports.SmsMessageAccessor = exports.SiteSpecificRiskAssessmentOutcomeFormAccessor = exports.ServiceAccessor = exports.ServiceAppointmentAccessor = exports.ServiceAppointmentConfigAccessor = exports.ScheduleSlotAccessor = exports.SalesTerritoryAccessor = exports.RewardAccessor = exports.ReturnsAccessor = 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");
@@ -83,6 +83,10 @@ var DataIssueAccessor_1 = require("./DataIssueAccessor");
83
83
  Object.defineProperty(exports, "DataIssueAccessor", { enumerable: true, get: function () { return DataIssueAccessor_1.DataIssueAccessor; } });
84
84
  var DiscountAccessor_1 = require("./DiscountAccessor");
85
85
  Object.defineProperty(exports, "DiscountAccessor", { enumerable: true, get: function () { return DiscountAccessor_1.DiscountAccessor; } });
86
+ var DocumentProcessingAccessor_1 = require("./DocumentProcessingAccessor");
87
+ Object.defineProperty(exports, "DocumentProcessingAccessor", { enumerable: true, get: function () { return DocumentProcessingAccessor_1.DocumentProcessingAccessor; } });
88
+ var DocumentAccessor_1 = require("./DocumentAccessor");
89
+ Object.defineProperty(exports, "DocumentAccessor", { enumerable: true, get: function () { return DocumentAccessor_1.DocumentAccessor; } });
86
90
  var EmailAccessor_1 = require("./EmailAccessor");
87
91
  Object.defineProperty(exports, "EmailAccessor", { enumerable: true, get: function () { return EmailAccessor_1.EmailAccessor; } });
88
92
  var EmailSenderAccessor_1 = require("./EmailSenderAccessor");
@@ -61,7 +61,7 @@ export interface CreateAiRouteRequestProperties {
61
61
  /**
62
62
  * Routing reason
63
63
  *
64
- * split: the 50/50 counter chose. Otherwise why the split was skipped and Databricks answered: config-off, config-unreadable, redis-unavailable, too-large (prompt over the Qwen size guard).
64
+ * split: the 50/50 counter chose. Otherwise why the split was skipped and Databricks answered: config-off, config-unreadable, redis-unavailable, too-large (prompt over the Qwen size guard). single-provider: the feature has one provider, no split. edgar-reply: a message Edgar AI posted, no call of ours to time.
65
65
  * @type {ENUM}
66
66
  */
67
67
  Reason?: string | null;
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * CreateChurnRequest Action DTO
3
3
  *
4
+ * CreateChurnRequest
5
+ *
4
6
  * @module OrderModule
5
7
  * @entity ChurnRequest
6
8
  * @actionKey CreateChurnRequest
@@ -2,6 +2,8 @@
2
2
  /**
3
3
  * CreateChurnRequest Action DTO
4
4
  *
5
+ * CreateChurnRequest
6
+ *
5
7
  * @module OrderModule
6
8
  * @entity ChurnRequest
7
9
  * @actionKey CreateChurnRequest
@@ -0,0 +1,235 @@
1
+ /**
2
+ * CreateDocument Action DTO
3
+ *
4
+ * CreateDocument
5
+ *
6
+ * @module AiModule
7
+ * @entity Document
8
+ * @entityType DEFAULT
9
+ * @actionKey CreateDocument
10
+ * @event k1.t-hEOJjsDb.AiModule.Document.Create.CreateDocument
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * RabbitMQ message payload for CreateDocument created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.AiModule.Document.Create.CreateDocument
19
+ */
20
+ export interface CreateDocumentMessage extends OdinRecordCreatedEvent<CreateDocumentDto, CreateDocumentProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateDocument action
24
+ *
25
+ * @property Required fields: 4
26
+ * @property Optional fields: 20
27
+ */
28
+ export interface CreateDocumentProperties {
29
+ /**
30
+ * Source module
31
+ *
32
+ * Module of the record the document belongs to, e.g. FieldServiceModule.
33
+ * @type {TEXT}
34
+ * @required
35
+ */
36
+ SourceModule: string;
37
+ /**
38
+ * Source entity
39
+ *
40
+ * Entity of the source record, e.g. RegionNInternalInstallForm.
41
+ * @type {TEXT}
42
+ * @required
43
+ */
44
+ SourceEntity: string;
45
+ /**
46
+ * Source record id
47
+ *
48
+ * Id of the source record. With SourceEntity, the key the helper upserts on.
49
+ * @type {TEXT}
50
+ * @required
51
+ */
52
+ SourceRecordId: string;
53
+ /**
54
+ * Catalog status
55
+ *
56
+ * Where the document is in the catalog pipeline.
57
+ * @type {ENUM}
58
+ * @required
59
+ */
60
+ CatalogStatus: string;
61
+ /**
62
+ * Source record number
63
+ *
64
+ * Record number of the source record, for people.
65
+ * @type {TEXT}
66
+ */
67
+ SourceRecordNumber?: string | null;
68
+ /**
69
+ * Files
70
+ *
71
+ * The File records that make up the document: photos, signatures, PDFs.
72
+ * @type {FILE_MULTIPLE}
73
+ */
74
+ Files?: string | null;
75
+ /**
76
+ * File count
77
+ *
78
+ * Number of File records in Files.
79
+ * @type {NUMBER}
80
+ */
81
+ FileCount?: number | null;
82
+ /**
83
+ * Sub-type
84
+ *
85
+ * Finer kind within the record type: the form entity name, the previous provider, the invoice type.
86
+ * @type {TEXT}
87
+ */
88
+ SubType?: string | null;
89
+ /**
90
+ * Format
91
+ *
92
+ * Physical shape of the document.
93
+ * @type {ENUM}
94
+ */
95
+ Format?: string | null;
96
+ /**
97
+ * Submitted by (id)
98
+ *
99
+ * User or contact id that submitted the document.
100
+ * @type {TEXT}
101
+ */
102
+ SubmittedById?: string | null;
103
+ /**
104
+ * Submitted by
105
+ *
106
+ * Name of the user or contact that submitted the document.
107
+ * @type {TEXT}
108
+ */
109
+ SubmittedByName?: string | null;
110
+ /**
111
+ * Submitted at
112
+ *
113
+ * When the source record was created.
114
+ * @type {DATE_TIME}
115
+ */
116
+ SubmittedAt?: string | null;
117
+ /**
118
+ * Submitted via
119
+ *
120
+ * The channel the document arrived through.
121
+ * @type {ENUM}
122
+ */
123
+ SubmittedVia?: string | null;
124
+ /**
125
+ * Business record entity
126
+ *
127
+ * The business record the document belongs to: FieldServiceModule:WorkOrder, OrderModule:Order, CrmModule:Account.
128
+ * @type {TEXT}
129
+ */
130
+ BusinessRecordEntity?: string | null;
131
+ /**
132
+ * Business record id
133
+ *
134
+ * Id of that business record.
135
+ * @type {TEXT}
136
+ */
137
+ BusinessRecordId?: string | null;
138
+ /**
139
+ * Description
140
+ *
141
+ * AI-written plain-English description of what the document is and contains. Capped at 1,500 characters by the writer.
142
+ * @type {TEXT_LONG}
143
+ */
144
+ Description?: string | null;
145
+ /**
146
+ * Contents
147
+ *
148
+ * One line per image or page. Capped at 400 characters by the writer.
149
+ * @type {TEXT_LONG}
150
+ */
151
+ ContentsSummary?: string | null;
152
+ /**
153
+ * Images
154
+ *
155
+ * Number of images in the document.
156
+ * @type {NUMBER}
157
+ */
158
+ ImageCount?: number | null;
159
+ /**
160
+ * Pages
161
+ *
162
+ * Number of pages, for PDFs and HTML.
163
+ * @type {NUMBER}
164
+ */
165
+ PageCount?: number | null;
166
+ /**
167
+ * Language
168
+ *
169
+ * Language of the document, ISO 639-1, e.g. en.
170
+ * @type {TEXT}
171
+ */
172
+ Language?: string | null;
173
+ /**
174
+ * Contains personal data
175
+ *
176
+ * True when the description or the document carries names, addresses or signatures.
177
+ * @type {BOOLEAN}
178
+ */
179
+ ContainsPii?: boolean | null;
180
+ /**
181
+ * First seen
182
+ *
183
+ * When the catalog first saw the document.
184
+ * @type {DATE_TIME}
185
+ */
186
+ FirstSeenAt?: string | null;
187
+ /**
188
+ * Last processed
189
+ *
190
+ * When a pipeline last ran on the document.
191
+ * @type {DATE_TIME}
192
+ */
193
+ LastProcessedAt?: string | null;
194
+ /**
195
+ * Last processing id
196
+ *
197
+ * Id of the most recent DocumentProcessing row.
198
+ * @type {TEXT}
199
+ */
200
+ LastProcessingId?: string | null;
201
+ }
202
+ /**
203
+ * CreateDocument
204
+ *
205
+ * @actionType CREATE - Creates a new Document record
206
+ * @module AiModule
207
+ * @entity Document
208
+ * @entityType DEFAULT (Default)
209
+ * @event k1.t-hEOJjsDb.AiModule.Document.Create.CreateDocument
210
+ * @permission schema.action.createdocument.trigger
211
+ * @benchmark This action is tracked for performance benchmarks
212
+ */
213
+ export declare class CreateDocumentDto extends OdinRecordCreateDto<CreateDocumentProperties> {
214
+ /** Used by SDK generators to identify action type */
215
+ static readonly ACTION_TYPE = "CREATE";
216
+ static readonly ACTION_KEY = "CreateDocument";
217
+ static readonly MODULE_NAME = "AiModule";
218
+ static readonly ENTITIES: string[];
219
+ static readonly ENTITY_TYPE = "DEFAULT";
220
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.AiModule.Document.Create.CreateDocument";
221
+ static readonly PERMISSION = "schema.action.createdocument.trigger";
222
+ /** Step metadata - entity this action targets */
223
+ static readonly STEP_ENTITY = "AiModule:Document";
224
+ static readonly STEP_SCHEMA_ID = "30392543-1504-49e4-97d8-922879d4c806";
225
+ static readonly STEP_SCHEMA_ACTION_ID = "518945d0-229b-4b37-8001-a4147436cad4";
226
+ static readonly STEP_SCHEMA_TYPE_ID = "c1006652-b9b4-4441-9c90-1af1cca0a46d";
227
+ static readonly STEP_TYPE = "DEFAULT";
228
+ static readonly AUTO_LINK_PARENT = true;
229
+ readonly actionName: string;
230
+ readonly schemaActionId: string;
231
+ readonly entity: string;
232
+ constructor(properties: CreateDocumentProperties, options?: {
233
+ journeyId?: string;
234
+ });
235
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /**
3
+ * CreateDocument Action DTO
4
+ *
5
+ * CreateDocument
6
+ *
7
+ * @module AiModule
8
+ * @entity Document
9
+ * @entityType DEFAULT
10
+ * @actionKey CreateDocument
11
+ * @event k1.t-hEOJjsDb.AiModule.Document.Create.CreateDocument
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateDocumentDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateDocument
20
+ *
21
+ * @actionType CREATE - Creates a new Document record
22
+ * @module AiModule
23
+ * @entity Document
24
+ * @entityType DEFAULT (Default)
25
+ * @event k1.t-hEOJjsDb.AiModule.Document.Create.CreateDocument
26
+ * @permission schema.action.createdocument.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class CreateDocumentDto extends core_1.OdinRecordCreateDto {
30
+ constructor(properties, options) {
31
+ super({
32
+ entity: 'AiModule:Document',
33
+ type: 'DEFAULT',
34
+ properties,
35
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
36
+ });
37
+ this.actionName = 'CreateDocument';
38
+ this.schemaActionId = '518945d0-229b-4b37-8001-a4147436cad4';
39
+ this.entity = 'AiModule:Document';
40
+ }
41
+ }
42
+ exports.CreateDocumentDto = CreateDocumentDto;
43
+ /** Used by SDK generators to identify action type */
44
+ CreateDocumentDto.ACTION_TYPE = 'CREATE';
45
+ CreateDocumentDto.ACTION_KEY = 'CreateDocument';
46
+ CreateDocumentDto.MODULE_NAME = 'AiModule';
47
+ CreateDocumentDto.ENTITIES = ['Document'];
48
+ CreateDocumentDto.ENTITY_TYPE = 'DEFAULT';
49
+ CreateDocumentDto.EVENT_NAME = 'k1.t-hEOJjsDb.AiModule.Document.Create.CreateDocument';
50
+ CreateDocumentDto.PERMISSION = 'schema.action.createdocument.trigger';
51
+ /** Step metadata - entity this action targets */
52
+ CreateDocumentDto.STEP_ENTITY = 'AiModule:Document';
53
+ CreateDocumentDto.STEP_SCHEMA_ID = '30392543-1504-49e4-97d8-922879d4c806';
54
+ CreateDocumentDto.STEP_SCHEMA_ACTION_ID = '518945d0-229b-4b37-8001-a4147436cad4';
55
+ CreateDocumentDto.STEP_SCHEMA_TYPE_ID = 'c1006652-b9b4-4441-9c90-1af1cca0a46d';
56
+ CreateDocumentDto.STEP_TYPE = 'DEFAULT';
57
+ CreateDocumentDto.AUTO_LINK_PARENT = true;