@d19n/youfibre-odin-sdk 2.0.178 → 2.0.180

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 CHANGED
@@ -1331,6 +1331,7 @@ This SDK includes **686** actions.
1331
1331
  | `UpdateAdditionalCare` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateAdditionalCare |
1332
1332
  | `UpdateContact` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateContact |
1333
1333
  | `UpdateReferralCode` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateReferralCode |
1334
+ | `UpdateWhitelistQueueAndEndTime` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateWhitelistQueueAndEndTime |
1334
1335
 
1335
1336
  #### ContactIdentity
1336
1337
 
@@ -1892,7 +1893,6 @@ This SDK includes **686** actions.
1892
1893
  |--------|------|-------|
1893
1894
  | `CreateUser` | CREATE | k1.t-hEOJjsDb.IdentityModule.User.Create.CreateUser |
1894
1895
  | `UpdateUser` | UPDATE | k1.t-hEOJjsDb.IdentityModule.User.Update.UpdateUser |
1895
- | `UpdateWhitelistQueueAndEndTime` | UPDATE | k1.t-hEOJjsDb.IdentityModule.User.Update.UpdateWhitelistQueueAndEndTime |
1896
1896
 
1897
1897
  #### WayleaveAudit
1898
1898
 
@@ -3,10 +3,10 @@
3
3
  *
4
4
  * UpdateWhitelistQueueAndEndTime
5
5
  *
6
- * @module IdentityModule
7
- * @entity User
6
+ * @module CrmModule
7
+ * @entity Contact
8
8
  * @actionKey UpdateWhitelistQueueAndEndTime
9
- * @event k1.t-hEOJjsDb.IdentityModule.User.Update.UpdateWhitelistQueueAndEndTime
9
+ * @event k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateWhitelistQueueAndEndTime
10
10
  *
11
11
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
12
  */
@@ -14,39 +14,41 @@ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/o
14
14
  /**
15
15
  * RabbitMQ message payload for UpdateWhitelistQueueAndEndTime updated events
16
16
  *
17
- * @event k1.t-hEOJjsDb.IdentityModule.User.Update.UpdateWhitelistQueueAndEndTime
17
+ * @event k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateWhitelistQueueAndEndTime
18
18
  */
19
19
  export interface UpdateWhitelistQueueAndEndTimeMessage extends OdinRecordUpdatedEvent<UpdateWhitelistQueueAndEndTimeDto, UpdateWhitelistQueueAndEndTimeProperties> {
20
20
  }
21
21
  /**
22
22
  * Properties for UpdateWhitelistQueueAndEndTime action
23
23
  *
24
- * @property Required fields: 0
25
- * @property Optional fields: 2
24
+ * @property Required fields: 2
25
+ * @property Optional fields: 0
26
26
  */
27
27
  export interface UpdateWhitelistQueueAndEndTimeProperties {
28
28
  /**
29
29
  * WhitelistedTwilioQueue
30
30
  *
31
- * WhitelistedTwilioQueue
31
+ * Used to whitelist this user to a specific twilio queue in a time range.
32
32
  * @type {ENUM}
33
+ * @required
33
34
  */
34
- WhitelistedTwilioQueue?: string | null;
35
+ WhitelistedTwilioQueue: string;
35
36
  /**
36
37
  * WhitelistTwilioEndTime
37
38
  *
38
- * WhitelistTwilioEndTime
39
+ * Time when the whitelisting ends and the user falls back to the main IVR again.
39
40
  * @type {DATE_TIME}
41
+ * @required
40
42
  */
41
- WhitelistTwilioEndTime?: string | null;
43
+ WhitelistTwilioEndTime: string;
42
44
  }
