@d19n/youfibre-odin-sdk 2.0.1 → 2.0.2
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 +14 -3
- package/dist/EntityRegistry.d.ts +2 -0
- package/dist/EntityRegistry.js +2 -0
- package/dist/OdinApiClient.d.ts +4 -0
- package/dist/OdinApiClient.js +8 -0
- package/dist/OdinDbClient.d.ts +4 -0
- package/dist/OdinDbClient.js +8 -0
- package/dist/accessors-v2/BrskEntityMigrationErrorAccessor.d.ts +111 -0
- package/dist/accessors-v2/BrskEntityMigrationErrorAccessor.js +190 -0
- package/dist/accessors-v2/index.d.ts +1 -0
- package/dist/accessors-v2/index.js +5 -3
- package/dist/actions-v2/AssignCaseDto.d.ts +5 -13
- package/dist/actions-v2/AssignCaseWithNoteFlowDto.d.ts +5 -13
- package/dist/actions-v2/CreateAuddisPgSubmissionAllocationDto.d.ts +8 -1
- package/dist/actions-v2/CreateBacsPgSubmissionAllocationDto.d.ts +11 -4
- package/dist/actions-v2/CreateBrskMigrationErrorDto.d.ts +100 -0
- package/dist/actions-v2/CreateBrskMigrationErrorDto.js +52 -0
- package/dist/actions-v2/CreateCaseFromContactDto.d.ts +5 -13
- package/dist/actions-v2/CreateCashbackRewardForOrderReferralDto.d.ts +208 -0
- package/dist/actions-v2/CreateCashbackRewardForOrderReferralDto.js +179 -0
- package/dist/actions-v2/MoveCollectionWorkOrderToCompleteDto.d.ts +72 -20
- package/dist/actions-v2/MoveCollectionWorkOrderToCompleteDto.js +42 -21
- package/dist/actions-v2/UpdatePgFileAllocationDto.d.ts +91 -0
- package/dist/actions-v2/UpdatePgFileAllocationDto.js +61 -0
- package/dist/actions-v2/UpdateTeamDto.d.ts +15 -1
- package/dist/api-sdk-v2/BrskEntityMigrationErrorApi.d.ts +45 -0
- package/dist/api-sdk-v2/BrskEntityMigrationErrorApi.js +151 -0
- package/dist/api-sdk-v2/ReferralApi.d.ts +2 -0
- package/dist/api-sdk-v2/ReferralApi.js +6 -0
- package/dist/api-sdk-v2/RewardApi.d.ts +2 -0
- package/dist/api-sdk-v2/RewardApi.js +6 -0
- package/dist/db-accessors-v2/BrskEntityMigrationErrorDbAccessor.d.ts +146 -0
- package/dist/db-accessors-v2/BrskEntityMigrationErrorDbAccessor.js +224 -0
- package/dist/db-accessors-v2/index.d.ts +1 -0
- package/dist/db-accessors-v2/index.js +5 -3
- package/dist/db-sdk-v2/BrskEntityMigrationErrorDb.d.ts +117 -0
- package/dist/db-sdk-v2/BrskEntityMigrationErrorDb.js +200 -0
- package/dist/db-sdk-v2/ReferralDb.d.ts +2 -0
- package/dist/db-sdk-v2/ReferralDb.js +6 -0
- package/dist/db-sdk-v2/RewardDb.d.ts +2 -0
- package/dist/db-sdk-v2/RewardDb.js +6 -0
- package/dist/entities-v2/AccountCredit.d.ts +90 -7
- package/dist/entities-v2/AccountCredit.js +86 -3
- package/dist/entities-v2/BrskEntityMigrationError.d.ts +107 -0
- package/dist/entities-v2/BrskEntityMigrationError.js +75 -0
- package/dist/entities-v2/Config.d.ts +8 -8
- package/dist/entities-v2/Config.js +4 -4
- package/dist/entities-v2/Referral.d.ts +7 -0
- package/dist/entities-v2/Referral.js +5 -1
- package/dist/entities-v2/Reward.d.ts +3 -12
- package/dist/entities-v2/Reward.js +0 -2
- package/dist/entities-v2/Team.d.ts +21 -0
- package/dist/entities-v2/Team.js +17 -1
- package/dist/records-v2/BrskEntityMigrationErrorRecord.d.ts +184 -0
- package/dist/records-v2/BrskEntityMigrationErrorRecord.js +243 -0
- package/dist/records-v2/ContactRecord.js +2 -0
- package/dist/records-v2/PgFileAllocationRecord.d.ts +28 -0
- package/dist/records-v2/PgFileAllocationRecord.js +37 -0
- package/dist/records-v2/ReferralRecord.d.ts +20 -0
- package/dist/records-v2/ReferralRecord.js +33 -0
- package/dist/records-v2/RewardRecord.d.ts +49 -0
- package/dist/records-v2/RewardRecord.js +60 -0
- package/dist/records-v2/WorkOrderRecord.d.ts +25 -29
- package/dist/records-v2/WorkOrderRecord.js +29 -36
- package/dist/records-v2/index.d.ts +1 -0
- package/dist/records-v2/index.js +7 -4
- package/package.json +1 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* BrskEntityMigrationError Entity Definition
|
|
4
|
+
*
|
|
5
|
+
* Stores Brsk Migration Entity Errors
|
|
6
|
+
*
|
|
7
|
+
* @module AuditModule
|
|
8
|
+
* @entity BrskEntityMigrationError
|
|
9
|
+
* @schemaId 69628645-fa51-46c7-bca4-5b2439eab892
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
* Generated from Odin schema definition
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DEFAULT_DELETED = exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DEFAULT_UPDATED = exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DEFAULT_CREATED = exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DELETED = exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_UPDATED = exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_CREATED = exports.BrskEntityMigrationError = exports.BrskEntityMigrationErrorPropertyKeys = exports.BrskEntityMigrationErrorEntityTypes = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Available types for BrskEntityMigrationError records
|
|
19
|
+
*/
|
|
20
|
+
var BrskEntityMigrationErrorEntityTypes;
|
|
21
|
+
(function (BrskEntityMigrationErrorEntityTypes) {
|
|
22
|
+
/** This is the default record type */
|
|
23
|
+
BrskEntityMigrationErrorEntityTypes["DEFAULT"] = "DEFAULT";
|
|
24
|
+
})(BrskEntityMigrationErrorEntityTypes = exports.BrskEntityMigrationErrorEntityTypes || (exports.BrskEntityMigrationErrorEntityTypes = {}));
|
|
25
|
+
/**
|
|
26
|
+
* Property keys for BrskEntityMigrationError
|
|
27
|
+
* Use these constants instead of string literals for type safety
|
|
28
|
+
*/
|
|
29
|
+
var BrskEntityMigrationErrorPropertyKeys;
|
|
30
|
+
(function (BrskEntityMigrationErrorPropertyKeys) {
|
|
31
|
+
/** Brsk Reference */
|
|
32
|
+
BrskEntityMigrationErrorPropertyKeys["BrskReference"] = "BrskReference";
|
|
33
|
+
/** Json object */
|
|
34
|
+
BrskEntityMigrationErrorPropertyKeys["JsonObject"] = "JSONObject";
|
|
35
|
+
/** Sync Script Name */
|
|
36
|
+
BrskEntityMigrationErrorPropertyKeys["SyncScript"] = "SyncScript";
|
|
37
|
+
/** Resolved */
|
|
38
|
+
BrskEntityMigrationErrorPropertyKeys["Resolved"] = "Resolved";
|
|
39
|
+
/** Error Message */
|
|
40
|
+
BrskEntityMigrationErrorPropertyKeys["ErrorMessage"] = "ErrorMessage";
|
|
41
|
+
/** Target Entity */
|
|
42
|
+
BrskEntityMigrationErrorPropertyKeys["TargetEntity"] = "TargetEntity";
|
|
43
|
+
})(BrskEntityMigrationErrorPropertyKeys = exports.BrskEntityMigrationErrorPropertyKeys || (exports.BrskEntityMigrationErrorPropertyKeys = {}));
|
|
44
|
+
/**
|
|
45
|
+
* BrskEntityMigrationError entity from AuditModule
|
|
46
|
+
*
|
|
47
|
+
* Stores Brsk Migration Entity Errors
|
|
48
|
+
*
|
|
49
|
+
* @module AuditModule
|
|
50
|
+
* @entity BrskEntityMigrationError
|
|
51
|
+
* @schemaId 69628645-fa51-46c7-bca4-5b2439eab892
|
|
52
|
+
* @capabilities searchable, updateable, undeletable, triggerable
|
|
53
|
+
*/
|
|
54
|
+
class BrskEntityMigrationError extends core_1.OdinRecord {
|
|
55
|
+
}
|
|
56
|
+
exports.BrskEntityMigrationError = BrskEntityMigrationError;
|
|
57
|
+
// ============================================
|
|
58
|
+
// RABBITMQ EVENT ROUTING KEYS
|
|
59
|
+
// ============================================
|
|
60
|
+
/**
|
|
61
|
+
* RabbitMQ routing keys for BrskEntityMigrationError events
|
|
62
|
+
*/
|
|
63
|
+
exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_CREATED = 'AuditModule.BrskEntityMigrationError.SubDbRecordCreated';
|
|
64
|
+
exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_UPDATED = 'AuditModule.BrskEntityMigrationError.SubDbRecordUpdated';
|
|
65
|
+
exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DELETED = 'AuditModule.BrskEntityMigrationError.SubDbRecordDeleted';
|
|
66
|
+
/**
|
|
67
|
+
* Type-specific routing keys for BrskEntityMigrationError events
|
|
68
|
+
* Subscribe to these for events on specific entity types only
|
|
69
|
+
*/
|
|
70
|
+
/** This is the default record type created */
|
|
71
|
+
exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DEFAULT_CREATED = 'AuditModule.BrskEntityMigrationError.DEFAULT.SubDbRecordCreated';
|
|
72
|
+
/** This is the default record type updated */
|
|
73
|
+
exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DEFAULT_UPDATED = 'AuditModule.BrskEntityMigrationError.DEFAULT.SubDbRecordUpdated';
|
|
74
|
+
/** This is the default record type deleted */
|
|
75
|
+
exports.ROUTING_KEY_BRSK_ENTITY_MIGRATION_ERROR_DEFAULT_DELETED = 'AuditModule.BrskEntityMigrationError.DEFAULT.SubDbRecordDeleted';
|
|
@@ -23,12 +23,12 @@ export declare enum ConfigEntityTypes {
|
|
|
23
23
|
* Use these constants instead of string literals for type safety
|
|
24
24
|
*/
|
|
25
25
|
export declare enum ConfigPropertyKeys {
|
|
26
|
-
/**
|
|
27
|
-
|
|
26
|
+
/** Data field for Config records. Used by Platform team. */
|
|
27
|
+
Test = "Test",
|
|
28
28
|
/** object of { key: value } mappings (Platform - Config) */
|
|
29
29
|
Mappings = "Mappings",
|
|
30
|
-
/**
|
|
31
|
-
|
|
30
|
+
/** the name of the app this config relates to (Platform - Config) */
|
|
31
|
+
AppName = "AppName"
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* Properties for Config records
|
|
@@ -36,21 +36,21 @@ export declare enum ConfigPropertyKeys {
|
|
|
36
36
|
* @see SchemaModule:Config
|
|
37
37
|
*/
|
|
38
38
|
export interface ConfigProperties {
|
|
39
|
-
/**
|
|
39
|
+
/** Data field for Config records. Used by Platform team.
|
|
40
40
|
*
|
|
41
41
|
* @type {TEXT}
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
Test: string;
|
|
44
44
|
/** object of { key: value } mappings (Platform - Config)
|
|
45
45
|
*
|
|
46
46
|
* @type {JSON}
|
|
47
47
|
*/
|
|
48
48
|
Mappings: string;
|
|
49
|
-
/**
|
|
49
|
+
/** the name of the app this config relates to (Platform - Config)
|
|
50
50
|
*
|
|
51
51
|
* @type {TEXT}
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
AppName: string;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Config entity from SchemaModule
|
|
@@ -28,12 +28,12 @@ var ConfigEntityTypes;
|
|
|
28
28
|
*/
|
|
29
29
|
var ConfigPropertyKeys;
|
|
30
30
|
(function (ConfigPropertyKeys) {
|
|
31
|
-
/** the name of the app this config relates to (Platform - Config) */
|
|
32
|
-
ConfigPropertyKeys["AppName"] = "AppName";
|
|
33
|
-
/** object of { key: value } mappings (Platform - Config) */
|
|
34
|
-
ConfigPropertyKeys["Mappings"] = "Mappings";
|
|
35
31
|
/** Data field for Config records. Used by Platform team. */
|
|
36
32
|
ConfigPropertyKeys["Test"] = "Test";
|
|
33
|
+
/** object of { key: value } mappings (Platform - Config) */
|
|
34
|
+
ConfigPropertyKeys["Mappings"] = "Mappings";
|
|
35
|
+
/** the name of the app this config relates to (Platform - Config) */
|
|
36
|
+
ConfigPropertyKeys["AppName"] = "AppName";
|
|
37
37
|
})(ConfigPropertyKeys = exports.ConfigPropertyKeys || (exports.ConfigPropertyKeys = {}));
|
|
38
38
|
/**
|
|
39
39
|
* Config entity from SchemaModule
|
|
@@ -15,6 +15,7 @@ import { ContactProperties } from './Contact';
|
|
|
15
15
|
import { AffiliateCodeProperties } from './AffiliateCode';
|
|
16
16
|
import { CampaignProperties } from './Campaign';
|
|
17
17
|
import { OrderProperties } from './Order';
|
|
18
|
+
import { RewardProperties } from './Reward';
|
|
18
19
|
/**
|
|
19
20
|
* Available types for Referral records
|
|
20
21
|
*/
|
|
@@ -167,6 +168,8 @@ export declare class Referral extends OdinRecord<ReferralProperties> {
|
|
|
167
168
|
Campaign: OdinLink<LinkedOdinRecord<CampaignProperties>>;
|
|
168
169
|
/** Linked Order records (OrderReferral) */
|
|
169
170
|
Order: OdinLink<LinkedOdinRecord<OrderProperties>>;
|
|
171
|
+
/** Linked Reward records (OrderReferralCashbackReward) */
|
|
172
|
+
Reward: OdinLink<LinkedOdinRecord<RewardProperties>>;
|
|
170
173
|
}
|
|
171
174
|
/**
|
|
172
175
|
* RabbitMQ routing keys for Referral events
|
|
@@ -184,3 +187,7 @@ export declare const ROUTING_KEY_REFERRAL_ORDER_CREATED = "CrmModule.Referral.OR
|
|
|
184
187
|
export declare const ROUTING_KEY_REFERRAL_ORDER_UPDATED = "CrmModule.Referral.ORDER.SubDbRecordUpdated";
|
|
185
188
|
/** Records the usage of an affiliate code for an order deleted */
|
|
186
189
|
export declare const ROUTING_KEY_REFERRAL_ORDER_DELETED = "CrmModule.Referral.ORDER.SubDbRecordDeleted";
|
|
190
|
+
/** Event: OrderReferralCashbackReward link created */
|
|
191
|
+
export declare const ROUTING_KEY_LINK_ORDER_REFERRAL_CASHBACK_REWARD_CREATED = "CrmModule.Referral.Reward.SubDbRecordAssociationCreated";
|
|
192
|
+
/** Event: OrderReferralCashbackReward link deleted */
|
|
193
|
+
export declare const ROUTING_KEY_LINK_ORDER_REFERRAL_CASHBACK_REWARD_DELETED = "CrmModule.Referral.Reward.SubDbRecordAssociationDeleted";
|
|
@@ -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_REFERRAL_ORDER_DELETED = exports.ROUTING_KEY_REFERRAL_ORDER_UPDATED = exports.ROUTING_KEY_REFERRAL_ORDER_CREATED = exports.ROUTING_KEY_REFERRAL_DELETED = exports.ROUTING_KEY_REFERRAL_UPDATED = exports.ROUTING_KEY_REFERRAL_CREATED = exports.Referral = exports.ReferralPropertyKeys = exports.OrderReferralStageKeys = exports.OrderReferralStageNames = exports.ReferralEntityTypes = void 0;
|
|
15
|
+
exports.ROUTING_KEY_LINK_ORDER_REFERRAL_CASHBACK_REWARD_DELETED = exports.ROUTING_KEY_LINK_ORDER_REFERRAL_CASHBACK_REWARD_CREATED = exports.ROUTING_KEY_REFERRAL_ORDER_DELETED = exports.ROUTING_KEY_REFERRAL_ORDER_UPDATED = exports.ROUTING_KEY_REFERRAL_ORDER_CREATED = exports.ROUTING_KEY_REFERRAL_DELETED = exports.ROUTING_KEY_REFERRAL_UPDATED = exports.ROUTING_KEY_REFERRAL_CREATED = exports.Referral = exports.ReferralPropertyKeys = exports.OrderReferralStageKeys = exports.OrderReferralStageNames = exports.ReferralEntityTypes = void 0;
|
|
16
16
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
17
|
/**
|
|
18
18
|
* Available types for Referral records
|
|
@@ -115,3 +115,7 @@ exports.ROUTING_KEY_REFERRAL_ORDER_CREATED = 'CrmModule.Referral.ORDER.SubDbReco
|
|
|
115
115
|
exports.ROUTING_KEY_REFERRAL_ORDER_UPDATED = 'CrmModule.Referral.ORDER.SubDbRecordUpdated';
|
|
116
116
|
/** Records the usage of an affiliate code for an order deleted */
|
|
117
117
|
exports.ROUTING_KEY_REFERRAL_ORDER_DELETED = 'CrmModule.Referral.ORDER.SubDbRecordDeleted';
|
|
118
|
+
/** Event: OrderReferralCashbackReward link created */
|
|
119
|
+
exports.ROUTING_KEY_LINK_ORDER_REFERRAL_CASHBACK_REWARD_CREATED = 'CrmModule.Referral.Reward.SubDbRecordAssociationCreated';
|
|
120
|
+
/** Event: OrderReferralCashbackReward link deleted */
|
|
121
|
+
exports.ROUTING_KEY_LINK_ORDER_REFERRAL_CASHBACK_REWARD_DELETED = 'CrmModule.Referral.Reward.SubDbRecordAssociationDeleted';
|
|
@@ -15,6 +15,7 @@ import { CampaignProperties } from './Campaign';
|
|
|
15
15
|
import { ContactProperties } from './Contact';
|
|
16
16
|
import { AffiliateCodeProperties } from './AffiliateCode';
|
|
17
17
|
import { PaymentMethodRefundProperties } from './PaymentMethodRefund';
|
|
18
|
+
import { ReferralProperties } from './Referral';
|
|
18
19
|
/**
|
|
19
20
|
* Available types for Reward records
|
|
20
21
|
*/
|
|
@@ -60,8 +61,6 @@ export declare enum RewardPropertyKeys {
|
|
|
60
61
|
Amount = "Amount",
|
|
61
62
|
/** Currency of the rewarded amount */
|
|
62
63
|
Currency = "Currency",
|
|
63
|
-
/** PaymentMethodRefund reference */
|
|
64
|
-
PaymentMethodRefundId = "PaymentMethodRefundId",
|
|
65
64
|
/** Affiliate code that generated this reward */
|
|
66
65
|
AffiliateCodeId = "AffiliateCodeId"
|
|
67
66
|
}
|
|
@@ -91,11 +90,6 @@ export interface RewardProperties {
|
|
|
91
90
|
* @type {TEXT}
|
|
92
91
|
*/
|
|
93
92
|
Currency: string;
|
|
94
|
-
/** PaymentMethodRefund reference
|
|
95
|
-
*
|
|
96
|
-
* @type {LOOKUP}
|
|
97
|
-
*/
|
|
98
|
-
PaymentMethodRefundId: string;
|
|
99
93
|
/** Affiliate code that generated this reward
|
|
100
94
|
*
|
|
101
95
|
* @type {LOOKUP}
|
|
@@ -128,11 +122,6 @@ export interface CashbackRewardProperties {
|
|
|
128
122
|
* @type {TEXT}
|
|
129
123
|
*/
|
|
130
124
|
Currency: string;
|
|
131
|
-
/** PaymentMethodRefund reference
|
|
132
|
-
*
|
|
133
|
-
* @type {LOOKUP}
|
|
134
|
-
*/
|
|
135
|
-
PaymentMethodRefundId: string;
|
|
136
125
|
/** Affiliate code that generated this reward
|
|
137
126
|
*
|
|
138
127
|
* @type {LOOKUP}
|
|
@@ -163,6 +152,8 @@ export declare class Reward extends OdinRecord<RewardProperties> {
|
|
|
163
152
|
AffiliateCode: OdinLink<LinkedOdinRecord<AffiliateCodeProperties>>;
|
|
164
153
|
/** Linked PaymentMethodRefund records (RewardPaymentMethodRefund) */
|
|
165
154
|
PaymentMethodRefund: OdinLink<LinkedOdinRecord<PaymentMethodRefundProperties>>;
|
|
155
|
+
/** Linked Referral records (OrderReferralCashbackReward) */
|
|
156
|
+
Referral: OdinLink<LinkedOdinRecord<ReferralProperties>>;
|
|
166
157
|
}
|
|
167
158
|
/**
|
|
168
159
|
* RabbitMQ routing keys for Reward events
|
|
@@ -63,8 +63,6 @@ var RewardPropertyKeys;
|
|
|
63
63
|
RewardPropertyKeys["Amount"] = "Amount";
|
|
64
64
|
/** Currency of the rewarded amount */
|
|
65
65
|
RewardPropertyKeys["Currency"] = "Currency";
|
|
66
|
-
/** PaymentMethodRefund reference */
|
|
67
|
-
RewardPropertyKeys["PaymentMethodRefundId"] = "PaymentMethodRefundId";
|
|
68
66
|
/** Affiliate code that generated this reward */
|
|
69
67
|
RewardPropertyKeys["AffiliateCodeId"] = "AffiliateCodeId";
|
|
70
68
|
})(RewardPropertyKeys = exports.RewardPropertyKeys || (exports.RewardPropertyKeys = {}));
|
|
@@ -64,6 +64,19 @@ export declare enum TeamWorksCases {
|
|
|
64
64
|
NO = "NO",
|
|
65
65
|
YES = "YES"
|
|
66
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Valid values for Team.CanEscalateTo
|
|
69
|
+
*
|
|
70
|
+
* Can escalate to
|
|
71
|
+
*
|
|
72
|
+
* @remarks Available options:
|
|
73
|
+
* - `NO` - No
|
|
74
|
+
* - `YES` - Yes
|
|
75
|
+
*/
|
|
76
|
+
export declare enum TeamCanEscalateTo {
|
|
77
|
+
NO = "NO",
|
|
78
|
+
YES = "YES"
|
|
79
|
+
}
|
|
67
80
|
/**
|
|
68
81
|
* Valid values for Team.PrimaryChannel
|
|
69
82
|
*
|
|
@@ -105,6 +118,8 @@ export declare enum TeamPropertyKeys {
|
|
|
105
118
|
Name = "Name",
|
|
106
119
|
/** Available team for allocating cases */
|
|
107
120
|
WorksCases = "WorksCases",
|
|
121
|
+
/** Can escalate to */
|
|
122
|
+
CanEscalateTo = "CanEscalateTo",
|
|
108
123
|
/** Primary Channel - Cases */
|
|
109
124
|
PrimaryChannel = "PrimaryChannel",
|
|
110
125
|
/** This property is for translations into more readable names for use within schema actions (IT Security - Team) */
|
|
@@ -145,6 +160,12 @@ export interface TeamProperties {
|
|
|
145
160
|
* @enum {TeamWorksCases}
|
|
146
161
|
*/
|
|
147
162
|
WorksCases: TeamWorksCases;
|
|
163
|
+
/** Can escalate to
|
|
164
|
+
*
|
|
165
|
+
* @type {ENUM}
|
|
166
|
+
* @enum {TeamCanEscalateTo}
|
|
167
|
+
*/
|
|
168
|
+
CanEscalateTo: TeamCanEscalateTo;
|
|
148
169
|
/** Primary Channel - Cases
|
|
149
170
|
*
|
|
150
171
|
* @type {ENUM}
|
package/dist/entities-v2/Team.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Generated from Odin schema definition
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ROUTING_KEY_LINK_TEAM_USER_DELETED = exports.ROUTING_KEY_LINK_TEAM_USER_CREATED = exports.ROUTING_KEY_TEAM_DEFAULT_DELETED = exports.ROUTING_KEY_TEAM_DEFAULT_UPDATED = exports.ROUTING_KEY_TEAM_DEFAULT_CREATED = exports.ROUTING_KEY_TEAM_DELETED = exports.ROUTING_KEY_TEAM_UPDATED = exports.ROUTING_KEY_TEAM_CREATED = exports.Team = exports.TeamPropertyKeys = exports.TeamSupportTeam = exports.TeamPrimaryChannel = exports.TeamWorksCases = exports.TeamSecondaryChannel = exports.TeamSocialAccess = exports.TeamEntityTypes = void 0;
|
|
15
|
+
exports.ROUTING_KEY_LINK_TEAM_USER_DELETED = exports.ROUTING_KEY_LINK_TEAM_USER_CREATED = exports.ROUTING_KEY_TEAM_DEFAULT_DELETED = exports.ROUTING_KEY_TEAM_DEFAULT_UPDATED = exports.ROUTING_KEY_TEAM_DEFAULT_CREATED = exports.ROUTING_KEY_TEAM_DELETED = exports.ROUTING_KEY_TEAM_UPDATED = exports.ROUTING_KEY_TEAM_CREATED = exports.Team = exports.TeamPropertyKeys = exports.TeamSupportTeam = exports.TeamPrimaryChannel = exports.TeamCanEscalateTo = exports.TeamWorksCases = exports.TeamSecondaryChannel = exports.TeamSocialAccess = exports.TeamEntityTypes = void 0;
|
|
16
16
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
17
|
/**
|
|
18
18
|
* Available types for Team records
|
|
@@ -66,6 +66,20 @@ var TeamWorksCases;
|
|
|
66
66
|
TeamWorksCases["NO"] = "NO";
|
|
67
67
|
TeamWorksCases["YES"] = "YES";
|
|
68
68
|
})(TeamWorksCases = exports.TeamWorksCases || (exports.TeamWorksCases = {}));
|
|
69
|
+
/**
|
|
70
|
+
* Valid values for Team.CanEscalateTo
|
|
71
|
+
*
|
|
72
|
+
* Can escalate to
|
|
73
|
+
*
|
|
74
|
+
* @remarks Available options:
|
|
75
|
+
* - `NO` - No
|
|
76
|
+
* - `YES` - Yes
|
|
77
|
+
*/
|
|
78
|
+
var TeamCanEscalateTo;
|
|
79
|
+
(function (TeamCanEscalateTo) {
|
|
80
|
+
TeamCanEscalateTo["NO"] = "NO";
|
|
81
|
+
TeamCanEscalateTo["YES"] = "YES";
|
|
82
|
+
})(TeamCanEscalateTo = exports.TeamCanEscalateTo || (exports.TeamCanEscalateTo = {}));
|
|
69
83
|
/**
|
|
70
84
|
* Valid values for Team.PrimaryChannel
|
|
71
85
|
*
|
|
@@ -110,6 +124,8 @@ var TeamPropertyKeys;
|
|
|
110
124
|
TeamPropertyKeys["Name"] = "Name";
|
|
111
125
|
/** Available team for allocating cases */
|
|
112
126
|
TeamPropertyKeys["WorksCases"] = "WorksCases";
|
|
127
|
+
/** Can escalate to */
|
|
128
|
+
TeamPropertyKeys["CanEscalateTo"] = "CanEscalateTo";
|
|
113
129
|
/** Primary Channel - Cases */
|
|
114
130
|
TeamPropertyKeys["PrimaryChannel"] = "PrimaryChannel";
|
|
115
131
|
/** This property is for translations into more readable names for use within schema actions (IT Security - Team) */
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BrskEntityMigrationError Record Wrapper
|
|
3
|
+
*
|
|
4
|
+
* Provides typed action methods and link management.
|
|
5
|
+
* Works with both ApiProvider and DbProvider.
|
|
6
|
+
*
|
|
7
|
+
* All action methods return an ActionBuilder or FlowBuilder.
|
|
8
|
+
* Call .execute() to run or .dryRun() to get the payload for debugging.
|
|
9
|
+
*
|
|
10
|
+
* Can be instantiated with null record for create operations:
|
|
11
|
+
* ```typescript
|
|
12
|
+
* const record = odinClient.brskEntityMigrationErrors.new();
|
|
13
|
+
* await record.createBrskEntityMigrationError({ ... }).execute();
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* Entity Types: DEFAULT
|
|
17
|
+
*
|
|
18
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
19
|
+
*/
|
|
20
|
+
import { OdinRecord, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
|
|
21
|
+
import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
|
|
22
|
+
import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/v1.db.interfaces';
|
|
23
|
+
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
24
|
+
import { BrskEntityMigrationErrorProperties } from '../entities-v2/BrskEntityMigrationError';
|
|
25
|
+
import { CreateBrskMigrationErrorProperties } from '../actions-v2/CreateBrskMigrationErrorDto';
|
|
26
|
+
/** Valid entity types for BrskEntityMigrationError */
|
|
27
|
+
export declare type BrskEntityMigrationErrorType = 'DEFAULT';
|
|
28
|
+
/**
|
|
29
|
+
* Builder for action execution with dryRun support
|
|
30
|
+
*
|
|
31
|
+
* Provides a consistent API across all action types:
|
|
32
|
+
* - `.execute()` - Execute the action and return results
|
|
33
|
+
* - `.dryRun()` - Return the payload without executing (for debugging)
|
|
34
|
+
*/
|
|
35
|
+
declare class ActionBuilder<T = IDbRecordCreateUpdateRes[]> {
|
|
36
|
+
private _provider;
|
|
37
|
+
private _moduleName;
|
|
38
|
+
private _entityName;
|
|
39
|
+
private _payload;
|
|
40
|
+
private _clearPendingLinks;
|
|
41
|
+
constructor(provider: IOdinProvider, moduleName: string, entityName: string, payload: Record<string, any>, clearPendingLinks: () => void);
|
|
42
|
+
/**
|
|
43
|
+
* Set an external system identifier for this record.
|
|
44
|
+
* Links the record to a corresponding entry in an external application.
|
|
45
|
+
*
|
|
46
|
+
* @param externalId - The ID in the external system
|
|
47
|
+
* @param externalAppId - The external application identifier
|
|
48
|
+
* @returns this (for chaining)
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```typescript
|
|
52
|
+
* await record.createOrder({ ... }).withExternalId('SF-123', 'salesforce').execute();
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
withExternalId(externalId: string, externalAppId: string): this;
|
|
56
|
+
/**
|
|
57
|
+
* Set security/access groups for this record.
|
|
58
|
+
* Controls which user groups can access the record.
|
|
59
|
+
*
|
|
60
|
+
* @param groups - Array of group names
|
|
61
|
+
* @returns this (for chaining)
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```typescript
|
|
65
|
+
* await record.createOrder({ ... }).withGroups(['TenantA', 'BillingTeam']).execute();
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
withGroups(groups: string[]): this;
|
|
69
|
+
/**
|
|
70
|
+
* Execute the action
|
|
71
|
+
* @returns The result from the API
|
|
72
|
+
*/
|
|
73
|
+
execute(): Promise<T>;
|
|
74
|
+
/**
|
|
75
|
+
* Returns the request payload without executing (for debugging)
|
|
76
|
+
* @returns The request payload that would be sent to the API
|
|
77
|
+
*/
|
|
78
|
+
dryRun(): Record<string, any>;
|
|
79
|
+
/**
|
|
80
|
+
* Prevents accidental `await actionBuilder` without .execute()
|
|
81
|
+
* Forces developers to explicitly call .execute()
|
|
82
|
+
* @throws Error always - use .execute() or .dryRun() instead
|
|
83
|
+
*/
|
|
84
|
+
then(): never;
|
|
85
|
+
}
|
|
86
|
+
export declare class BrskEntityMigrationErrorRecord<TProps = BrskEntityMigrationErrorProperties> {
|
|
87
|
+
private _record;
|
|
88
|
+
private _provider;
|
|
89
|
+
private _pendingLinks;
|
|
90
|
+
private _preGeneratedId;
|
|
91
|
+
/**
|
|
92
|
+
* Create a record wrapper.
|
|
93
|
+
* @param record - The underlying record, or null for create operations
|
|
94
|
+
* @param provider - The API or DB provider
|
|
95
|
+
* @param preGeneratedId - Optional pre-generated ID for new records (auto-generated if not provided)
|
|
96
|
+
*/
|
|
97
|
+
constructor(record: OdinRecord<TProps> | null, provider: IOdinProvider, preGeneratedId?: string);
|
|
98
|
+
/** Returns true if this is a new (unsaved) record */
|
|
99
|
+
get isNew(): boolean;
|
|
100
|
+
/** Record ID - always available (pre-generated for new records) */
|
|
101
|
+
get id(): string;
|
|
102
|
+
get entity(): string;
|
|
103
|
+
get type(): BrskEntityMigrationErrorType | undefined;
|
|
104
|
+
/** Record properties - empty object for new (unsaved) records */
|
|
105
|
+
get properties(): TProps;
|
|
106
|
+
get title(): string | undefined;
|
|
107
|
+
get recordNumber(): string | undefined;
|
|
108
|
+
get stage(): PipelineStageEntity | undefined;
|
|
109
|
+
get createdAt(): string | undefined;
|
|
110
|
+
get updatedAt(): string | undefined;
|
|
111
|
+
get externalId(): string | undefined;
|
|
112
|
+
get externalAppId(): string | undefined;
|
|
113
|
+
get groups(): string[];
|
|
114
|
+
/** Access the underlying OdinRecord (null for new records) */
|
|
115
|
+
get record(): OdinRecord<TProps> | null;
|
|
116
|
+
/**
|
|
117
|
+
* Type guard: check if this record is of type DEFAULT
|
|
118
|
+
*
|
|
119
|
+
* When this returns true, TypeScript automatically narrows the type,
|
|
120
|
+
* giving you access to DEFAULT-specific properties.
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* ```typescript
|
|
124
|
+
* if (record.isDefault()) {
|
|
125
|
+
* // TypeScript knows record.properties is BrskEntityMigrationErrorProperties
|
|
126
|
+
* console.log(record.properties.SomeTypeSpecificField);
|
|
127
|
+
* }
|
|
128
|
+
* ```
|
|
129
|
+
* @remarks This is the default record type
|
|
130
|
+
*/
|
|
131
|
+
isDefault(): this is BrskEntityMigrationErrorRecord<BrskEntityMigrationErrorProperties>;
|
|
132
|
+
/**
|
|
133
|
+
* Queue a link to be created with the next action.
|
|
134
|
+
* Works for both create and update actions.
|
|
135
|
+
* @returns this (for chaining)
|
|
136
|
+
*/
|
|
137
|
+
link(target: OdinRecord<any> | {
|
|
138
|
+
id: string;
|
|
139
|
+
entity: string;
|
|
140
|
+
}): this;
|
|
141
|
+
/** Get the currently queued links */
|
|
142
|
+
get pendingLinks(): OdinRecordLinkDto[];
|
|
143
|
+
/** Clear pending links without executing an action */
|
|
144
|
+
clearPendingLinks(): this;
|
|
145
|
+
/**
|
|
146
|
+
* Immediately unlink a record (API call).
|
|
147
|
+
* Unlike link(), this executes immediately.
|
|
148
|
+
* @throws Error if called on a new (unsaved) record
|
|
149
|
+
*/
|
|
150
|
+
unlink(target: OdinRecord<any> | {
|
|
151
|
+
id: string;
|
|
152
|
+
} | string): Promise<void>;
|
|
153
|
+
/**
|
|
154
|
+
* CreateBrskMigrationError
|
|
155
|
+
*
|
|
156
|
+
* Creates a new BrskEntityMigrationError record with the specified properties.
|
|
157
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
158
|
+
*
|
|
159
|
+
* @param properties - The properties for the new record
|
|
160
|
+
* @param options - Optional settings
|
|
161
|
+
* @param options.type - Override the record type
|
|
162
|
+
* @param options.journeyId - Associate with a journey
|
|
163
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
164
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* ```typescript
|
|
168
|
+
* // Create with properties
|
|
169
|
+
* const record = odinClient.brskEntityMigrationErrors.new();
|
|
170
|
+
* await record.createBrskMigrationError({ ... }).execute();
|
|
171
|
+
*
|
|
172
|
+
* // Dry run (for debugging)
|
|
173
|
+
* const payload = record.createBrskMigrationError({ ... }).dryRun();
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
176
|
+
createBrskMigrationError(properties?: CreateBrskMigrationErrorProperties, options?: {
|
|
177
|
+
type?: string;
|
|
178
|
+
journeyId?: string;
|
|
179
|
+
stageKey?: string;
|
|
180
|
+
}): ActionBuilder;
|
|
181
|
+
}
|
|
182
|
+
/** Type guard to check if an object is a BrskEntityMigrationErrorRecord */
|
|
183
|
+
export declare function isBrskEntityMigrationErrorRecord(obj: any): obj is BrskEntityMigrationErrorRecord;
|
|
184
|
+
export {};
|