@d19n/youfibre-odin-sdk 1.0.366 → 2.0.1

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.
@@ -22,16 +22,9 @@ export interface AssignOwnerMessage extends OdinRecordUpdatedEvent<AssignOwnerDt
22
22
  * Properties for AssignOwner action
23
23
  *
24
24
  * @property Required fields: 0
25
- * @property Optional fields: 2
25
+ * @property Optional fields: 1
26
26
  */
27
27
  export interface AssignOwnerProperties {
28
- /**
29
- * Sales territory
30
- *
31
- * Sales Territory (Sales - CrmDataset)
32
- * @type {LOOKUP}
33
- */
34
- SalesTerritory?: string | null;
35
28
  /**
36
29
  * Owner
37
30
  *
@@ -66,13 +66,6 @@ export interface CreateCaseWithDpaProperties {
66
66
  * @required
67
67
  */
68
68
  DpaChecksPassed: boolean;
69
- /**
70
- * SocialMediaExternalId
71
- *
72
- * This id represents the id receved from social media platforms for a user (Customer Service - Case)
73
- * @type {TEXT}
74
- */
75
- SocialMediaExternalId?: string | null;
76
69
  /**
77
70
  * AccountId
78
71
  *
@@ -23,7 +23,7 @@ export interface CreateFieldServiceMeshProductMessage extends OdinRecordCreatedE
23
23
  * Properties for CreateFieldServiceMeshProduct action
24
24
  *
25
25
  * @property Required fields: 0
26
- * @property Optional fields: 5
26
+ * @property Optional fields: 6
27
27
  */
28
28
  export interface CreateFieldServiceMeshProductProperties {
29
29
  /**
@@ -47,6 +47,13 @@ export interface CreateFieldServiceMeshProductProperties {
47
47
  * @type {ENUM}
48
48
  */
49
49
  Vendor?: string | null;
50
+ /**
51
+ * Providers
52
+ *
53
+ * Providers
54
+ * @type {ENUM_MULTI_SELECT}
55
+ */
56
+ Providers?: string | null;
50
57
  /**
51
58
  * DefaultShippingMethod
52
59
  *
@@ -23,7 +23,7 @@ export interface CreateFieldServiceProductMessage extends OdinRecordCreatedEvent
23
23
  * Properties for CreateFieldServiceProduct action
24
24
  *
25
25
  * @property Required fields: 0
26
- * @property Optional fields: 6
26
+ * @property Optional fields: 7
27
27
  */
28
28
  export interface CreateFieldServiceProductProperties {
29
29
  /**
@@ -47,6 +47,13 @@ export interface CreateFieldServiceProductProperties {
47
47
  * @type {ENUM}
48
48
  */
49
49
  Vendor?: string | null;
50
+ /**
51
+ * Providers
52
+ *
53
+ * Providers
54
+ * @type {ENUM_MULTI_SELECT}
55
+ */
56
+ Providers?: string | null;
50
57
  /**
51
58
  * DefaultShippingMethod
52
59
  *
@@ -23,7 +23,7 @@ export interface CreateFieldServiceRouterProductMessage extends OdinRecordCreate
23
23
  * Properties for CreateFieldServiceRouterProduct action
24
24
  *
25
25
  * @property Required fields: 0
26
- * @property Optional fields: 5
26
+ * @property Optional fields: 6
27
27
  */
28
28
  export interface CreateFieldServiceRouterProductProperties {
29
29
  /**
@@ -47,6 +47,13 @@ export interface CreateFieldServiceRouterProductProperties {
47
47
  * @type {ENUM}
48
48
  */
49
49
  Vendor?: string | null;
50
+ /**
51
+ * Providers
52
+ *
53
+ * Providers
54
+ * @type {ENUM_MULTI_SELECT}
55
+ */
56
+ Providers?: string | null;
50
57
  /**
51
58
  * DefaultShippingMethod
52
59
  *
@@ -22,10 +22,18 @@ export interface CrmDatasetCreateMessage extends OdinRecordCreatedEvent<CrmDatas
22
22
  /**
23
23
  * Properties for CrmDatasetCreate action
24
24
  *
25
- * @property Required fields: 2
25
+ * @property Required fields: 3
26
26
  * @property Optional fields: 3
27
27
  */
28
28
  export interface CrmDatasetCreateProperties {
29
+ /**
30
+ * name
31
+ *
32
+ * name
33
+ * @type {TEXT}
34
+ * @required
35
+ */
36
+ Name: string;
29
37
  /**
30
38
  * Description
31
39
  *
@@ -22,7 +22,7 @@ export interface EditCaseFormMessage extends OdinRecordUpdatedEvent<EditCaseForm
22
22
  * Properties for EditCaseForm action
23
23
  *
24
24
  * @property Required fields: 0
25
- * @property Optional fields: 8
25
+ * @property Optional fields: 9
26
26
  */
27
27
  export interface EditCaseFormProperties {
28
28
  /**
@@ -55,6 +55,13 @@ export interface EditCaseFormProperties {
55
55
  * @visibleWhen PrimaryException = ["*"]
56
56
  */
57
57
  PrimaryExceptionReason?: string | null;
58
+ /**
59
+ * Attributed To
60
+ *
61
+ * Attributed To
62
+ * @type {TEXT}
63
+ */
64
+ AttributedTo?: string | null;
58
65
  /**
59
66
  * BlockedReason
60
67
  *
@@ -22,7 +22,7 @@ export interface EditFieldServiceProductMessage extends OdinRecordUpdatedEvent<E
22
22
  * Properties for EditFieldServiceProduct action
23
23
  *
24
24
  * @property Required fields: 0
25
- * @property Optional fields: 6
25
+ * @property Optional fields: 7
26
26
  */
27
27
  export interface EditFieldServiceProductProperties {
28
28
  /**
@@ -46,6 +46,13 @@ export interface EditFieldServiceProductProperties {
46
46
  * @type {TEXT}
47
47
  */
48
48
  Name?: string | null;
49
+ /**
50
+ * Providers
51
+ *
52
+ * Providers
53
+ * @type {ENUM_MULTI_SELECT}
54
+ */
55
+ Providers?: string | null;
49
56
  /**
50
57
  * Vendor
51
58
  *
@@ -22,10 +22,18 @@ export interface UpdateAddressDataSetMessage extends OdinRecordUpdatedEvent<Upda
22
22
  /**
23
23
  * Properties for UpdateAddressDataSet action
24
24
  *
25
- * @property Required fields: 0
26
- * @property Optional fields: 1
25
+ * @property Required fields: 1
26
+ * @property Optional fields: 2
27
27
  */
28
28
  export interface UpdateAddressDataSetProperties {
29
+ /**
30
+ * name
31
+ *
32
+ * name
33
+ * @type {TEXT}
34
+ * @required
35
+ */
36
+ Name: string;
29
37
  /**
30
38
  * SalesTerritory
31
39
  *
@@ -33,6 +41,13 @@ export interface UpdateAddressDataSetProperties {
33
41
  * @type {LOOKUP}
34
42
  */
35
43
  SalesTerritory?: string | null;
44
+ /**
45
+ * Owner
46
+ *
47
+ * User that owns this data set (Sales - CrmDataset)
48
+ * @type {LOOKUP}
49
+ */
50
+ Owner?: string | null;
36
51
  }
37
52
  /**
38
53
  * UpdateAddressDataSet
@@ -22,11 +22,11 @@ export interface UpdateFormalComplaintMessage extends OdinRecordUpdatedEvent<Upd
22
22
  * Properties for UpdateFormalComplaint action
23
23
  *
24
24
  * @property Required fields: 0
25
- * @property Optional fields: 2
25
+ * @property Optional fields: 5
26
26
  */
27
27
  export interface UpdateFormalComplaintProperties {
28
28
  /**
29
- * FormalComplaint
29
+ * Formal Complaint
30
30
  *
31
31
  * Formal Complaint - Boolean
32
32
  * @type {ENUM}
@@ -39,6 +39,28 @@ export interface UpdateFormalComplaintProperties {
39
39
  * @type {ENUM}
40
40
  */
41
41
  Complaint?: string | null;
42
+ /**
43
+ * Primary Exception
44
+ *
45
+ * Primary Exception
46
+ * @type {ENUM}
47
+ */
48
+ PrimaryException?: string | null;
49
+ /**
50
+ * Primary Exception reason
51
+ *
52
+ * Primary Exception reason
53
+ * @type {ENUM}
54
+ * @visibleWhen PrimaryException = ["*"]
55
+ */
56
+ PrimaryExceptionReason?: string | null;
57
+ /**
58
+ * Attributed To
59
+ *
60
+ * Attributed To
61
+ * @type {TEXT}
62
+ */
63
+ AttributedTo?: string | null;
42
64
  }
43
65
  /**
44
66
  * UpdateFormalComplaint
@@ -22,7 +22,7 @@ export interface UpdateUserMessage extends OdinRecordUpdatedEvent<UpdateUserDto,
22
22
  * Properties for UpdateUser action
23
23
  *
24
24
  * @property Required fields: 0
25
- * @property Optional fields: 11
25
+ * @property Optional fields: 12
26
26
  */
27
27
  export interface UpdateUserProperties {
28
28
  /**
@@ -102,6 +102,13 @@ export interface UpdateUserProperties {
102
102
  * @type {BOOLEAN}
103
103
  */
104
104
  TwilioWorker?: boolean | null;
105
+ /**
106
+ * user id
107
+ *
108
+ * the id of the user in the organizations_users_table (IT Security - User)
109
+ * @type {UUID}
110
+ */
111
+ UserId?: string | null;
105
112
  }
106
113
  /**
107
114
  * UpdateUser
@@ -28,13 +28,13 @@ export declare class UserApi extends ApiProvider {
28
28
  private _case__user?;
29
29
  private _casecollaborators?;
30
30
  private _favourite_cases?;
31
- private _crmdataset?;
32
31
  private _address?;
33
32
  private _blockagea55?;
34
33
  private _engineers?;
35
34
  private _manager?;
36
35
  private _supervisor?;
37
36
  private _changereason?;
37
+ private _crmdataset?;
38
38
  private _queue?;
39
39
  private _yfvanaudit?;
40
40
  private _email?;
@@ -59,13 +59,13 @@ export declare class UserApi extends ApiProvider {
59
59
  get case__user(): ApiRecordLinkManager;
60
60
  get casecollaborators(): ApiRecordLinkManager;
61
61
  get favourite_cases(): ApiRecordLinkManager;
62
- get crmdataset(): ApiRecordLinkManager;
63
62
  get address(): ApiRecordLinkManager;
64
63
  get blockagea55(): ApiRecordLinkManager;
65
64
  get engineers(): ApiRecordLinkManager;
66
65
  get manager(): ApiRecordLinkManager;
67
66
  get supervisor(): ApiRecordLinkManager;
68
67
  get changereason(): ApiRecordLinkManager;
68
+ get crmdataset(): ApiRecordLinkManager;
69
69
  get queue(): ApiRecordLinkManager;
70
70
  get yfvanaudit(): ApiRecordLinkManager;
71
71
  get email(): ApiRecordLinkManager;
@@ -99,12 +99,6 @@ class UserApi extends api_provider_1.ApiProvider {
99
99
  }
100
100
  return this._favourite_cases;
101
101
  }
102
- get crmdataset() {
103
- if (!this._crmdataset) {
104
- this._crmdataset = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'IdentityModule:User', 'CrmModule:CrmDataset', 'CrmDataset__User');
105
- }
106
- return this._crmdataset;
107
- }
108
102
  get address() {
109
103
  if (!this._address) {
110
104
  this._address = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'IdentityModule:User', 'CrmModule:Address', 'Address_User');
@@ -141,6 +135,12 @@ class UserApi extends api_provider_1.ApiProvider {
141
135
  }
142
136
  return this._changereason;
143
137
  }
138
+ get crmdataset() {
139
+ if (!this._crmdataset) {
140
+ this._crmdataset = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'IdentityModule:User', 'CrmModule:CrmDataset', 'CrmDataset__User');
141
+ }
142
+ return this._crmdataset;
143
+ }
144
144
  get queue() {
145
145
  if (!this._queue) {
146
146
  this._queue = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'IdentityModule:User', 'SupportModule:Queue', 'Queue__User');
@@ -32,13 +32,13 @@ export declare class UserDb extends DbProvider {
32
32
  private _case__user?;
33
33
  private _casecollaborators?;
34
34
  private _favourite_cases?;
35
- private _crmdataset?;
36
35
  private _address?;
37
36
  private _blockagea55?;
38
37
  private _engineers?;
39
38
  private _manager?;
40
39
  private _supervisor?;
41
40
  private _changereason?;
41
+ private _crmdataset?;
42
42
  private _queue?;
43
43
  private _yfvanaudit?;
44
44
  private _email?;
@@ -63,13 +63,13 @@ export declare class UserDb extends DbProvider {
63
63
  get case__user(): DbRecordLinkManager;
64
64
  get casecollaborators(): DbRecordLinkManager;
65
65
  get favourite_cases(): DbRecordLinkManager;
66
- get crmdataset(): DbRecordLinkManager;
67
66
  get address(): DbRecordLinkManager;
68
67
  get blockagea55(): DbRecordLinkManager;
69
68
  get engineers(): DbRecordLinkManager;
70
69
  get manager(): DbRecordLinkManager;
71
70
  get supervisor(): DbRecordLinkManager;
72
71
  get changereason(): DbRecordLinkManager;
72
+ get crmdataset(): DbRecordLinkManager;
73
73
  get queue(): DbRecordLinkManager;
74
74
  get yfvanaudit(): DbRecordLinkManager;
75
75
  get email(): DbRecordLinkManager;
@@ -104,12 +104,6 @@ class UserDb extends db_provider_1.DbProvider {
104
104
  }
105
105
  return this._favourite_cases;
106
106
  }
107
- get crmdataset() {
108
- if (!this._crmdataset) {
109
- this._crmdataset = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'IdentityModule:User', 'CrmModule:CrmDataset', 'CrmDataset__User');
110
- }
111
- return this._crmdataset;
112
- }
113
107
  get address() {
114
108
  if (!this._address) {
115
109
  this._address = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'IdentityModule:User', 'CrmModule:Address', 'Address_User');
@@ -146,6 +140,12 @@ class UserDb extends db_provider_1.DbProvider {
146
140
  }
147
141
  return this._changereason;
148
142
  }
143
+ get crmdataset() {
144
+ if (!this._crmdataset) {
145
+ this._crmdataset = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'IdentityModule:User', 'CrmModule:CrmDataset', 'CrmDataset__User');
146
+ }
147
+ return this._crmdataset;
148
+ }
149
149
  get queue() {
150
150
  if (!this._queue) {
151
151
  this._queue = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'IdentityModule:User', 'SupportModule:Queue', 'Queue__User');
@@ -20,11 +20,31 @@ export declare enum AccountCreditEntityTypes {
20
20
  /** This is the default record type */
21
21
  DEFAULT = "DEFAULT"
22
22
  }
23
+ /**
24
+ * Valid values for AccountCredit.Source
25
+ *
26
+ * Source
27
+ */
28
+ export declare enum AccountCreditSource {
29
+ }
30
+ /**
31
+ * Valid values for AccountCredit.Reason
32
+ *
33
+ * Reason
34
+ */
35
+ export declare enum AccountCreditReason {
36
+ }
23
37
  /**
24
38
  * Property keys for AccountCredit
25
39
  * Use these constants instead of string literals for type safety
26
40
  */
27
41
  export declare enum AccountCreditPropertyKeys {
42
+ /** Source */
43
+ Source = "Source",
44
+ /** Reason */
45
+ Reason = "Reason",
46
+ /** Description */
47
+ Description = "Description",
28
48
  /** Contact */
29
49
  Contact = "Contact",
30
50
  /** Credit Balance */
@@ -38,6 +58,21 @@ export declare enum AccountCreditPropertyKeys {
38
58
  * @see BillingModule:AccountCredit
39
59
  */
40
60
  export interface AccountCreditProperties {
61
+ /** Source
62
+ *
63
+ * @type {ENUM}
64
+ */
65
+ Source: AccountCreditSource;
66
+ /** Reason
67
+ *
68
+ * @type {ENUM}
69
+ */
70
+ Reason: AccountCreditReason;
71
+ /** Description
72
+ *
73
+ * @type {TEXT}
74
+ */
75
+ Description: string;
41
76
  /** Contact
42
77
  *
43
78
  * @type {LOOKUP}
@@ -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_ACCOUNT_CREDIT_INVOICE_DELETED = exports.ROUTING_KEY_LINK_ACCOUNT_CREDIT_INVOICE_CREATED = exports.ROUTING_KEY_ACCOUNT_CREDIT_DEFAULT_DELETED = exports.ROUTING_KEY_ACCOUNT_CREDIT_DEFAULT_UPDATED = exports.ROUTING_KEY_ACCOUNT_CREDIT_DEFAULT_CREATED = exports.ROUTING_KEY_ACCOUNT_CREDIT_DELETED = exports.ROUTING_KEY_ACCOUNT_CREDIT_UPDATED = exports.ROUTING_KEY_ACCOUNT_CREDIT_CREATED = exports.AccountCredit = exports.AccountCreditPropertyKeys = exports.AccountCreditEntityTypes = void 0;
15
+ exports.ROUTING_KEY_LINK_ACCOUNT_CREDIT_INVOICE_DELETED = exports.ROUTING_KEY_LINK_ACCOUNT_CREDIT_INVOICE_CREATED = exports.ROUTING_KEY_ACCOUNT_CREDIT_DEFAULT_DELETED = exports.ROUTING_KEY_ACCOUNT_CREDIT_DEFAULT_UPDATED = exports.ROUTING_KEY_ACCOUNT_CREDIT_DEFAULT_CREATED = exports.ROUTING_KEY_ACCOUNT_CREDIT_DELETED = exports.ROUTING_KEY_ACCOUNT_CREDIT_UPDATED = exports.ROUTING_KEY_ACCOUNT_CREDIT_CREATED = exports.AccountCredit = exports.AccountCreditPropertyKeys = exports.AccountCreditReason = exports.AccountCreditSource = exports.AccountCreditEntityTypes = void 0;
16
16
  const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * Available types for AccountCredit records
@@ -22,12 +22,34 @@ var AccountCreditEntityTypes;
22
22
  /** This is the default record type */
23
23
  AccountCreditEntityTypes["DEFAULT"] = "DEFAULT";
24
24
  })(AccountCreditEntityTypes = exports.AccountCreditEntityTypes || (exports.AccountCreditEntityTypes = {}));
25
+ /**
26
+ * Valid values for AccountCredit.Source
27
+ *
28
+ * Source
29
+ */
30
+ var AccountCreditSource;
31
+ (function (AccountCreditSource) {
32
+ })(AccountCreditSource = exports.AccountCreditSource || (exports.AccountCreditSource = {}));
33
+ /**
34
+ * Valid values for AccountCredit.Reason
35
+ *
36
+ * Reason
37
+ */
38
+ var AccountCreditReason;
39
+ (function (AccountCreditReason) {
40
+ })(AccountCreditReason = exports.AccountCreditReason || (exports.AccountCreditReason = {}));
25
41
  /**
26
42
  * Property keys for AccountCredit
27
43
  * Use these constants instead of string literals for type safety
28
44
  */
29
45
  var AccountCreditPropertyKeys;
30
46
  (function (AccountCreditPropertyKeys) {
47
+ /** Source */
48
+ AccountCreditPropertyKeys["Source"] = "Source";
49
+ /** Reason */
50
+ AccountCreditPropertyKeys["Reason"] = "Reason";
51
+ /** Description */
52
+ AccountCreditPropertyKeys["Description"] = "Description";
31
53
  /** Contact */
32
54
  AccountCreditPropertyKeys["Contact"] = "Contact";
33
55
  /** Credit Balance */
@@ -720,6 +720,8 @@ export declare enum CasePropertyKeys {
720
720
  Timestamp = "Timestamp",
721
721
  /** Indicates when the CSAT has been sent */
722
722
  CsatSentAt = "CsatSentAt",
723
+ /** Attributed To */
724
+ AttributedTo = "AttributedTo",
723
725
  /** The address related to the case (Customer Service - Case) */
724
726
  RAddressId = "R_AddressId",
725
727
  /** R_AddressTitle (Customer Service - Case) */
@@ -746,8 +748,6 @@ export declare enum CasePropertyKeys {
746
748
  RAssignedUserTitle = "R_AssignedUserTitle",
747
749
  /** Files to assist with understanding the issue. (Customer Service - Case) */
748
750
  Files = "Files",
749
- /** This id represents the id receved from social media platforms for a user (Customer Service - Case) */
750
- SocialMediaExternalId = "SocialMediaExternalId",
751
751
  /** Data field for Case records. Used by Customer Service team. */
752
752
  Deprecated = "Deprecated",
753
753
  /** Data field for Case records. Used by Customer Service team. */
@@ -899,6 +899,11 @@ export interface CaseProperties {
899
899
  * @type {DATE_TIME}
900
900
  */
901
901
  CsatSentAt: string;
902
+ /** Attributed To
903
+ *
904
+ * @type {TEXT}
905
+ */
906
+ AttributedTo: string;
902
907
  /** The address related to the case (Customer Service - Case)
903
908
  *
904
909
  * @type {LOOKUP}
@@ -977,11 +982,6 @@ export interface CaseProperties {
977
982
  * @hidden This field is hidden in the UI
978
983
  */
979
984
  Files: string;
980
- /** This id represents the id receved from social media platforms for a user (Customer Service - Case)
981
- *
982
- * @type {TEXT}
983
- */
984
- SocialMediaExternalId: string;
985
985
  /** Data field for Case records. Used by Customer Service team.
986
986
  *
987
987
  * @type {ENUM}
@@ -1373,6 +1373,11 @@ export interface OutageCaseProperties {
1373
1373
  * @type {DATE_TIME}
1374
1374
  */
1375
1375
  CsatSentAt: string;
1376
+ /** Attributed To
1377
+ *
1378
+ * @type {TEXT}
1379
+ */
1380
+ AttributedTo: string;
1376
1381
  /** The address related to the case (Customer Service - Case)
1377
1382
  *
1378
1383
  * @type {LOOKUP}
@@ -1451,11 +1456,6 @@ export interface OutageCaseProperties {
1451
1456
  * @hidden This field is hidden in the UI
1452
1457
  */
1453
1458
  Files: string;
1454
- /** This id represents the id receved from social media platforms for a user (Customer Service - Case)
1455
- *
1456
- * @type {TEXT}
1457
- */
1458
- SocialMediaExternalId: string;
1459
1459
  /** Data field for Case records. Used by Customer Service team.
1460
1460
  *
1461
1461
  * @type {ENUM}
@@ -731,6 +731,8 @@ var CasePropertyKeys;
731
731
  CasePropertyKeys["Timestamp"] = "Timestamp";
732
732
  /** Indicates when the CSAT has been sent */
733
733
  CasePropertyKeys["CsatSentAt"] = "CsatSentAt";
734
+ /** Attributed To */
735
+ CasePropertyKeys["AttributedTo"] = "AttributedTo";
734
736
  /** The address related to the case (Customer Service - Case) */
735
737
  CasePropertyKeys["RAddressId"] = "R_AddressId";
736
738
  /** R_AddressTitle (Customer Service - Case) */
@@ -757,8 +759,6 @@ var CasePropertyKeys;
757
759
  CasePropertyKeys["RAssignedUserTitle"] = "R_AssignedUserTitle";
758
760
  /** Files to assist with understanding the issue. (Customer Service - Case) */
759
761
  CasePropertyKeys["Files"] = "Files";
760
- /** This id represents the id receved from social media platforms for a user (Customer Service - Case) */
761
- CasePropertyKeys["SocialMediaExternalId"] = "SocialMediaExternalId";
762
762
  /** Data field for Case records. Used by Customer Service team. */
763
763
  CasePropertyKeys["Deprecated"] = "Deprecated";
764
764
  /** Data field for Case records. Used by Customer Service team. */
@@ -62,6 +62,8 @@ export declare enum CrmDatasetCategory {
62
62
  * Use these constants instead of string literals for type safety
63
63
  */
64
64
  export declare enum CrmDatasetPropertyKeys {
65
+ /** name */
66
+ Name = "Name",
65
67
  /** OwnerUserId (Sales - CrmDataset) */
66
68
  OwnerUserId = "OwnerUserId",
67
69
  /** Data field for CrmDataset records. Used by Sales team. */
@@ -91,6 +93,11 @@ export declare enum CrmDatasetPropertyKeys {
91
93
  * @see CrmModule:CrmDataset
92
94
  */
93
95
  export interface CrmDatasetProperties {
96
+ /** name
97
+ *
98
+ * @type {TEXT}
99
+ */
100
+ Name: string;
94
101
  /** OwnerUserId (Sales - CrmDataset)
95
102
  *
96
103
  * @type {UUID}
@@ -165,6 +172,11 @@ export interface CrmDatasetProperties {
165
172
  * @see CrmModule:CrmDataset
166
173
  */
167
174
  export interface AddressCrmDatasetProperties {
175
+ /** name
176
+ *
177
+ * @type {TEXT}
178
+ */
179
+ Name: string;
168
180
  /** OwnerUserId (Sales - CrmDataset)
169
181
  *
170
182
  * @type {UUID}
@@ -239,6 +251,11 @@ export interface AddressCrmDatasetProperties {
239
251
  * @see CrmModule:CrmDataset
240
252
  */
241
253
  export interface ContactCrmDatasetProperties {
254
+ /** name
255
+ *
256
+ * @type {TEXT}
257
+ */
258
+ Name: string;
242
259
  /** OwnerUserId (Sales - CrmDataset)
243
260
  *
244
261
  * @type {UUID}
@@ -313,6 +330,11 @@ export interface ContactCrmDatasetProperties {
313
330
  * @see CrmModule:CrmDataset
314
331
  */
315
332
  export interface LeadCrmDatasetProperties {
333
+ /** name
334
+ *
335
+ * @type {TEXT}
336
+ */
337
+ Name: string;
316
338
  /** OwnerUserId (Sales - CrmDataset)
317
339
  *
318
340
  * @type {UUID}
@@ -62,6 +62,8 @@ var CrmDatasetCategory;
62
62
  */
63
63
  var CrmDatasetPropertyKeys;
64
64
  (function (CrmDatasetPropertyKeys) {
65
+ /** name */
66
+ CrmDatasetPropertyKeys["Name"] = "Name";
65
67
  /** OwnerUserId (Sales - CrmDataset) */
66
68
  CrmDatasetPropertyKeys["OwnerUserId"] = "OwnerUserId";
67
69
  /** Data field for CrmDataset records. Used by Sales team. */
@@ -68,6 +68,8 @@ export declare enum FieldServiceProductDefaultShippingMethod {
68
68
  * Use these constants instead of string literals for type safety
69
69
  */
70
70
  export declare enum FieldServiceProductPropertyKeys {
71
+ /** Providers */
72
+ Providers = "Providers",
71
73
  /** The inventory Id of the product (Field Operations - FieldServiceProduct) */
72
74
  InventoryId = "InventoryId",
73
75
  /** Vendor of the product (Field Operations - FieldServiceProduct) */
@@ -85,6 +87,11 @@ export declare enum FieldServiceProductPropertyKeys {
85
87
  * @see FieldServiceModule:FieldServiceProduct
86
88
  */
87
89
  export interface FieldServiceProductProperties {
90
+ /** Providers
91
+ *
92
+ * @type {ENUM_MULTI_SELECT}
93
+ */
94
+ Providers: string;
88
95
  /** The inventory Id of the product (Field Operations - FieldServiceProduct)
89
96
  *
90
97
  * @type {ALPHA_NUMERICAL}
@@ -120,6 +127,11 @@ export interface FieldServiceProductProperties {
120
127
  * @see FieldServiceModule:FieldServiceProduct
121
128
  */
122
129
  export interface CpeRouterFieldServiceProductProperties {
130
+ /** Providers
131
+ *
132
+ * @type {ENUM_MULTI_SELECT}
133
+ */
134
+ Providers: string;
123
135
  /** The inventory Id of the product (Field Operations - FieldServiceProduct)
124
136
  *
125
137
  * @type {ALPHA_NUMERICAL}
@@ -155,6 +167,11 @@ export interface CpeRouterFieldServiceProductProperties {
155
167
  * @see FieldServiceModule:FieldServiceProduct
156
168
  */
157
169
  export interface MeshFieldServiceProductProperties {
170
+ /** Providers
171
+ *
172
+ * @type {ENUM_MULTI_SELECT}
173
+ */
174
+ Providers: string;
158
175
  /** The inventory Id of the product (Field Operations - FieldServiceProduct)
159
176
  *
160
177
  * @type {ALPHA_NUMERICAL}
@@ -190,6 +207,11 @@ export interface MeshFieldServiceProductProperties {
190
207
  * @see FieldServiceModule:FieldServiceProduct
191
208
  */
192
209
  export interface MiscFieldServiceProductProperties {
210
+ /** Providers
211
+ *
212
+ * @type {ENUM_MULTI_SELECT}
213
+ */
214
+ Providers: string;
193
215
  /** The inventory Id of the product (Field Operations - FieldServiceProduct)
194
216
  *
195
217
  * @type {ALPHA_NUMERICAL}
@@ -72,6 +72,8 @@ var FieldServiceProductDefaultShippingMethod;
72
72
  */
73
73
  var FieldServiceProductPropertyKeys;
74
74
  (function (FieldServiceProductPropertyKeys) {
75
+ /** Providers */
76
+ FieldServiceProductPropertyKeys["Providers"] = "Providers";
75
77
  /** The inventory Id of the product (Field Operations - FieldServiceProduct) */
76
78
  FieldServiceProductPropertyKeys["InventoryId"] = "InventoryId";
77
79
  /** Vendor of the product (Field Operations - FieldServiceProduct) */
@@ -18,11 +18,11 @@ import { TwilioUserUpdateProperties } from './TwilioUserUpdate';
18
18
  import { YfToolAuditProperties } from './YfToolAudit';
19
19
  import { SalesTerritoryProperties } from './SalesTerritory';
20
20
  import { CaseProperties } from './Case';
21
- import { CrmDatasetProperties } from './CrmDataset';
22
21
  import { AddressProperties } from './Address';
23
22
  import { BlockageA55Properties } from './BlockageA55';
24
23
  import { ServiceAppointmentConfigProperties } from './ServiceAppointmentConfig';
25
24
  import { ChangeReasonProperties } from './ChangeReason';
25
+ import { CrmDatasetProperties } from './CrmDataset';
26
26
  import { QueueProperties } from './Queue';
27
27
  import { YfVanAuditProperties } from './YfVanAudit';
28
28
  import { EmailProperties } from './Email';
@@ -248,8 +248,6 @@ export declare class User extends OdinRecord<UserProperties> {
248
248
  SalesTerritory: OdinLink<LinkedOdinRecord<SalesTerritoryProperties>>;
249
249
  /** Linked Case records (CaseOwner) */
250
250
  Case: OdinLink<LinkedOdinRecord<CaseProperties>>;
251
- /** Linked CrmDataset records (CrmDataset__User) */
252
- CrmDataset: OdinLink<LinkedOdinRecord<CrmDatasetProperties>>;
253
251
  /** Linked Address records (Address_User) */
254
252
  Address: OdinLink<LinkedOdinRecord<AddressProperties>>;
255
253
  /** Linked BlockageA55 records (BlockageA55_User) */
@@ -258,6 +256,8 @@ export declare class User extends OdinRecord<UserProperties> {
258
256
  ServiceAppointmentConfig: OdinLink<LinkedOdinRecord<ServiceAppointmentConfigProperties>>;
259
257
  /** Linked ChangeReason records (ChangeReason__User) */
260
258
  ChangeReason: OdinLink<LinkedOdinRecord<ChangeReasonProperties>>;
259
+ /** Linked CrmDataset records (CrmDataset__User) */
260
+ CrmDataset: OdinLink<LinkedOdinRecord<CrmDatasetProperties>>;
261
261
  /** Linked Queue records (Queue__User) */
262
262
  Queue: OdinLink<LinkedOdinRecord<QueueProperties>>;
263
263
  /** Linked YfVanAudit records (YfVanAudit_User) */
@@ -406,11 +406,13 @@ export declare class CrmDatasetRecord<TProps = CrmDatasetProperties> {
406
406
  /**
407
407
  * UpdateAddressDataSet
408
408
  *
409
- * Updates this CrmDataset record.
409
+ * Updates this CrmDataset record with the specified properties.
410
410
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
411
411
  *
412
- * @param propertiesOrOptions - Properties to update, or options object
413
- * @param options - Optional settings (journeyId, stageKey)
412
+ * @param properties - Required properties for this action
413
+ * @param options - Optional settings
414
+ * @param options.journeyId - Associate with a journey
415
+ * @param options.stageKey - Transition to pipeline stage
414
416
  * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
415
417
  * @throws Error if called on a new (unsaved) record
416
418
  *
@@ -423,10 +425,7 @@ export declare class CrmDatasetRecord<TProps = CrmDatasetProperties> {
423
425
  * const payload = record.updateAddressDataSet({ ... }).dryRun();
424
426
  * ```
425
427
  */
426
- updateAddressDataSet(propertiesOrOptions?: UpdateAddressDataSetProperties | {
427
- journeyId?: string;
428
- stageKey?: string;
429
- }, options?: {
428
+ updateAddressDataSet(properties: UpdateAddressDataSetProperties, options?: {
430
429
  journeyId?: string;
431
430
  stageKey?: string;
432
431
  }): ActionBuilder;
@@ -541,11 +541,13 @@ class CrmDatasetRecord {
541
541
  /**
542
542
  * UpdateAddressDataSet
543
543
  *
544
- * Updates this CrmDataset record.
544
+ * Updates this CrmDataset record with the specified properties.
545
545
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
546
546
  *
547
- * @param propertiesOrOptions - Properties to update, or options object
548
- * @param options - Optional settings (journeyId, stageKey)
547
+ * @param properties - Required properties for this action
548
+ * @param options - Optional settings
549
+ * @param options.journeyId - Associate with a journey
550
+ * @param options.stageKey - Transition to pipeline stage
549
551
  * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
550
552
  * @throws Error if called on a new (unsaved) record
551
553
  *
@@ -558,21 +560,11 @@ class CrmDatasetRecord {
558
560
  * const payload = record.updateAddressDataSet({ ... }).dryRun();
559
561
  * ```
560
562
  */
561
- updateAddressDataSet(propertiesOrOptions, options) {
563
+ updateAddressDataSet(properties, options) {
562
564
  var _a;
563
565
  if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
564
566
  throw new Error('updateAddressDataSet requires an existing record. Use accessor.get() first.');
565
- let properties = {};
566
- let opts = options;
567
- if (propertiesOrOptions) {
568
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
569
- opts = propertiesOrOptions;
570
- }
571
- else {
572
- properties = propertiesOrOptions;
573
- }
574
- }
575
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAddressDataSet', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
567
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAddressDataSet', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
576
568
  return new ActionBuilder(this._provider, 'CrmModule', 'CrmDataset', payload, () => { this._pendingLinks = []; });
577
569
  }
578
570
  }
@@ -28,11 +28,11 @@ import { ReturnsRecord } from './ReturnsRecord';
28
28
  import { TwilioUserUpdateRecord } from './TwilioUserUpdateRecord';
29
29
  import { SalesTerritoryRecord } from './SalesTerritoryRecord';
30
30
  import { CaseRecord } from './CaseRecord';
31
- import { CrmDatasetRecord } from './CrmDatasetRecord';
32
31
  import { AddressRecord } from './AddressRecord';
33
32
  import { BlockageA55Record } from './BlockageA55Record';
34
33
  import { ServiceAppointmentConfigRecord } from './ServiceAppointmentConfigRecord';
35
34
  import { ChangeReasonRecord } from './ChangeReasonRecord';
35
+ import { CrmDatasetRecord } from './CrmDatasetRecord';
36
36
  import { EmailRecord } from './EmailRecord';
37
37
  import { ContractBuyOutRecord } from './ContractBuyOutRecord';
38
38
  import { CustomerDeviceConfigurationRecord } from './CustomerDeviceConfigurationRecord';
@@ -110,11 +110,11 @@ export declare class UserRecord<TProps = UserProperties> {
110
110
  private _twilioUserUpdates?;
111
111
  private _salesTerritories?;
112
112
  private _cases?;
113
- private _crmDatasets?;
114
113
  private _addresses?;
115
114
  private _blockageA55s?;
116
115
  private _serviceAppointmentConfigs?;
117
116
  private _changeReasons?;
117
+ private _crmDatasets?;
118
118
  private _emails?;
119
119
  private _contractBuyOuts?;
120
120
  private _customerDeviceConfigurations?;
@@ -257,24 +257,6 @@ export declare class UserRecord<TProps = UserProperties> {
257
257
  * ```
258
258
  */
259
259
  get cases(): RecordLinkManager<CaseRecord, typeof UserRecord['casesLabels'][number]>;
260
- /** Valid labels for CrmDataset associations */
261
- static readonly crmDatasetsLabels: readonly ["CrmDataset__User"];
262
- /**
263
- * Access linked CrmDataset records
264
- * @remarks Available labels: CrmDataset__User
265
- * @throws Error if called on a new (unsaved) record
266
- *
267
- * @example
268
- * ```typescript
269
- * // Get all linked CrmDataset records
270
- * const items = await record.crmDatasets.list();
271
- * const first = await record.crmDatasets.first();
272
- *
273
- * // Filter by label
274
- * const specific = await record.crmDatasets.first({ label: 'CrmDataset__User' });
275
- * ```
276
- */
277
- get crmDatasets(): RecordLinkManager<CrmDatasetRecord, typeof UserRecord['crmDatasetsLabels'][number]>;
278
260
  /** Valid labels for Address associations */
279
261
  static readonly addressesLabels: readonly ["Address_User"];
280
262
  /**
@@ -347,6 +329,24 @@ export declare class UserRecord<TProps = UserProperties> {
347
329
  * ```
348
330
  */
349
331
  get changeReasons(): RecordLinkManager<ChangeReasonRecord, typeof UserRecord['changeReasonsLabels'][number]>;
332
+ /** Valid labels for CrmDataset associations */
333
+ static readonly crmDatasetsLabels: readonly ["CrmDataset__User"];
334
+ /**
335
+ * Access linked CrmDataset records
336
+ * @remarks Available labels: CrmDataset__User
337
+ * @throws Error if called on a new (unsaved) record
338
+ *
339
+ * @example
340
+ * ```typescript
341
+ * // Get all linked CrmDataset records
342
+ * const items = await record.crmDatasets.list();
343
+ * const first = await record.crmDatasets.first();
344
+ *
345
+ * // Filter by label
346
+ * const specific = await record.crmDatasets.first({ label: 'CrmDataset__User' });
347
+ * ```
348
+ */
349
+ get crmDatasets(): RecordLinkManager<CrmDatasetRecord, typeof UserRecord['crmDatasetsLabels'][number]>;
350
350
  /** Valid labels for Email associations */
351
351
  static readonly emailsLabels: readonly ["Email_User"];
352
352
  /**
@@ -36,11 +36,11 @@ const ReturnsRecord_1 = require("./ReturnsRecord");
36
36
  const TwilioUserUpdateRecord_1 = require("./TwilioUserUpdateRecord");
37
37
  const SalesTerritoryRecord_1 = require("./SalesTerritoryRecord");
38
38
  const CaseRecord_1 = require("./CaseRecord");
39
- const CrmDatasetRecord_1 = require("./CrmDatasetRecord");
40
39
  const AddressRecord_1 = require("./AddressRecord");
41
40
  const BlockageA55Record_1 = require("./BlockageA55Record");
42
41
  const ServiceAppointmentConfigRecord_1 = require("./ServiceAppointmentConfigRecord");
43
42
  const ChangeReasonRecord_1 = require("./ChangeReasonRecord");
43
+ const CrmDatasetRecord_1 = require("./CrmDatasetRecord");
44
44
  const EmailRecord_1 = require("./EmailRecord");
45
45
  const ContractBuyOutRecord_1 = require("./ContractBuyOutRecord");
46
46
  const CustomerDeviceConfigurationRecord_1 = require("./CustomerDeviceConfigurationRecord");
@@ -339,36 +339,6 @@ class UserRecord {
339
339
  }
340
340
  return this._cases;
341
341
  }
342
- /**
343
- * Access linked CrmDataset records
344
- * @remarks Available labels: CrmDataset__User
345
- * @throws Error if called on a new (unsaved) record
346
- *
347
- * @example
348
- * ```typescript
349
- * // Get all linked CrmDataset records
350
- * const items = await record.crmDatasets.list();
351
- * const first = await record.crmDatasets.first();
352
- *
353
- * // Filter by label
354
- * const specific = await record.crmDatasets.first({ label: 'CrmDataset__User' });
355
- * ```
356
- */
357
- get crmDatasets() {
358
- var _a;
359
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
360
- throw new Error('Cannot access links on a new (unsaved) record');
361
- if (!this._crmDatasets) {
362
- this._crmDatasets = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
363
- sourceEntity: 'IdentityModule:User',
364
- targetEntity: 'CrmModule:CrmDataset',
365
- targetModuleName: 'CrmModule',
366
- targetEntityName: 'CrmDataset',
367
- labels: ['CrmDataset__User'],
368
- }, CrmDatasetRecord_1.CrmDatasetRecord);
369
- }
370
- return this._crmDatasets;
371
- }
372
342
  /**
373
343
  * Access linked Address records
374
344
  * @remarks Available labels: Address_User
@@ -489,6 +459,36 @@ class UserRecord {
489
459
  }
490
460
  return this._changeReasons;
491
461
  }
462
+ /**
463
+ * Access linked CrmDataset records
464
+ * @remarks Available labels: CrmDataset__User
465
+ * @throws Error if called on a new (unsaved) record
466
+ *
467
+ * @example
468
+ * ```typescript
469
+ * // Get all linked CrmDataset records
470
+ * const items = await record.crmDatasets.list();
471
+ * const first = await record.crmDatasets.first();
472
+ *
473
+ * // Filter by label
474
+ * const specific = await record.crmDatasets.first({ label: 'CrmDataset__User' });
475
+ * ```
476
+ */
477
+ get crmDatasets() {
478
+ var _a;
479
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
480
+ throw new Error('Cannot access links on a new (unsaved) record');
481
+ if (!this._crmDatasets) {
482
+ this._crmDatasets = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
483
+ sourceEntity: 'IdentityModule:User',
484
+ targetEntity: 'CrmModule:CrmDataset',
485
+ targetModuleName: 'CrmModule',
486
+ targetEntityName: 'CrmDataset',
487
+ labels: ['CrmDataset__User'],
488
+ }, CrmDatasetRecord_1.CrmDatasetRecord);
489
+ }
490
+ return this._crmDatasets;
491
+ }
492
492
  /**
493
493
  * Access linked Email records
494
494
  * @remarks Available labels: Email_User
@@ -851,8 +851,6 @@ UserRecord.twilioUserUpdatesLabels = ['TwilioUserUpdate'];
851
851
  UserRecord.salesTerritoriesLabels = ['SalesTerritory__User'];
852
852
  /** Valid labels for Case associations */
853
853
  UserRecord.casesLabels = ['CaseOwner', 'Case__User', 'CaseCollaborators', 'favourite_cases'];
854
- /** Valid labels for CrmDataset associations */
855
- UserRecord.crmDatasetsLabels = ['CrmDataset__User'];
856
854
  /** Valid labels for Address associations */
857
855
  UserRecord.addressesLabels = ['Address_User'];
858
856
  /** Valid labels for BlockageA55 associations */
@@ -861,6 +859,8 @@ UserRecord.blockageA55sLabels = ['BlockageA55_User'];
861
859
  UserRecord.serviceAppointmentConfigsLabels = ['Engineers', 'Manager', 'Supervisor'];
862
860
  /** Valid labels for ChangeReason associations */
863
861
  UserRecord.changeReasonsLabels = ['ChangeReason__User'];
862
+ /** Valid labels for CrmDataset associations */
863
+ UserRecord.crmDatasetsLabels = ['CrmDataset__User'];
864
864
  /** Valid labels for Email associations */
865
865
  UserRecord.emailsLabels = ['Email_User'];
866
866
  /** Valid labels for ContractBuyOut associations */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "1.0.366",
3
+ "version": "2.0.1",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",
@@ -11,7 +11,7 @@
11
11
  "typescript": "4.8.4"
12
12
  },
13
13
  "dependencies": {
14
- "@d19n/odin-sdk-generator": "^3.0.227",
14
+ "@d19n/odin-sdk-generator": "^3.0.229",
15
15
  "@d19n/odin-types": "^3.0.30"
16
16
  },
17
17
  "scripts": {