43
45
  /**
44
46
  * UpdateWhitelistQueueAndEndTime
45
47
  *
46
- * @actionType UPDATE - Updates an existing User record
47
- * @module IdentityModule
48
- * @entity User
49
- * @event k1.t-hEOJjsDb.IdentityModule.User.Update.UpdateWhitelistQueueAndEndTime
48
+ * @actionType UPDATE - Updates an existing Contact record
49
+ * @module CrmModule
50
+ * @entity Contact
51
+ * @event k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateWhitelistQueueAndEndTime
50
52
  * @permission schema.action.updatewhitelistqueueandendtime.trigger
51
53
  * @benchmark This action is tracked for performance benchmarks
52
54
  */
@@ -54,14 +56,14 @@ export declare class UpdateWhitelistQueueAndEndTimeDto extends OdinRecordUpdateD
54
56
  /** Used by SDK generators to identify action type */
55
57
  static readonly ACTION_TYPE = "UPDATE";
56
58
  static readonly ACTION_KEY = "UpdateWhitelistQueueAndEndTime";
57
- static readonly MODULE_NAME = "IdentityModule";
59
+ static readonly MODULE_NAME = "CrmModule";
58
60
  static readonly ENTITIES: string[];
59
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.IdentityModule.User.Update.UpdateWhitelistQueueAndEndTime";
61
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateWhitelistQueueAndEndTime";
60
62
  static readonly PERMISSION = "schema.action.updatewhitelistqueueandendtime.trigger";
61
63
  /** Step metadata - entity this action targets */
62
- static readonly STEP_ENTITY = "IdentityModule:User";
63
- static readonly STEP_SCHEMA_ID = "d393741a-e493-4ea6-a9d9-30d461c1f329";
64
- static readonly STEP_SCHEMA_ACTION_ID = "df8c974b-d4c0-4300-9d65-e7b72c091437";
64
+ static readonly STEP_ENTITY = "CrmModule:Contact";
65
+ static readonly STEP_SCHEMA_ID = "33643a0d-5b77-4895-a2da-991e0fd3432f";
66
+ static readonly STEP_SCHEMA_ACTION_ID = "c31708b3-b368-475f-a71c-0504421b4be3";
65
67
  static readonly AUTO_LINK_PARENT = false;
66
68
  readonly actionName: string;
67
69
  readonly schemaActionId: string;
@@ -4,10 +4,10 @@
4
4
  *
5
5
  * UpdateWhitelistQueueAndEndTime
6
6
  *
7
- * @module IdentityModule
8
- * @entity User
7
+ * @module CrmModule
8
+ * @entity Contact
9
9
  * @actionKey UpdateWhitelistQueueAndEndTime
10
- * @event k1.t-hEOJjsDb.IdentityModule.User.Update.UpdateWhitelistQueueAndEndTime
10
+ * @event k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateWhitelistQueueAndEndTime
11
11
  *
12
12
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
13
  */
@@ -17,10 +17,10 @@ const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * UpdateWhitelistQueueAndEndTime
19
19
  *
20
- * @actionType UPDATE - Updates an existing User record
21
- * @module IdentityModule
22
- * @entity User
23
- * @event k1.t-hEOJjsDb.IdentityModule.User.Update.UpdateWhitelistQueueAndEndTime
20
+ * @actionType UPDATE - Updates an existing Contact record
21
+ * @module CrmModule
22
+ * @entity Contact
23
+ * @event k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateWhitelistQueueAndEndTime
24
24
  * @permission schema.action.updatewhitelistqueueandendtime.trigger
25
25
  * @benchmark This action is tracked for performance benchmarks
26
26
  */
@@ -35,20 +35,20 @@ class UpdateWhitelistQueueAndEndTimeDto extends core_1.OdinRecordUpdateDto {
35
35
  stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
36
36
  });
37
37
  this.actionName = 'UpdateWhitelistQueueAndEndTime';
38
- this.schemaActionId = 'df8c974b-d4c0-4300-9d65-e7b72c091437';
39
- this.entity = 'IdentityModule:User';
38
+ this.schemaActionId = 'c31708b3-b368-475f-a71c-0504421b4be3';
39
+ this.entity = 'CrmModule:Contact';
40
40
  }
41
41
  }
42
42
  exports.UpdateWhitelistQueueAndEndTimeDto = UpdateWhitelistQueueAndEndTimeDto;
43
43
  /** Used by SDK generators to identify action type */
44
44
  UpdateWhitelistQueueAndEndTimeDto.ACTION_TYPE = 'UPDATE';
45
45
  UpdateWhitelistQueueAndEndTimeDto.ACTION_KEY = 'UpdateWhitelistQueueAndEndTime';
46
- UpdateWhitelistQueueAndEndTimeDto.MODULE_NAME = 'IdentityModule';
47
- UpdateWhitelistQueueAndEndTimeDto.ENTITIES = ['User'];
48
- UpdateWhitelistQueueAndEndTimeDto.EVENT_NAME = 'k1.t-hEOJjsDb.IdentityModule.User.Update.UpdateWhitelistQueueAndEndTime';
46
+ UpdateWhitelistQueueAndEndTimeDto.MODULE_NAME = 'CrmModule';
47
+ UpdateWhitelistQueueAndEndTimeDto.ENTITIES = ['Contact'];
48
+ UpdateWhitelistQueueAndEndTimeDto.EVENT_NAME = 'k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateWhitelistQueueAndEndTime';
49
49
  UpdateWhitelistQueueAndEndTimeDto.PERMISSION = 'schema.action.updatewhitelistqueueandendtime.trigger';
50
50
  /** Step metadata - entity this action targets */
51
- UpdateWhitelistQueueAndEndTimeDto.STEP_ENTITY = 'IdentityModule:User';
52
- UpdateWhitelistQueueAndEndTimeDto.STEP_SCHEMA_ID = 'd393741a-e493-4ea6-a9d9-30d461c1f329';
53
- UpdateWhitelistQueueAndEndTimeDto.STEP_SCHEMA_ACTION_ID = 'df8c974b-d4c0-4300-9d65-e7b72c091437';
51
+ UpdateWhitelistQueueAndEndTimeDto.STEP_ENTITY = 'CrmModule:Contact';
52
+ UpdateWhitelistQueueAndEndTimeDto.STEP_SCHEMA_ID = '33643a0d-5b77-4895-a2da-991e0fd3432f';
53
+ UpdateWhitelistQueueAndEndTimeDto.STEP_SCHEMA_ACTION_ID = 'c31708b3-b368-475f-a71c-0504421b4be3';
54
54
  UpdateWhitelistQueueAndEndTimeDto.AUTO_LINK_PARENT = false;
@@ -17,19 +17,19 @@ export declare class OfferApi extends ApiProvider {
17
17
  private readonly moduleName;
18
18
  private readonly entityName;
19
19
  private sourceRecord;
20
- private _lead__offer?;
21
- private _orderitem__offer?;
22
- private _offer__offer?;
23
- private _pricebook__offer?;
20
+ private _lead?;
24
21
  private _discount?;
22
+ private _orderitem?;
25
23
  private _product?;
24
+ private _offer?;
25
+ private _pricebook?;
26
26
  constructor(authParams?: OauthParams, authToken?: string);
27
- get lead__offer(): ApiRecordLinkManager;
28
- get orderitem__offer(): ApiRecordLinkManager;
29
- get offer__offer(): ApiRecordLinkManager;
30
- get pricebook__offer(): ApiRecordLinkManager;
27
+ get lead(): ApiRecordLinkManager;
31
28
  get discount(): ApiRecordLinkManager;
29
+ get orderitem(): ApiRecordLinkManager;
32
30
  get product(): ApiRecordLinkManager;
31
+ get offer(): ApiRecordLinkManager;
32
+ get pricebook(): ApiRecordLinkManager;
33
33
  setRecord(sourceRecord: any): void;
34
34
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
35
35
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<OfferProperties>>>;
@@ -33,29 +33,11 @@ class OfferApi extends api_provider_1.ApiProvider {
33
33
  // LAZY-LOADED LINK MANAGERS (Public Getters)
34
34
  // ============================================
35
35
  // Usage remains identical: api.address.list(recordId)
36
- get lead__offer() {
37
- if (!this._lead__offer) {
38
- this._lead__offer = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Lead', 'ProductModule:Offer', 'Lead__Offer');
36
+ get lead() {
37
+ if (!this._lead) {
38
+ this._lead = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'CrmModule:Lead', 'Lead__Offer');
39
39
  }
40
- return this._lead__offer;
41
- }
42
- get orderitem__offer() {
43
- if (!this._orderitem__offer) {
44
- this._orderitem__offer = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'OrderModule:OrderItem', 'ProductModule:Offer', 'OrderItem__Offer');
45
- }
46
- return this._orderitem__offer;
47
- }
48
- get offer__offer() {
49
- if (!this._offer__offer) {
50
- this._offer__offer = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'ProductModule:Offer', 'Offer__Offer');
51
- }
52
- return this._offer__offer;
53
- }
54
- get pricebook__offer() {
55
- if (!this._pricebook__offer) {
56
- this._pricebook__offer = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:PriceBook', 'ProductModule:Offer', 'PriceBook__Offer');
57
- }
58
- return this._pricebook__offer;
40
+ return this._lead;
59
41
  }
60
42
  get discount() {
61
43
  if (!this._discount) {
@@ -63,12 +45,30 @@ class OfferApi extends api_provider_1.ApiProvider {
63
45
  }
64
46
  return this._discount;
65
47
  }
48
+ get orderitem() {
49
+ if (!this._orderitem) {
50
+ this._orderitem = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'OrderModule:OrderItem', 'OrderItem__Offer');
51
+ }
52
+ return this._orderitem;
53
+ }
66
54
  get product() {
67
55
  if (!this._product) {
68
56
  this._product = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'ProductModule:Product', 'Offer__Product');
69
57
  }
70
58
  return this._product;
71
59
  }
60
+ get offer() {
61
+ if (!this._offer) {
62
+ this._offer = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'ProductModule:Offer', 'Offer__Offer');
63
+ }
64
+ return this._offer;
65
+ }
66
+ get pricebook() {
67
+ if (!this._pricebook) {
68
+ this._pricebook = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'ProductModule:PriceBook', 'PriceBook__Offer');
69
+ }
70
+ return this._pricebook;
71
+ }
72
72
  // ============================================
73
73
  // STANDARD METHODS (Unchanged API)
74
74
  // ============================================
@@ -259,16 +259,16 @@ export declare enum ContactMedicallyDependant {
259
259
  * Used to whitelist this user to a specific twilio queue in a time range.
260
260
  *
261
261
  * @remarks Available options:
262
- * - `billing` - Billing
263
- * - `clo` - CLO
264
- * - `general support` - General Support
265
- * - `order management update` - Order Management - Update
262
+ * - `Billing`
263
+ * - `CLO`
264
+ * - `General Support`
265
+ * - `Order Management - Update`
266
266
  */
267
267
  export declare enum ContactWhitelistedTwilioQueue {
268
- BILLING = "billing",
269
- CLO = "clo",
270
- GENERAL_SUPPORT = "general support",
271
- ORDER_MANAGEMENT_UPDATE = "order management update"
268
+ BILLING = "Billing",
269
+ CLO = "CLO",
270
+ GENERAL_SUPPORT = "General Support",
271
+ ORDER_MANAGEMENT_UPDATE = "Order Management - Update"
272
272
  }
273
273
  /**
274
274
  * Property keys for Contact
@@ -243,17 +243,17 @@ var ContactMedicallyDependant;
243
243
  * Used to whitelist this user to a specific twilio queue in a time range.
244
244
  *
245
245
  * @remarks Available options:
246
- * - `billing` - Billing
247
- * - `clo` - CLO
248
- * - `general support` - General Support
249
- * - `order management update` - Order Management - Update
246
+ * - `Billing`
247
+ * - `CLO`
248
+ * - `General Support`
249
+ * - `Order Management - Update`
250
250
  */
251
251
  var ContactWhitelistedTwilioQueue;
252
252
  (function (ContactWhitelistedTwilioQueue) {
253
- ContactWhitelistedTwilioQueue["BILLING"] = "billing";
254
- ContactWhitelistedTwilioQueue["CLO"] = "clo";
255
- ContactWhitelistedTwilioQueue["GENERAL_SUPPORT"] = "general support";
256
- ContactWhitelistedTwilioQueue["ORDER_MANAGEMENT_UPDATE"] = "order management update";
253
+ ContactWhitelistedTwilioQueue["BILLING"] = "Billing";
254
+ ContactWhitelistedTwilioQueue["CLO"] = "CLO";
255
+ ContactWhitelistedTwilioQueue["GENERAL_SUPPORT"] = "General Support";
256
+ ContactWhitelistedTwilioQueue["ORDER_MANAGEMENT_UPDATE"] = "Order Management - Update";
257
257
  })(ContactWhitelistedTwilioQueue = exports.ContactWhitelistedTwilioQueue || (exports.ContactWhitelistedTwilioQueue = {}));
258
258
  /**
259
259
  * Property keys for Contact
@@ -52,23 +52,6 @@ export declare enum UserAccredited {
52
52
  NO = "NO",
53
53
  YES = "YES"
54
54
  }
55
- /**
56
- * Valid values for User.WhitelistedTwilioQueue
57
- *
58
- * WhitelistedTwilioQueue
59
- *
60
- * @remarks Available options:
61
- * - `Billing`
62
- * - `CLO`
63
- * - `General Support`
64
- * - `Order Management - Update`
65
- */
66
- export declare enum UserWhitelistedTwilioQueue {
67
- BILLING = "Billing",
68
- CLO = "CLO",
69
- GENERAL_SUPPORT = "General Support",
70
- ORDER_MANAGEMENT_UPDATE = "Order Management - Update"
71
- }
72
55
  /**
73
56
  * Property keys for User
74
57
  * Use these constants instead of string literals for type safety
@@ -108,10 +91,6 @@ export declare enum UserPropertyKeys {
108
91
  SalesChannel = "SalesChannel",
109
92
  /** First + Last name */
110
93
  FullName = "FullName",
111
- /** WhitelistTwilioEndTime */
112
- WhitelistTwilioEndTime = "WhitelistTwilioEndTime",
113
- /** WhitelistedTwilioQueue */
114
- WhitelistedTwilioQueue = "WhitelistedTwilioQueue",
115
94
  /** email address (IT Security - User) */
116
95
  EmailAddress = "EmailAddress",
117
96
  /** the company the user is works for (IT Security - User) */
@@ -216,17 +195,6 @@ export interface UserProperties {
216
195
  * @type {TEXT}
217
196
  */
218
197
  FullName: string;
219
- /** WhitelistTwilioEndTime
220
- *
221
- * @type {DATE_TIME}
222
- */
223
- WhitelistTwilioEndTime: string;
224
- /** WhitelistedTwilioQueue
225
- *
226
- * @type {ENUM}
227
- * @enum {UserWhitelistedTwilioQueue}
228
- */
229
- WhitelistedTwilioQueue: UserWhitelistedTwilioQueue;
230
198
  /** email address (IT Security - User)
231
199
  *
232
200
  * @type {TEXT}
@@ -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_TWILIO_USER_UPDATE_DELETED = exports.ROUTING_KEY_LINK_TWILIO_USER_UPDATE_CREATED = exports.ROUTING_KEY_LINK_USER_CUSTOMER_DEVICE_CONFIGURATION_DELETED = exports.ROUTING_KEY_LINK_USER_CUSTOMER_DEVICE_CONFIGURATION_CREATED = exports.ROUTING_KEY_LINK_USER_IMPERSONATION_TRACKER_DELETED = exports.ROUTING_KEY_LINK_USER_IMPERSONATION_TRACKER_CREATED = exports.ROUTING_KEY_LINK_USER_PUSH_NOTIFICATION_DELETED = exports.ROUTING_KEY_LINK_USER_PUSH_NOTIFICATION_CREATED = exports.ROUTING_KEY_LINK_USER_TIME_SLOT_DELETED = exports.ROUTING_KEY_LINK_USER_TIME_SLOT_CREATED = exports.ROUTING_KEY_USER_DEFAULT_DELETED = exports.ROUTING_KEY_USER_DEFAULT_UPDATED = exports.ROUTING_KEY_USER_DEFAULT_CREATED = exports.ROUTING_KEY_USER_DELETED = exports.ROUTING_KEY_USER_UPDATED = exports.ROUTING_KEY_USER_CREATED = exports.User = exports.UserPropertyKeys = exports.UserWhitelistedTwilioQueue = exports.UserAccredited = exports.UserEntityTypes = void 0;
15
+ exports.ROUTING_KEY_LINK_TWILIO_USER_UPDATE_DELETED = exports.ROUTING_KEY_LINK_TWILIO_USER_UPDATE_CREATED = exports.ROUTING_KEY_LINK_USER_CUSTOMER_DEVICE_CONFIGURATION_DELETED = exports.ROUTING_KEY_LINK_USER_CUSTOMER_DEVICE_CONFIGURATION_CREATED = exports.ROUTING_KEY_LINK_USER_IMPERSONATION_TRACKER_DELETED = exports.ROUTING_KEY_LINK_USER_IMPERSONATION_TRACKER_CREATED = exports.ROUTING_KEY_LINK_USER_PUSH_NOTIFICATION_DELETED = exports.ROUTING_KEY_LINK_USER_PUSH_NOTIFICATION_CREATED = exports.ROUTING_KEY_LINK_USER_TIME_SLOT_DELETED = exports.ROUTING_KEY_LINK_USER_TIME_SLOT_CREATED = exports.ROUTING_KEY_USER_DEFAULT_DELETED = exports.ROUTING_KEY_USER_DEFAULT_UPDATED = exports.ROUTING_KEY_USER_DEFAULT_CREATED = exports.ROUTING_KEY_USER_DELETED = exports.ROUTING_KEY_USER_UPDATED = exports.ROUTING_KEY_USER_CREATED = exports.User = exports.UserPropertyKeys = exports.UserAccredited = exports.UserEntityTypes = void 0;
16
16
  const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * Available types for User records
@@ -36,24 +36,6 @@ var UserAccredited;
36
36
  UserAccredited["NO"] = "NO";
37
37
  UserAccredited["YES"] = "YES";
38
38
  })(UserAccredited = exports.UserAccredited || (exports.UserAccredited = {}));
39
- /**
40
- * Valid values for User.WhitelistedTwilioQueue
41
- *
42
- * WhitelistedTwilioQueue
43
- *
44
- * @remarks Available options:
45
- * - `Billing`
46
- * - `CLO`
47
- * - `General Support`
48
- * - `Order Management - Update`
49
- */
50
- var UserWhitelistedTwilioQueue;
51
- (function (UserWhitelistedTwilioQueue) {
52
- UserWhitelistedTwilioQueue["BILLING"] = "Billing";
53
- UserWhitelistedTwilioQueue["CLO"] = "CLO";
54
- UserWhitelistedTwilioQueue["GENERAL_SUPPORT"] = "General Support";
55
- UserWhitelistedTwilioQueue["ORDER_MANAGEMENT_UPDATE"] = "Order Management - Update";
56
- })(UserWhitelistedTwilioQueue = exports.UserWhitelistedTwilioQueue || (exports.UserWhitelistedTwilioQueue = {}));
57
39
  /**
58
40
  * Property keys for User
59
41
  * Use these constants instead of string literals for type safety
@@ -94,10 +76,6 @@ var UserPropertyKeys;
94
76
  UserPropertyKeys["SalesChannel"] = "SalesChannel";
95
77
  /** First + Last name */
96
78
  UserPropertyKeys["FullName"] = "FullName";
97
- /** WhitelistTwilioEndTime */
98
- UserPropertyKeys["WhitelistTwilioEndTime"] = "WhitelistTwilioEndTime";
99
- /** WhitelistedTwilioQueue */
100
- UserPropertyKeys["WhitelistedTwilioQueue"] = "WhitelistedTwilioQueue";
101
79
  /** email address (IT Security - User) */
102
80
  UserPropertyKeys["EmailAddress"] = "EmailAddress";
103
81
  /** the company the user is works for (IT Security - User) */
@@ -26,6 +26,7 @@ import { CreateContactProperties } from '../actions-v2/CreateContactDto';
26
26
  import { UpdateAdditionalCareProperties } from '../actions-v2/UpdateAdditionalCareDto';
27
27
  import { UpdateContactProperties } from '../actions-v2/UpdateContactDto';
28
28
  import { UpdateReferralCodeProperties } from '../actions-v2/UpdateReferralCodeDto';
29
+ import { UpdateWhitelistQueueAndEndTimeProperties } from '../actions-v2/UpdateWhitelistQueueAndEndTimeDto';
29
30
  import { NoteRecord } from './NoteRecord';
30
31
  import { LeadRecord } from './LeadRecord';
31
32
  import { AccountRecord } from './AccountRecord';
@@ -865,6 +866,32 @@ export declare class ContactRecord<TProps = ContactProperties> {
865
866
  journeyId?: string;
866
867
  stageKey?: string;
867
868
  }): ActionBuilder;
869
+ /**
870
+ * UpdateWhitelistQueueAndEndTime
871
+ *
872
+ * Updates this Contact record with the specified properties.
873
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
874
+ *
875
+ * @param properties - Required properties for this action
876
+ * @param options - Optional settings
877
+ * @param options.journeyId - Associate with a journey
878
+ * @param options.stageKey - Transition to pipeline stage
879
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
880
+ * @throws Error if called on a new (unsaved) record
881
+ *
882
+ * @example
883
+ * ```typescript
884
+ * const record = await odinClient.contacts.get(id);
885
+ * await record.updateWhitelistQueueAndEndTime({ ... }).execute();
886
+ *
887
+ * // Dry run (for debugging)
888
+ * const payload = record.updateWhitelistQueueAndEndTime({ ... }).dryRun();
889
+ * ```
890
+ */
891
+ updateWhitelistQueueAndEndTime(properties: UpdateWhitelistQueueAndEndTimeProperties, options?: {
892
+ journeyId?: string;
893
+ stageKey?: string;
894
+ }): ActionBuilder;
868
895
  }
869
896
  /** Type guard to check if an object is a ContactRecord */
870
897
  export declare function isContactRecord(obj: any): obj is ContactRecord;
@@ -1274,6 +1274,35 @@ class ContactRecord {
1274
1274
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateReferralCode', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
1275
1275
  return new ActionBuilder(this._provider, 'CrmModule', 'Contact', payload, () => { this._pendingLinks = []; });
1276
1276
  }
1277
+ /**
1278
+ * UpdateWhitelistQueueAndEndTime
1279
+ *
1280
+ * Updates this Contact record with the specified properties.
1281
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
1282
+ *
1283
+ * @param properties - Required properties for this action
1284
+ * @param options - Optional settings
1285
+ * @param options.journeyId - Associate with a journey
1286
+ * @param options.stageKey - Transition to pipeline stage
1287
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
1288
+ * @throws Error if called on a new (unsaved) record
1289
+ *
1290
+ * @example
1291
+ * ```typescript
1292
+ * const record = await odinClient.contacts.get(id);
1293
+ * await record.updateWhitelistQueueAndEndTime({ ... }).execute();
1294
+ *
1295
+ * // Dry run (for debugging)
1296
+ * const payload = record.updateWhitelistQueueAndEndTime({ ... }).dryRun();
1297
+ * ```
1298
+ */
1299
+ updateWhitelistQueueAndEndTime(properties, options) {
1300
+ var _a;
1301
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1302
+ throw new Error('updateWhitelistQueueAndEndTime requires an existing record. Use accessor.get() first.');
1303
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateWhitelistQueueAndEndTime', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
1304
+ return new ActionBuilder(this._provider, 'CrmModule', 'Contact', payload, () => { this._pendingLinks = []; });
1305
+ }
1277
1306
  }
1278
1307
  exports.ContactRecord = ContactRecord;
1279
1308
  // ============================================
@@ -23,7 +23,6 @@ import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-man
23
23
  import { UserProperties } from '../entities-v2/User';
24
24
  import { CreateUserProperties } from '../actions-v2/CreateUserDto';
25
25
  import { UpdateUserProperties } from '../actions-v2/UpdateUserDto';
26
- import { UpdateWhitelistQueueAndEndTimeProperties } from '../actions-v2/UpdateWhitelistQueueAndEndTimeDto';
27
26
  import { TimeSlotRecord } from './TimeSlotRecord';
28
27
  import { ReturnsRecord } from './ReturnsRecord';
29
28
  import { PushNotificationRecord } from './PushNotificationRecord';
@@ -528,33 +527,6 @@ export declare class UserRecord<TProps = UserProperties> {
528
527
  journeyId?: string;
529
528
  stageKey?: string;
530
529
  }): ActionBuilder;
531
- /**
532
- * UpdateWhitelistQueueAndEndTime
533
- *
534
- * Updates this User record.
535
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
536
- *
537
- * @param propertiesOrOptions - Properties to update, or options object
538
- * @param options - Optional settings (journeyId, stageKey)
539
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
540
- * @throws Error if called on a new (unsaved) record
541
- *
542
- * @example
543
- * ```typescript
544
- * const record = await odinClient.users.get(id);
545
- * await record.updateWhitelistQueueAndEndTime({ ... }).execute();
546
- *
547
- * // Dry run (for debugging)
548
- * const payload = record.updateWhitelistQueueAndEndTime({ ... }).dryRun();
549
- * ```
550
- */
551
- updateWhitelistQueueAndEndTime(propertiesOrOptions?: UpdateWhitelistQueueAndEndTimeProperties | {
552
- journeyId?: string;
553
- stageKey?: string;
554
- }, options?: {
555
- journeyId?: string;
556
- stageKey?: string;
557
- }): ActionBuilder;
558
530
  }
559
531
  /** Type guard to check if an object is a UserRecord */
560
532
  export declare function isUserRecord(obj: any): obj is UserRecord;
@@ -781,43 +781,6 @@ class UserRecord {
781
781
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateUser', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
782
782
  return new ActionBuilder(this._provider, 'IdentityModule', 'User', payload, () => { this._pendingLinks = []; });
783
783
  }
784
- /**
785
- * UpdateWhitelistQueueAndEndTime
786
- *
787
- * Updates this User record.
788
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
789
- *
790
- * @param propertiesOrOptions - Properties to update, or options object
791
- * @param options - Optional settings (journeyId, stageKey)
792
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
793
- * @throws Error if called on a new (unsaved) record
794
- *
795
- * @example
796
- * ```typescript
797
- * const record = await odinClient.users.get(id);
798
- * await record.updateWhitelistQueueAndEndTime({ ... }).execute();
799
- *
800
- * // Dry run (for debugging)
801
- * const payload = record.updateWhitelistQueueAndEndTime({ ... }).dryRun();
802
- * ```
803
- */
804
- updateWhitelistQueueAndEndTime(propertiesOrOptions, options) {
805
- var _a;
806
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
807
- throw new Error('updateWhitelistQueueAndEndTime requires an existing record. Use accessor.get() first.');
808
- let properties = {};
809
- let opts = options;
810
- if (propertiesOrOptions) {
811
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
812
- opts = propertiesOrOptions;
813
- }
814
- else {
815
- properties = propertiesOrOptions;
816
- }
817
- }
818
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateWhitelistQueueAndEndTime', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
819
- return new ActionBuilder(this._provider, 'IdentityModule', 'User', payload, () => { this._pendingLinks = []; });
820
- }
821
784
  }
822
785
  exports.UserRecord = UserRecord;
823
786
  // ============================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.178",
3
+ "version": "2.0.180",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",