@acorex/connectivity 20.7.17 → 20.7.20
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.
|
@@ -2227,7 +2227,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2227
2227
|
//#region ---- Module Export ----
|
|
2228
2228
|
//#endregion
|
|
2229
2229
|
|
|
2230
|
-
const uuid$
|
|
2230
|
+
const uuid$l = AXPDataGenerator.uuid;
|
|
2231
2231
|
const assetCategoryMock = [
|
|
2232
2232
|
{
|
|
2233
2233
|
id: 'asset-category-it-equipment',
|
|
@@ -2236,7 +2236,7 @@ const assetCategoryMock = [
|
|
|
2236
2236
|
childrenCount: 0,
|
|
2237
2237
|
metaDataList: [
|
|
2238
2238
|
{
|
|
2239
|
-
id: uuid$
|
|
2239
|
+
id: uuid$l(),
|
|
2240
2240
|
name: 'warranty-expiry',
|
|
2241
2241
|
title: 'Warranty Expiry',
|
|
2242
2242
|
text: 'Warranty Expiry',
|
|
@@ -2246,7 +2246,7 @@ const assetCategoryMock = [
|
|
|
2246
2246
|
interface: '{"type":"date-time-editor","path":"warranty.expiry","options":{"validations":[{"rule":"required"}]}}',
|
|
2247
2247
|
},
|
|
2248
2248
|
{
|
|
2249
|
-
id: uuid$
|
|
2249
|
+
id: uuid$l(),
|
|
2250
2250
|
name: 'operating-system',
|
|
2251
2251
|
title: 'Operating System',
|
|
2252
2252
|
text: 'Operating System',
|
|
@@ -2263,7 +2263,7 @@ const assetCategoryMock = [
|
|
|
2263
2263
|
childrenCount: 0,
|
|
2264
2264
|
metaDataList: [
|
|
2265
2265
|
{
|
|
2266
|
-
id: uuid$
|
|
2266
|
+
id: uuid$l(),
|
|
2267
2267
|
name: 'inspection-date',
|
|
2268
2268
|
title: 'Last Inspection Date',
|
|
2269
2269
|
text: 'Last Inspection Date',
|
|
@@ -2272,7 +2272,7 @@ const assetCategoryMock = [
|
|
|
2272
2272
|
interface: '{"type":"date-time-editor","path":"compliance.lastInspection","options":{"validations":[{"rule":"required"}]}}',
|
|
2273
2273
|
},
|
|
2274
2274
|
{
|
|
2275
|
-
id: uuid$
|
|
2275
|
+
id: uuid$l(),
|
|
2276
2276
|
name: 'safety-notes',
|
|
2277
2277
|
title: 'Safety Notes',
|
|
2278
2278
|
text: 'Safety Notes',
|
|
@@ -2289,7 +2289,7 @@ const assetCategoryMock = [
|
|
|
2289
2289
|
childrenCount: 0,
|
|
2290
2290
|
metaDataList: [
|
|
2291
2291
|
{
|
|
2292
|
-
id: uuid$
|
|
2292
|
+
id: uuid$l(),
|
|
2293
2293
|
name: 'license-plate',
|
|
2294
2294
|
title: 'License Plate',
|
|
2295
2295
|
text: 'License Plate',
|
|
@@ -2298,7 +2298,7 @@ const assetCategoryMock = [
|
|
|
2298
2298
|
interface: '{"type":"text-editor","path":"vehicle.licensePlate","options":{"validations":[{"rule":"required"}]}}',
|
|
2299
2299
|
},
|
|
2300
2300
|
{
|
|
2301
|
-
id: uuid$
|
|
2301
|
+
id: uuid$l(),
|
|
2302
2302
|
name: 'last-service',
|
|
2303
2303
|
title: 'Last Service Date',
|
|
2304
2304
|
text: 'Last Service Date',
|
|
@@ -2542,6 +2542,7 @@ const types = [
|
|
|
2542
2542
|
{ code: 'country', title: 'Country' },
|
|
2543
2543
|
{ code: 'state', title: 'State/Province' },
|
|
2544
2544
|
{ code: 'city', title: 'City' },
|
|
2545
|
+
{ code: 'territory', title: 'Territory' },
|
|
2545
2546
|
];
|
|
2546
2547
|
// Helper functions to return objects with code and title
|
|
2547
2548
|
const getValidType = (code) => {
|
|
@@ -2617,6 +2618,10 @@ const generateIds = () => {
|
|
|
2617
2618
|
DE_BAV_MUNICH: AXPDataGenerator.uuid(),
|
|
2618
2619
|
DE_NRW_COLOGNE: AXPDataGenerator.uuid(),
|
|
2619
2620
|
DE_BER_BERLIN: AXPDataGenerator.uuid(),
|
|
2621
|
+
// Territories (sales regions)
|
|
2622
|
+
TERRITORY_NA: AXPDataGenerator.uuid(),
|
|
2623
|
+
TERRITORY_EU: AXPDataGenerator.uuid(),
|
|
2624
|
+
TERRITORY_APAC: AXPDataGenerator.uuid(),
|
|
2620
2625
|
};
|
|
2621
2626
|
return ids;
|
|
2622
2627
|
};
|
|
@@ -3133,6 +3138,37 @@ const geographicRegionMock = [
|
|
|
3133
3138
|
hasChild: false,
|
|
3134
3139
|
isActive: true,
|
|
3135
3140
|
},
|
|
3141
|
+
// ===== TERRITORIES (Sales regions) =====
|
|
3142
|
+
{
|
|
3143
|
+
id: ids.TERRITORY_NA,
|
|
3144
|
+
title: 'North America',
|
|
3145
|
+
code: 'NA',
|
|
3146
|
+
type: getValidType('territory'),
|
|
3147
|
+
coordinates: '39.8283,-98.5795',
|
|
3148
|
+
timezone: getValidTimezone('America/New_York'),
|
|
3149
|
+
hasChild: false,
|
|
3150
|
+
isActive: true,
|
|
3151
|
+
},
|
|
3152
|
+
{
|
|
3153
|
+
id: ids.TERRITORY_EU,
|
|
3154
|
+
title: 'Europe',
|
|
3155
|
+
code: 'EU',
|
|
3156
|
+
type: getValidType('territory'),
|
|
3157
|
+
coordinates: '50.4501,30.5234',
|
|
3158
|
+
timezone: getValidTimezone('Europe/Berlin'),
|
|
3159
|
+
hasChild: false,
|
|
3160
|
+
isActive: true,
|
|
3161
|
+
},
|
|
3162
|
+
{
|
|
3163
|
+
id: ids.TERRITORY_APAC,
|
|
3164
|
+
title: 'APAC',
|
|
3165
|
+
code: 'APAC',
|
|
3166
|
+
type: getValidType('territory'),
|
|
3167
|
+
coordinates: '-25.2744,133.7751',
|
|
3168
|
+
timezone: getValidTimezone('Australia/Sydney'),
|
|
3169
|
+
hasChild: false,
|
|
3170
|
+
isActive: true,
|
|
3171
|
+
},
|
|
3136
3172
|
];
|
|
3137
3173
|
|
|
3138
3174
|
const locationTypeMock = [
|
|
@@ -3215,10 +3251,10 @@ const LASER_PLUMBING_TENANT_ID = AXPDataGenerator.uuid();
|
|
|
3215
3251
|
//#region ---- Imports ----
|
|
3216
3252
|
//#endregion
|
|
3217
3253
|
//#region ---- Mock Data ----
|
|
3218
|
-
const uuid$
|
|
3254
|
+
const uuid$k = AXPDataGenerator.uuid;
|
|
3219
3255
|
const mockRoleDefinitions = [
|
|
3220
3256
|
{
|
|
3221
|
-
id: uuid$
|
|
3257
|
+
id: uuid$k(),
|
|
3222
3258
|
name: 'root',
|
|
3223
3259
|
title: 'Super Administrator',
|
|
3224
3260
|
description: 'Full system access with all administrative privileges',
|
|
@@ -3271,7 +3307,7 @@ const mockRoleDefinitions = [
|
|
|
3271
3307
|
},
|
|
3272
3308
|
},
|
|
3273
3309
|
{
|
|
3274
|
-
id: uuid$
|
|
3310
|
+
id: uuid$k(),
|
|
3275
3311
|
name: 'platform-application-administrator',
|
|
3276
3312
|
title: 'Platform Application Administrator',
|
|
3277
3313
|
description: 'Full platform application access with all administrative privileges',
|
|
@@ -3291,7 +3327,7 @@ const mockRoleDefinitions = [
|
|
|
3291
3327
|
},
|
|
3292
3328
|
},
|
|
3293
3329
|
{
|
|
3294
|
-
id: uuid$
|
|
3330
|
+
id: uuid$k(),
|
|
3295
3331
|
name: 'admin',
|
|
3296
3332
|
title: 'Administrator',
|
|
3297
3333
|
description: 'Full system access with all administrative privileges',
|
|
@@ -3312,7 +3348,7 @@ const mockRoleDefinitions = [
|
|
|
3312
3348
|
},
|
|
3313
3349
|
},
|
|
3314
3350
|
{
|
|
3315
|
-
id: uuid$
|
|
3351
|
+
id: uuid$k(),
|
|
3316
3352
|
name: 'manager',
|
|
3317
3353
|
title: 'Manager',
|
|
3318
3354
|
description: 'Manages users and has access to most system features',
|
|
@@ -3330,7 +3366,7 @@ const mockRoleDefinitions = [
|
|
|
3330
3366
|
},
|
|
3331
3367
|
},
|
|
3332
3368
|
{
|
|
3333
|
-
id: uuid$
|
|
3369
|
+
id: uuid$k(),
|
|
3334
3370
|
name: 'user',
|
|
3335
3371
|
title: 'Regular User',
|
|
3336
3372
|
description: 'Standard user with basic system access',
|
|
@@ -3348,7 +3384,7 @@ const mockRoleDefinitions = [
|
|
|
3348
3384
|
},
|
|
3349
3385
|
},
|
|
3350
3386
|
{
|
|
3351
|
-
id: uuid$
|
|
3387
|
+
id: uuid$k(),
|
|
3352
3388
|
name: 'support',
|
|
3353
3389
|
title: 'Support Staff',
|
|
3354
3390
|
description: 'Customer support and ticket management access',
|
|
@@ -3366,7 +3402,7 @@ const mockRoleDefinitions = [
|
|
|
3366
3402
|
},
|
|
3367
3403
|
},
|
|
3368
3404
|
{
|
|
3369
|
-
id: uuid$
|
|
3405
|
+
id: uuid$k(),
|
|
3370
3406
|
name: 'hr',
|
|
3371
3407
|
title: 'Human Resources',
|
|
3372
3408
|
description: 'Access to HR-related features and user management',
|
|
@@ -3384,7 +3420,7 @@ const mockRoleDefinitions = [
|
|
|
3384
3420
|
},
|
|
3385
3421
|
},
|
|
3386
3422
|
{
|
|
3387
|
-
id: uuid$
|
|
3423
|
+
id: uuid$k(),
|
|
3388
3424
|
name: 'finance',
|
|
3389
3425
|
title: 'Finance',
|
|
3390
3426
|
description: 'Access to financial reports and invoicing features',
|
|
@@ -3402,7 +3438,7 @@ const mockRoleDefinitions = [
|
|
|
3402
3438
|
},
|
|
3403
3439
|
},
|
|
3404
3440
|
{
|
|
3405
|
-
id: uuid$
|
|
3441
|
+
id: uuid$k(),
|
|
3406
3442
|
name: 'dev',
|
|
3407
3443
|
title: 'Developer',
|
|
3408
3444
|
description: 'Technical access to development and debugging features',
|
|
@@ -3424,7 +3460,7 @@ const mockRoleDefinitions = [
|
|
|
3424
3460
|
},
|
|
3425
3461
|
},
|
|
3426
3462
|
{
|
|
3427
|
-
id: uuid$
|
|
3463
|
+
id: uuid$k(),
|
|
3428
3464
|
name: 'account-holder',
|
|
3429
3465
|
title: 'Account Holder',
|
|
3430
3466
|
description: 'Primary account owner with full tenant management privileges',
|
|
@@ -3444,7 +3480,7 @@ const mockRoleDefinitions = [
|
|
|
3444
3480
|
},
|
|
3445
3481
|
},
|
|
3446
3482
|
{
|
|
3447
|
-
id: uuid$
|
|
3483
|
+
id: uuid$k(),
|
|
3448
3484
|
name: 'tenant-administrator',
|
|
3449
3485
|
title: 'Tenant Administrator',
|
|
3450
3486
|
description: 'Tenant-level administrator with full CRUD access to users and roles',
|
|
@@ -7117,7 +7153,7 @@ function generateEmploymentType() {
|
|
|
7117
7153
|
}
|
|
7118
7154
|
const EMPLOYMENT_TYPES_MOCK = generateEmploymentType();
|
|
7119
7155
|
|
|
7120
|
-
const uuid$
|
|
7156
|
+
const uuid$j = AXPDataGenerator.uuid;
|
|
7121
7157
|
// Helper function to get employee by ID
|
|
7122
7158
|
function findEmployeeById(employeeId) {
|
|
7123
7159
|
return EMPLOYEES_MOCK.find((emp) => emp.id === employeeId);
|
|
@@ -7135,7 +7171,7 @@ function findPersonByPersonId(personId) {
|
|
|
7135
7171
|
}
|
|
7136
7172
|
const EMPLOYEES_MOCK = [
|
|
7137
7173
|
{
|
|
7138
|
-
id: uuid$
|
|
7174
|
+
id: uuid$j(),
|
|
7139
7175
|
userId: findUserByPersonId(personNaturalIds.sarahJohnson)?.id || '',
|
|
7140
7176
|
personId: personNaturalIds.sarahJohnson,
|
|
7141
7177
|
person: findPersonByPersonId(personNaturalIds.sarahJohnson),
|
|
@@ -7151,7 +7187,7 @@ const EMPLOYEES_MOCK = [
|
|
|
7151
7187
|
imageId: [],
|
|
7152
7188
|
},
|
|
7153
7189
|
{
|
|
7154
|
-
id: uuid$
|
|
7190
|
+
id: uuid$j(),
|
|
7155
7191
|
userId: findUserByPersonId(personNaturalIds.mikeChen)?.id || '',
|
|
7156
7192
|
personId: personNaturalIds.mikeChen,
|
|
7157
7193
|
person: findPersonByPersonId(personNaturalIds.mikeChen),
|
|
@@ -7167,7 +7203,7 @@ const EMPLOYEES_MOCK = [
|
|
|
7167
7203
|
imageId: [],
|
|
7168
7204
|
},
|
|
7169
7205
|
{
|
|
7170
|
-
id: uuid$
|
|
7206
|
+
id: uuid$j(),
|
|
7171
7207
|
userId: findUserByPersonId(personNaturalIds.emilyRodriguez)?.id || '',
|
|
7172
7208
|
personId: personNaturalIds.emilyRodriguez,
|
|
7173
7209
|
person: findPersonByPersonId(personNaturalIds.emilyRodriguez),
|
|
@@ -7183,7 +7219,7 @@ const EMPLOYEES_MOCK = [
|
|
|
7183
7219
|
imageId: [],
|
|
7184
7220
|
},
|
|
7185
7221
|
{
|
|
7186
|
-
id: uuid$
|
|
7222
|
+
id: uuid$j(),
|
|
7187
7223
|
userId: findUserByPersonId(personNaturalIds.davidThompson)?.id || '',
|
|
7188
7224
|
personId: personNaturalIds.davidThompson,
|
|
7189
7225
|
person: findPersonByPersonId(personNaturalIds.davidThompson),
|
|
@@ -7199,7 +7235,7 @@ const EMPLOYEES_MOCK = [
|
|
|
7199
7235
|
imageId: [],
|
|
7200
7236
|
},
|
|
7201
7237
|
{
|
|
7202
|
-
id: uuid$
|
|
7238
|
+
id: uuid$j(),
|
|
7203
7239
|
userId: findUserByPersonId(personNaturalIds.lisaWang)?.id || '',
|
|
7204
7240
|
personId: personNaturalIds.lisaWang,
|
|
7205
7241
|
person: findPersonByPersonId(personNaturalIds.lisaWang),
|
|
@@ -7215,7 +7251,7 @@ const EMPLOYEES_MOCK = [
|
|
|
7215
7251
|
imageId: [],
|
|
7216
7252
|
},
|
|
7217
7253
|
{
|
|
7218
|
-
id: uuid$
|
|
7254
|
+
id: uuid$j(),
|
|
7219
7255
|
userId: findUserByPersonId(personNaturalIds.johnSmith)?.id || '',
|
|
7220
7256
|
personId: personNaturalIds.johnSmith,
|
|
7221
7257
|
person: findPersonByPersonId(personNaturalIds.johnSmith),
|
|
@@ -7231,7 +7267,7 @@ const EMPLOYEES_MOCK = [
|
|
|
7231
7267
|
imageId: [],
|
|
7232
7268
|
},
|
|
7233
7269
|
{
|
|
7234
|
-
id: uuid$
|
|
7270
|
+
id: uuid$j(),
|
|
7235
7271
|
userId: findUserByPersonId(personNaturalIds.jenniferLopez)?.id || '',
|
|
7236
7272
|
personId: personNaturalIds.jenniferLopez,
|
|
7237
7273
|
person: findPersonByPersonId(personNaturalIds.jenniferLopez),
|
|
@@ -7247,7 +7283,7 @@ const EMPLOYEES_MOCK = [
|
|
|
7247
7283
|
imageId: [],
|
|
7248
7284
|
},
|
|
7249
7285
|
{
|
|
7250
|
-
id: uuid$
|
|
7286
|
+
id: uuid$j(),
|
|
7251
7287
|
userId: findUserByPersonId(personNaturalIds.robertWilson)?.id || '',
|
|
7252
7288
|
personId: personNaturalIds.robertWilson,
|
|
7253
7289
|
person: findPersonByPersonId(personNaturalIds.robertWilson),
|
|
@@ -7263,7 +7299,7 @@ const EMPLOYEES_MOCK = [
|
|
|
7263
7299
|
imageId: [],
|
|
7264
7300
|
},
|
|
7265
7301
|
{
|
|
7266
|
-
id: uuid$
|
|
7302
|
+
id: uuid$j(),
|
|
7267
7303
|
userId: findUserByPersonId(personNaturalIds.mariaGarcia)?.id || '',
|
|
7268
7304
|
personId: personNaturalIds.mariaGarcia,
|
|
7269
7305
|
person: findPersonByPersonId(personNaturalIds.mariaGarcia),
|
|
@@ -7279,7 +7315,7 @@ const EMPLOYEES_MOCK = [
|
|
|
7279
7315
|
imageId: [],
|
|
7280
7316
|
},
|
|
7281
7317
|
{
|
|
7282
|
-
id: uuid$
|
|
7318
|
+
id: uuid$j(),
|
|
7283
7319
|
userId: findUserByPersonId(personNaturalIds.carlosRodriguez)?.id || '',
|
|
7284
7320
|
personId: personNaturalIds.carlosRodriguez,
|
|
7285
7321
|
person: findPersonByPersonId(personNaturalIds.carlosRodriguez),
|
|
@@ -7295,7 +7331,7 @@ const EMPLOYEES_MOCK = [
|
|
|
7295
7331
|
imageId: [],
|
|
7296
7332
|
},
|
|
7297
7333
|
{
|
|
7298
|
-
id: uuid$
|
|
7334
|
+
id: uuid$j(),
|
|
7299
7335
|
userId: findUserByPersonId(personNaturalIds.alexandraKim)?.id || '',
|
|
7300
7336
|
personId: personNaturalIds.alexandraKim,
|
|
7301
7337
|
person: findPersonByPersonId(personNaturalIds.alexandraKim),
|
|
@@ -7311,7 +7347,7 @@ const EMPLOYEES_MOCK = [
|
|
|
7311
7347
|
imageId: [],
|
|
7312
7348
|
},
|
|
7313
7349
|
{
|
|
7314
|
-
id: uuid$
|
|
7350
|
+
id: uuid$j(),
|
|
7315
7351
|
userId: findUserByPersonId(personNaturalIds.marcusSchmidt)?.id || '',
|
|
7316
7352
|
personId: personNaturalIds.marcusSchmidt,
|
|
7317
7353
|
person: findPersonByPersonId(personNaturalIds.marcusSchmidt),
|
|
@@ -7327,7 +7363,7 @@ const EMPLOYEES_MOCK = [
|
|
|
7327
7363
|
imageId: [],
|
|
7328
7364
|
},
|
|
7329
7365
|
{
|
|
7330
|
-
id: uuid$
|
|
7366
|
+
id: uuid$j(),
|
|
7331
7367
|
userId: findUserByPersonId(personNaturalIds.fatimaAlZahra)?.id || '',
|
|
7332
7368
|
personId: personNaturalIds.fatimaAlZahra,
|
|
7333
7369
|
person: findPersonByPersonId(personNaturalIds.fatimaAlZahra),
|
|
@@ -7343,7 +7379,7 @@ const EMPLOYEES_MOCK = [
|
|
|
7343
7379
|
imageId: [],
|
|
7344
7380
|
},
|
|
7345
7381
|
{
|
|
7346
|
-
id: uuid$
|
|
7382
|
+
id: uuid$j(),
|
|
7347
7383
|
userId: findUserByPersonId(personNaturalIds.jamesOConnor)?.id || '',
|
|
7348
7384
|
personId: personNaturalIds.jamesOConnor,
|
|
7349
7385
|
person: findPersonByPersonId(personNaturalIds.jamesOConnor),
|
|
@@ -7359,7 +7395,7 @@ const EMPLOYEES_MOCK = [
|
|
|
7359
7395
|
imageId: [],
|
|
7360
7396
|
},
|
|
7361
7397
|
{
|
|
7362
|
-
id: uuid$
|
|
7398
|
+
id: uuid$j(),
|
|
7363
7399
|
userId: findUserByPersonId(personNaturalIds.yukiTanaka)?.id || '',
|
|
7364
7400
|
personId: personNaturalIds.yukiTanaka,
|
|
7365
7401
|
person: findPersonByPersonId(personNaturalIds.yukiTanaka),
|
|
@@ -7375,7 +7411,7 @@ const EMPLOYEES_MOCK = [
|
|
|
7375
7411
|
imageId: [],
|
|
7376
7412
|
},
|
|
7377
7413
|
{
|
|
7378
|
-
id: uuid$
|
|
7414
|
+
id: uuid$j(),
|
|
7379
7415
|
userId: findUserByPersonId(personNaturalIds.root)?.id || '',
|
|
7380
7416
|
personId: personNaturalIds.root,
|
|
7381
7417
|
person: findPersonByPersonId(personNaturalIds.root),
|
|
@@ -7391,7 +7427,7 @@ const EMPLOYEES_MOCK = [
|
|
|
7391
7427
|
imageId: [],
|
|
7392
7428
|
},
|
|
7393
7429
|
{
|
|
7394
|
-
id: uuid$
|
|
7430
|
+
id: uuid$j(),
|
|
7395
7431
|
userId: findUserByPersonId(personNaturalIds.admin)?.id || '',
|
|
7396
7432
|
personId: personNaturalIds.admin,
|
|
7397
7433
|
person: findPersonByPersonId(personNaturalIds.admin),
|
|
@@ -7482,7 +7518,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7482
7518
|
type: Injectable
|
|
7483
7519
|
}] });
|
|
7484
7520
|
|
|
7485
|
-
const uuid$
|
|
7521
|
+
const uuid$i = AXPDataGenerator.uuid;
|
|
7486
7522
|
const LEAVE_REQUEST_STATUS_DEFINITIONS = [
|
|
7487
7523
|
AXPSystemStatuses.Pending,
|
|
7488
7524
|
AXPSystemStatuses.Approved,
|
|
@@ -7503,7 +7539,7 @@ function buildLeaveRequests() {
|
|
|
7503
7539
|
end.setDate(start.getDate() + duration);
|
|
7504
7540
|
const statusDefinition = LEAVE_REQUEST_STATUS_DEFINITIONS[Math.floor(Math.random() * LEAVE_REQUEST_STATUS_DEFINITIONS.length)];
|
|
7505
7541
|
results.push({
|
|
7506
|
-
id: uuid$
|
|
7542
|
+
id: uuid$i(),
|
|
7507
7543
|
employeeId: employee.id,
|
|
7508
7544
|
employee,
|
|
7509
7545
|
leaveTypeId: leaveType.id,
|
|
@@ -7744,14 +7780,14 @@ function generatePositions() {
|
|
|
7744
7780
|
}
|
|
7745
7781
|
const POSITIONS_MOCK = generatePositions();
|
|
7746
7782
|
|
|
7747
|
-
const uuid$
|
|
7783
|
+
const uuid$h = AXPDataGenerator.uuid;
|
|
7748
7784
|
const BUSINESS_UNIT_TYPES_MOCK = [
|
|
7749
|
-
{ id: uuid$
|
|
7750
|
-
{ id: uuid$
|
|
7751
|
-
{ id: uuid$
|
|
7785
|
+
{ id: uuid$h(), title: 'Division', name: 'division', isLocationBased: true },
|
|
7786
|
+
{ id: uuid$h(), title: 'Department', name: 'department', isLocationBased: false },
|
|
7787
|
+
{ id: uuid$h(), title: 'Branch', name: 'branch', isLocationBased: true },
|
|
7752
7788
|
];
|
|
7753
7789
|
|
|
7754
|
-
const uuid$
|
|
7790
|
+
const uuid$g = AXPDataGenerator.uuid;
|
|
7755
7791
|
const TYPE = {
|
|
7756
7792
|
division: BUSINESS_UNIT_TYPES_MOCK.find(t => t.name === 'division'),
|
|
7757
7793
|
department: BUSINESS_UNIT_TYPES_MOCK.find(t => t.name === 'department'),
|
|
@@ -7784,7 +7820,7 @@ const BUSINESS_UNITS_MOCK = (() => {
|
|
|
7784
7820
|
}
|
|
7785
7821
|
// Divisions (top-level)
|
|
7786
7822
|
const divisionOps = {
|
|
7787
|
-
id: uuid$
|
|
7823
|
+
id: uuid$g(),
|
|
7788
7824
|
title: 'Operations Division',
|
|
7789
7825
|
description: 'Core operations across plants',
|
|
7790
7826
|
typeId: TYPE.division.id,
|
|
@@ -7800,7 +7836,7 @@ const BUSINESS_UNITS_MOCK = (() => {
|
|
|
7800
7836
|
...positionsByTitles(['Maintenance Engineer', 'Maintenance Technician', 'Quality Engineer', 'Quality Inspector', 'Production Supervisor', 'HSE Manager'])
|
|
7801
7837
|
};
|
|
7802
7838
|
const divisionSales = {
|
|
7803
|
-
id: uuid$
|
|
7839
|
+
id: uuid$g(),
|
|
7804
7840
|
title: 'Sales Division',
|
|
7805
7841
|
description: 'Global sales organization',
|
|
7806
7842
|
typeId: TYPE.division.id,
|
|
@@ -7816,7 +7852,7 @@ const BUSINESS_UNITS_MOCK = (() => {
|
|
|
7816
7852
|
...positionsByTitles(['Sales Associate', 'Account Executive', 'Sales Manager', 'VP of Sales'])
|
|
7817
7853
|
};
|
|
7818
7854
|
const divisionEngineering = {
|
|
7819
|
-
id: uuid$
|
|
7855
|
+
id: uuid$g(),
|
|
7820
7856
|
title: 'Engineering Division',
|
|
7821
7857
|
description: 'Product and platform engineering',
|
|
7822
7858
|
typeId: TYPE.division.id,
|
|
@@ -7834,7 +7870,7 @@ const BUSINESS_UNITS_MOCK = (() => {
|
|
|
7834
7870
|
items.push(divisionOps, divisionSales, divisionEngineering);
|
|
7835
7871
|
// Departments under Operations
|
|
7836
7872
|
const depHSE = {
|
|
7837
|
-
id: uuid$
|
|
7873
|
+
id: uuid$g(),
|
|
7838
7874
|
title: 'Health, Safety & Environment',
|
|
7839
7875
|
description: 'WHS/OHS',
|
|
7840
7876
|
typeId: TYPE.department.id,
|
|
@@ -7844,7 +7880,7 @@ const BUSINESS_UNITS_MOCK = (() => {
|
|
|
7844
7880
|
...positionsByTitles(['HSE Officer', 'Safety Officer', 'Environmental Specialist', 'HSE Manager'])
|
|
7845
7881
|
};
|
|
7846
7882
|
const depQuality = {
|
|
7847
|
-
id: uuid$
|
|
7883
|
+
id: uuid$g(),
|
|
7848
7884
|
title: 'Quality Assurance',
|
|
7849
7885
|
description: 'QA and compliance',
|
|
7850
7886
|
typeId: TYPE.department.id,
|
|
@@ -7854,7 +7890,7 @@ const BUSINESS_UNITS_MOCK = (() => {
|
|
|
7854
7890
|
...positionsByTitles(['QA Analyst', 'QA Engineer', 'Senior QA Engineer', 'QA Manager', 'Quality Inspector', 'Quality Engineer'])
|
|
7855
7891
|
};
|
|
7856
7892
|
const depMaintenance = {
|
|
7857
|
-
id: uuid$
|
|
7893
|
+
id: uuid$g(),
|
|
7858
7894
|
title: 'Maintenance',
|
|
7859
7895
|
description: 'Asset reliability and maintenance',
|
|
7860
7896
|
typeId: TYPE.department.id,
|
|
@@ -7866,7 +7902,7 @@ const BUSINESS_UNITS_MOCK = (() => {
|
|
|
7866
7902
|
items.push(depHSE, depQuality, depMaintenance);
|
|
7867
7903
|
// Departments under Engineering
|
|
7868
7904
|
const depPlatform = {
|
|
7869
|
-
id: uuid$
|
|
7905
|
+
id: uuid$g(),
|
|
7870
7906
|
title: 'Platform Engineering',
|
|
7871
7907
|
description: 'Core platform teams',
|
|
7872
7908
|
typeId: TYPE.department.id,
|
|
@@ -7876,7 +7912,7 @@ const BUSINESS_UNITS_MOCK = (() => {
|
|
|
7876
7912
|
...positionsByTitles(['DevOps Engineer', 'Senior DevOps Engineer', 'Engineering Team Lead', 'Director of DevOps'])
|
|
7877
7913
|
};
|
|
7878
7914
|
const depProduct = {
|
|
7879
|
-
id: uuid$
|
|
7915
|
+
id: uuid$g(),
|
|
7880
7916
|
title: 'Product Engineering',
|
|
7881
7917
|
description: 'Product squads',
|
|
7882
7918
|
typeId: TYPE.department.id,
|
|
@@ -7888,7 +7924,7 @@ const BUSINESS_UNITS_MOCK = (() => {
|
|
|
7888
7924
|
items.push(depPlatform, depProduct);
|
|
7889
7925
|
// Branches (location-based) under cities
|
|
7890
7926
|
const branchLA = {
|
|
7891
|
-
id: uuid$
|
|
7927
|
+
id: uuid$g(),
|
|
7892
7928
|
title: 'Los Angeles Branch',
|
|
7893
7929
|
description: 'US West Region',
|
|
7894
7930
|
typeId: TYPE.branch.id,
|
|
@@ -7904,7 +7940,7 @@ const BUSINESS_UNITS_MOCK = (() => {
|
|
|
7904
7940
|
...positionsByTitles(['Sales Associate', 'Account Executive'])
|
|
7905
7941
|
};
|
|
7906
7942
|
const branchSF = {
|
|
7907
|
-
id: uuid$
|
|
7943
|
+
id: uuid$g(),
|
|
7908
7944
|
title: 'San Francisco Branch',
|
|
7909
7945
|
description: 'Bay Area',
|
|
7910
7946
|
typeId: TYPE.branch.id,
|
|
@@ -7920,7 +7956,7 @@ const BUSINESS_UNITS_MOCK = (() => {
|
|
|
7920
7956
|
...positionsByTitles(['Sales Associate', 'Account Executive'])
|
|
7921
7957
|
};
|
|
7922
7958
|
const branchSydney = {
|
|
7923
|
-
id: uuid$
|
|
7959
|
+
id: uuid$g(),
|
|
7924
7960
|
title: 'Sydney Branch',
|
|
7925
7961
|
description: 'ANZ Region',
|
|
7926
7962
|
typeId: TYPE.branch.id,
|
|
@@ -7939,7 +7975,7 @@ const BUSINESS_UNITS_MOCK = (() => {
|
|
|
7939
7975
|
return items;
|
|
7940
7976
|
})();
|
|
7941
7977
|
|
|
7942
|
-
const uuid$
|
|
7978
|
+
const uuid$f = AXPDataGenerator.uuid;
|
|
7943
7979
|
function pick(arr) { return arr[Math.floor(Math.random() * arr.length)]; }
|
|
7944
7980
|
const POSITION_ASSIGNMENTS_MOCK = (() => {
|
|
7945
7981
|
const rows = [];
|
|
@@ -7961,7 +7997,7 @@ const POSITION_ASSIGNMENTS_MOCK = (() => {
|
|
|
7961
7997
|
: managerPositions.length ? managerPositions : POSITIONS_MOCK);
|
|
7962
7998
|
const position = pick(candidatePositions);
|
|
7963
7999
|
rows.push({
|
|
7964
|
-
id: uuid$
|
|
8000
|
+
id: uuid$f(),
|
|
7965
8001
|
employeeId: candidate.id,
|
|
7966
8002
|
employee: candidate,
|
|
7967
8003
|
positionId: position.id,
|
|
@@ -8019,7 +8055,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8019
8055
|
//#region ---- Module Export ----
|
|
8020
8056
|
//#endregion
|
|
8021
8057
|
|
|
8022
|
-
const uuid$
|
|
8058
|
+
const uuid$e = AXPDataGenerator.uuid;
|
|
8023
8059
|
const getCategoryById = (id) => assetCategoryMock.find((category) => category.id === id);
|
|
8024
8060
|
const getEmployeeByPersonId = (personId) => EMPLOYEES_MOCK.find((employee) => employee.personId === personId);
|
|
8025
8061
|
const getLocationById = (id) => locationMock.find((location) => location.id === id);
|
|
@@ -8099,7 +8135,7 @@ const assetMock = assetEntries.map((entry) => {
|
|
|
8099
8135
|
const employee = getEmployeeByPersonId(entry.ownerPersonId);
|
|
8100
8136
|
const location = getLocationByCode(entry.locationCode);
|
|
8101
8137
|
return {
|
|
8102
|
-
id: uuid$
|
|
8138
|
+
id: uuid$e(),
|
|
8103
8139
|
code: entry.code,
|
|
8104
8140
|
title: entry.title,
|
|
8105
8141
|
categoryIds: entry.categoryId ? [entry.categoryId] : undefined,
|
|
@@ -9699,6 +9735,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
9699
9735
|
type: Injectable
|
|
9700
9736
|
}] });
|
|
9701
9737
|
|
|
9738
|
+
const lifecycleStageMocks = [
|
|
9739
|
+
{ id: AXPDataGenerator.uuid(), title: 'Prospect', order: 1, description: 'Potential customer' },
|
|
9740
|
+
{ id: AXPDataGenerator.uuid(), title: 'Onboarding', order: 2, description: 'New customer onboarding' },
|
|
9741
|
+
{ id: AXPDataGenerator.uuid(), title: 'Active', order: 3, description: 'Active customer' },
|
|
9742
|
+
{ id: AXPDataGenerator.uuid(), title: 'Churn Risk', order: 4, description: 'At risk of churning' },
|
|
9743
|
+
{ id: AXPDataGenerator.uuid(), title: 'Churned', order: 5, description: 'Churned customer' },
|
|
9744
|
+
];
|
|
9745
|
+
const lifecycleStageIds = {
|
|
9746
|
+
prospect: lifecycleStageMocks[0].id,
|
|
9747
|
+
onboarding: lifecycleStageMocks[1].id,
|
|
9748
|
+
active: lifecycleStageMocks[2].id,
|
|
9749
|
+
churnRisk: lifecycleStageMocks[3].id,
|
|
9750
|
+
churned: lifecycleStageMocks[4].id,
|
|
9751
|
+
};
|
|
9752
|
+
|
|
9753
|
+
class AXCLifecycleStageSeeder {
|
|
9754
|
+
constructor() {
|
|
9755
|
+
this.storageService = inject(AXPEntityStorageService);
|
|
9756
|
+
}
|
|
9757
|
+
async seed() {
|
|
9758
|
+
await this.storageService.initial(`${RootConfig$6.module.name}.${RootConfig$6.entities.lifecycleStage.name}`, lifecycleStageMocks);
|
|
9759
|
+
}
|
|
9760
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCLifecycleStageSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
9761
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCLifecycleStageSeeder }); }
|
|
9762
|
+
}
|
|
9763
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCLifecycleStageSeeder, decorators: [{
|
|
9764
|
+
type: Injectable
|
|
9765
|
+
}] });
|
|
9766
|
+
|
|
9702
9767
|
class AXCBusinessCoreMockModule {
|
|
9703
9768
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCBusinessCoreMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9704
9769
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: AXCBusinessCoreMockModule }); }
|
|
@@ -9738,6 +9803,11 @@ class AXCBusinessCoreMockModule {
|
|
|
9738
9803
|
useClass: AXCPartySegmentSeeder,
|
|
9739
9804
|
multi: true,
|
|
9740
9805
|
},
|
|
9806
|
+
{
|
|
9807
|
+
provide: AXP_DATA_SEEDER_TOKEN,
|
|
9808
|
+
useClass: AXCLifecycleStageSeeder,
|
|
9809
|
+
multi: true,
|
|
9810
|
+
},
|
|
9741
9811
|
] }); }
|
|
9742
9812
|
}
|
|
9743
9813
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCBusinessCoreMockModule, decorators: [{
|
|
@@ -9779,6 +9849,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
9779
9849
|
useClass: AXCPartySegmentSeeder,
|
|
9780
9850
|
multi: true,
|
|
9781
9851
|
},
|
|
9852
|
+
{
|
|
9853
|
+
provide: AXP_DATA_SEEDER_TOKEN,
|
|
9854
|
+
useClass: AXCLifecycleStageSeeder,
|
|
9855
|
+
multi: true,
|
|
9856
|
+
},
|
|
9782
9857
|
],
|
|
9783
9858
|
}]
|
|
9784
9859
|
}] });
|
|
@@ -13394,13 +13469,13 @@ function toSummary(c) {
|
|
|
13394
13469
|
}
|
|
13395
13470
|
//#endregion
|
|
13396
13471
|
|
|
13397
|
-
const uuid$
|
|
13472
|
+
const uuid$d = AXPDataGenerator.uuid;
|
|
13398
13473
|
const emergencyServiceCategoryIds = {
|
|
13399
|
-
emergency: uuid$
|
|
13400
|
-
health: uuid$
|
|
13401
|
-
safety: uuid$
|
|
13402
|
-
utilities: uuid$
|
|
13403
|
-
hotlines: uuid$
|
|
13474
|
+
emergency: uuid$d(),
|
|
13475
|
+
health: uuid$d(),
|
|
13476
|
+
safety: uuid$d(),
|
|
13477
|
+
utilities: uuid$d(),
|
|
13478
|
+
hotlines: uuid$d(),
|
|
13404
13479
|
};
|
|
13405
13480
|
const emergencyServiceCategoryMocks = [
|
|
13406
13481
|
{
|
|
@@ -14412,7 +14487,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
14412
14487
|
}]
|
|
14413
14488
|
}] });
|
|
14414
14489
|
|
|
14415
|
-
const uuid$
|
|
14490
|
+
const uuid$c = AXPDataGenerator.uuid;
|
|
14416
14491
|
function findOrganizationPersonMinimal$1(id) {
|
|
14417
14492
|
const org = personMock.find((p) => p.id === id && p.typeId === 'legal');
|
|
14418
14493
|
if (!org)
|
|
@@ -14421,7 +14496,7 @@ function findOrganizationPersonMinimal$1(id) {
|
|
|
14421
14496
|
}
|
|
14422
14497
|
const CUSTOMERS_MOCK = [
|
|
14423
14498
|
{
|
|
14424
|
-
id: uuid$
|
|
14499
|
+
id: uuid$c(),
|
|
14425
14500
|
customerCode: 'CUST-1001',
|
|
14426
14501
|
personId: personLegalIds.techSolutionsInc,
|
|
14427
14502
|
person: findOrganizationPersonMinimal$1(personLegalIds.techSolutionsInc),
|
|
@@ -14429,6 +14504,10 @@ const CUSTOMERS_MOCK = [
|
|
|
14429
14504
|
partyType: partyTypeMocks[7],
|
|
14430
14505
|
segmentId: partySegmentIds.b2b,
|
|
14431
14506
|
partySegment: partySegmentMocks[5],
|
|
14507
|
+
lifecycleStageId: lifecycleStageIds.active,
|
|
14508
|
+
lifecycleStage: lifecycleStageMocks[2],
|
|
14509
|
+
territoryId: geographicRegionIds.TERRITORY_NA,
|
|
14510
|
+
territory: { id: geographicRegionIds.TERRITORY_NA, title: 'North America' },
|
|
14432
14511
|
status: 'active',
|
|
14433
14512
|
since: new Date('2022-01-10'),
|
|
14434
14513
|
isVip: true,
|
|
@@ -14436,7 +14515,7 @@ const CUSTOMERS_MOCK = [
|
|
|
14436
14515
|
notes: 'Key enterprise client.'
|
|
14437
14516
|
},
|
|
14438
14517
|
{
|
|
14439
|
-
id: uuid$
|
|
14518
|
+
id: uuid$c(),
|
|
14440
14519
|
customerCode: 'CUST-1002',
|
|
14441
14520
|
personId: personLegalIds.europeanManufacturingConsortium,
|
|
14442
14521
|
person: findOrganizationPersonMinimal$1(personLegalIds.europeanManufacturingConsortium),
|
|
@@ -14444,6 +14523,10 @@ const CUSTOMERS_MOCK = [
|
|
|
14444
14523
|
partyType: partyTypeMocks[8],
|
|
14445
14524
|
segmentId: partySegmentIds.smb,
|
|
14446
14525
|
partySegment: partySegmentMocks[7],
|
|
14526
|
+
lifecycleStageId: lifecycleStageIds.active,
|
|
14527
|
+
lifecycleStage: lifecycleStageMocks[2],
|
|
14528
|
+
territoryId: geographicRegionIds.TERRITORY_EU,
|
|
14529
|
+
territory: { id: geographicRegionIds.TERRITORY_EU, title: 'Europe' },
|
|
14447
14530
|
status: 'active',
|
|
14448
14531
|
since: new Date('2023-05-20'),
|
|
14449
14532
|
isVip: false,
|
|
@@ -14451,7 +14534,7 @@ const CUSTOMERS_MOCK = [
|
|
|
14451
14534
|
notes: 'Growing SMB account.'
|
|
14452
14535
|
},
|
|
14453
14536
|
{
|
|
14454
|
-
id: uuid$
|
|
14537
|
+
id: uuid$c(),
|
|
14455
14538
|
customerCode: 'CUST-1003',
|
|
14456
14539
|
personId: personLegalIds.innovativeSoftwareSolutions,
|
|
14457
14540
|
person: findOrganizationPersonMinimal$1(personLegalIds.innovativeSoftwareSolutions),
|
|
@@ -14459,6 +14542,10 @@ const CUSTOMERS_MOCK = [
|
|
|
14459
14542
|
partyType: partyTypeMocks[7],
|
|
14460
14543
|
segmentId: partySegmentIds.b2b,
|
|
14461
14544
|
partySegment: partySegmentMocks[5],
|
|
14545
|
+
lifecycleStageId: lifecycleStageIds.active,
|
|
14546
|
+
lifecycleStage: lifecycleStageMocks[2],
|
|
14547
|
+
territoryId: geographicRegionIds.TERRITORY_NA,
|
|
14548
|
+
territory: { id: geographicRegionIds.TERRITORY_NA, title: 'North America' },
|
|
14462
14549
|
status: 'active',
|
|
14463
14550
|
since: new Date('2023-03-15'),
|
|
14464
14551
|
isVip: true,
|
|
@@ -14466,7 +14553,7 @@ const CUSTOMERS_MOCK = [
|
|
|
14466
14553
|
notes: 'Strategic technology partner with high growth potential.'
|
|
14467
14554
|
},
|
|
14468
14555
|
{
|
|
14469
|
-
id: uuid$
|
|
14556
|
+
id: uuid$c(),
|
|
14470
14557
|
customerCode: 'CUST-1004',
|
|
14471
14558
|
personId: personLegalIds.globalLogisticsPartners,
|
|
14472
14559
|
person: findOrganizationPersonMinimal$1(personLegalIds.globalLogisticsPartners),
|
|
@@ -14474,6 +14561,10 @@ const CUSTOMERS_MOCK = [
|
|
|
14474
14561
|
partyType: partyTypeMocks[8],
|
|
14475
14562
|
segmentId: partySegmentIds.b2b,
|
|
14476
14563
|
partySegment: partySegmentMocks[5],
|
|
14564
|
+
lifecycleStageId: lifecycleStageIds.active,
|
|
14565
|
+
lifecycleStage: lifecycleStageMocks[2],
|
|
14566
|
+
territoryId: geographicRegionIds.TERRITORY_NA,
|
|
14567
|
+
territory: { id: geographicRegionIds.TERRITORY_NA, title: 'North America' },
|
|
14477
14568
|
status: 'active',
|
|
14478
14569
|
since: new Date('2023-05-10'),
|
|
14479
14570
|
isVip: false,
|
|
@@ -14481,7 +14572,7 @@ const CUSTOMERS_MOCK = [
|
|
|
14481
14572
|
notes: 'International logistics company with expanding operations.'
|
|
14482
14573
|
},
|
|
14483
14574
|
{
|
|
14484
|
-
id: uuid$
|
|
14575
|
+
id: uuid$c(),
|
|
14485
14576
|
customerCode: 'CUST-1005',
|
|
14486
14577
|
personId: personLegalIds.sustainableEnergyCorpLtd,
|
|
14487
14578
|
person: findOrganizationPersonMinimal$1(personLegalIds.sustainableEnergyCorpLtd),
|
|
@@ -14489,6 +14580,10 @@ const CUSTOMERS_MOCK = [
|
|
|
14489
14580
|
partyType: partyTypeMocks[7],
|
|
14490
14581
|
segmentId: partySegmentIds.b2b,
|
|
14491
14582
|
partySegment: partySegmentMocks[5],
|
|
14583
|
+
lifecycleStageId: lifecycleStageIds.active,
|
|
14584
|
+
lifecycleStage: lifecycleStageMocks[2],
|
|
14585
|
+
territoryId: geographicRegionIds.TERRITORY_NA,
|
|
14586
|
+
territory: { id: geographicRegionIds.TERRITORY_NA, title: 'North America' },
|
|
14492
14587
|
status: 'active',
|
|
14493
14588
|
since: new Date('2023-08-25'),
|
|
14494
14589
|
isVip: true,
|
|
@@ -14496,7 +14591,7 @@ const CUSTOMERS_MOCK = [
|
|
|
14496
14591
|
notes: 'Green energy leader with significant investment in sustainable solutions.'
|
|
14497
14592
|
},
|
|
14498
14593
|
{
|
|
14499
|
-
id: uuid$
|
|
14594
|
+
id: uuid$c(),
|
|
14500
14595
|
customerCode: 'CUST-1006',
|
|
14501
14596
|
personId: personLegalIds.digitalMarketingAgencyGroup,
|
|
14502
14597
|
person: findOrganizationPersonMinimal$1(personLegalIds.digitalMarketingAgencyGroup),
|
|
@@ -14504,6 +14599,10 @@ const CUSTOMERS_MOCK = [
|
|
|
14504
14599
|
partyType: partyTypeMocks[6],
|
|
14505
14600
|
segmentId: partySegmentIds.smb,
|
|
14506
14601
|
partySegment: partySegmentMocks[7],
|
|
14602
|
+
lifecycleStageId: lifecycleStageIds.prospect,
|
|
14603
|
+
lifecycleStage: lifecycleStageMocks[0],
|
|
14604
|
+
territoryId: geographicRegionIds.TERRITORY_APAC,
|
|
14605
|
+
territory: { id: geographicRegionIds.TERRITORY_APAC, title: 'APAC' },
|
|
14507
14606
|
status: 'active',
|
|
14508
14607
|
since: new Date('2023-11-12'),
|
|
14509
14608
|
isVip: false,
|
|
@@ -14511,7 +14610,7 @@ const CUSTOMERS_MOCK = [
|
|
|
14511
14610
|
notes: 'Creative digital agency serving multiple SMB clients.'
|
|
14512
14611
|
},
|
|
14513
14612
|
{
|
|
14514
|
-
id: uuid$
|
|
14613
|
+
id: uuid$c(),
|
|
14515
14614
|
customerCode: 'CUST-1007',
|
|
14516
14615
|
personId: personLegalIds.premiumConsultingServices,
|
|
14517
14616
|
person: findOrganizationPersonMinimal$1(personLegalIds.premiumConsultingServices),
|
|
@@ -14519,6 +14618,10 @@ const CUSTOMERS_MOCK = [
|
|
|
14519
14618
|
partyType: partyTypeMocks[8],
|
|
14520
14619
|
segmentId: partySegmentIds.b2b,
|
|
14521
14620
|
partySegment: partySegmentMocks[5],
|
|
14621
|
+
lifecycleStageId: lifecycleStageIds.active,
|
|
14622
|
+
lifecycleStage: lifecycleStageMocks[2],
|
|
14623
|
+
territoryId: geographicRegionIds.TERRITORY_NA,
|
|
14624
|
+
territory: { id: geographicRegionIds.TERRITORY_NA, title: 'North America' },
|
|
14522
14625
|
status: 'active',
|
|
14523
14626
|
since: new Date('2023-09-05'),
|
|
14524
14627
|
isVip: true,
|
|
@@ -14541,14 +14644,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
14541
14644
|
type: Injectable
|
|
14542
14645
|
}] });
|
|
14543
14646
|
|
|
14544
|
-
const uuid$
|
|
14647
|
+
const uuid$b = AXPDataGenerator.uuid;
|
|
14545
14648
|
const OPPORTUNITY_STAGES_MOCK = [
|
|
14546
|
-
{ id: uuid$
|
|
14547
|
-
{ id: uuid$
|
|
14548
|
-
{ id: uuid$
|
|
14549
|
-
{ id: uuid$
|
|
14550
|
-
{ id: uuid$
|
|
14551
|
-
{ id: uuid$
|
|
14649
|
+
{ id: uuid$b(), title: 'Qualification', probability: 10, order: 1 },
|
|
14650
|
+
{ id: uuid$b(), title: 'Discovery', probability: 25, order: 2 },
|
|
14651
|
+
{ id: uuid$b(), title: 'Proposal', probability: 50, order: 3 },
|
|
14652
|
+
{ id: uuid$b(), title: 'Negotiation', probability: 75, order: 4 },
|
|
14653
|
+
{ id: uuid$b(), title: 'Closed Won', probability: 100, order: 5 },
|
|
14654
|
+
{ id: uuid$b(), title: 'Closed Lost', probability: 0, order: 6 },
|
|
14552
14655
|
];
|
|
14553
14656
|
|
|
14554
14657
|
class AXCCrmOpportunityStageDataSeeder {
|
|
@@ -14565,9 +14668,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
14565
14668
|
type: Injectable
|
|
14566
14669
|
}] });
|
|
14567
14670
|
|
|
14568
|
-
const uuid$
|
|
14671
|
+
const uuid$a = AXPDataGenerator.uuid;
|
|
14569
14672
|
const SALES_PIPELINES_MOCK = [
|
|
14570
|
-
{ id: uuid$
|
|
14673
|
+
{ id: uuid$a(), title: 'Default Pipeline', description: 'Standard B2B pipeline', order: 1 },
|
|
14571
14674
|
];
|
|
14572
14675
|
|
|
14573
14676
|
class AXCCrmSalesPipelineDataSeeder {
|
|
@@ -14584,54 +14687,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
14584
14687
|
type: Injectable
|
|
14585
14688
|
}] });
|
|
14586
14689
|
|
|
14587
|
-
const uuid$b = AXPDataGenerator.uuid;
|
|
14588
|
-
const LIFECYCLE_STAGES_MOCK = [
|
|
14589
|
-
{ id: uuid$b(), title: 'Prospect', order: 1 },
|
|
14590
|
-
{ id: uuid$b(), title: 'Onboarding', order: 2 },
|
|
14591
|
-
{ id: uuid$b(), title: 'Active', order: 3 },
|
|
14592
|
-
{ id: uuid$b(), title: 'Churn Risk', order: 4 },
|
|
14593
|
-
{ id: uuid$b(), title: 'Churned', order: 5 },
|
|
14594
|
-
];
|
|
14595
|
-
|
|
14596
|
-
class AXCCrmLifecycleStageDataSeeder {
|
|
14597
|
-
constructor() {
|
|
14598
|
-
this.storageService = inject(AXPEntityStorageService);
|
|
14599
|
-
}
|
|
14600
|
-
async seed() {
|
|
14601
|
-
await this.storageService.initial(RootConfig$b.entities.lifecycleStage.source, LIFECYCLE_STAGES_MOCK);
|
|
14602
|
-
}
|
|
14603
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCCrmLifecycleStageDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14604
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCCrmLifecycleStageDataSeeder }); }
|
|
14605
|
-
}
|
|
14606
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCCrmLifecycleStageDataSeeder, decorators: [{
|
|
14607
|
-
type: Injectable
|
|
14608
|
-
}] });
|
|
14609
|
-
|
|
14610
|
-
const uuid$a = AXPDataGenerator.uuid;
|
|
14611
|
-
const SALES_TERRITORIES_MOCK = [
|
|
14612
|
-
{ id: uuid$a(), title: 'North America', order: 1 },
|
|
14613
|
-
{ id: uuid$a(), title: 'Europe', order: 2 },
|
|
14614
|
-
{ id: uuid$a(), title: 'APAC', order: 3 },
|
|
14615
|
-
];
|
|
14616
|
-
|
|
14617
|
-
class AXCCrmSalesTerritoryDataSeeder {
|
|
14618
|
-
constructor() {
|
|
14619
|
-
this.storageService = inject(AXPEntityStorageService);
|
|
14620
|
-
}
|
|
14621
|
-
async seed() {
|
|
14622
|
-
await this.storageService.initial(RootConfig$b.entities.salesTerritory.source, SALES_TERRITORIES_MOCK);
|
|
14623
|
-
}
|
|
14624
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCCrmSalesTerritoryDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14625
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCCrmSalesTerritoryDataSeeder }); }
|
|
14626
|
-
}
|
|
14627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCCrmSalesTerritoryDataSeeder, decorators: [{
|
|
14628
|
-
type: Injectable
|
|
14629
|
-
}] });
|
|
14630
|
-
|
|
14631
14690
|
const uuid$9 = AXPDataGenerator.uuid;
|
|
14632
14691
|
const LEADS_MOCK = [
|
|
14633
|
-
{ id: uuid$9(), name: 'Alice Johnson', email: 'alice@example.com', phone: '+1-555-0001', company: 'Alpha Corp', status: 'new', source: 'web' },
|
|
14634
|
-
{ id: uuid$9(), name: 'Bob Smith', email: 'bob@example.com', phone: '+1-555-0002', company: 'Beta LLC', status: 'working', source: 'event' },
|
|
14692
|
+
{ id: uuid$9(), name: 'Alice Johnson', email: 'alice@example.com', phone: '+1-555-0001', company: 'Alpha Corp', status: 'new', lifecycleStageId: lifecycleStageIds.prospect, source: 'web' },
|
|
14693
|
+
{ id: uuid$9(), name: 'Bob Smith', email: 'bob@example.com', phone: '+1-555-0002', company: 'Beta LLC', status: 'working', lifecycleStageId: lifecycleStageIds.onboarding, source: 'event' },
|
|
14635
14694
|
];
|
|
14636
14695
|
|
|
14637
14696
|
class AXCCrmLeadDataSeeder {
|
|
@@ -14744,8 +14803,6 @@ class AXCCustomerManagementMockModule {
|
|
|
14744
14803
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXCCustomerManagementMockModule, providers: [
|
|
14745
14804
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCCrmOpportunityStageDataSeeder, multi: true },
|
|
14746
14805
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCCrmSalesPipelineDataSeeder, multi: true },
|
|
14747
|
-
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCCrmLifecycleStageDataSeeder, multi: true },
|
|
14748
|
-
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCCrmSalesTerritoryDataSeeder, multi: true },
|
|
14749
14806
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCCustomerDataSeeder, multi: true },
|
|
14750
14807
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCCrmLeadDataSeeder, multi: true },
|
|
14751
14808
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCCrmOpportunityDataSeeder, multi: true },
|
|
@@ -14759,8 +14816,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
14759
14816
|
providers: [
|
|
14760
14817
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCCrmOpportunityStageDataSeeder, multi: true },
|
|
14761
14818
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCCrmSalesPipelineDataSeeder, multi: true },
|
|
14762
|
-
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCCrmLifecycleStageDataSeeder, multi: true },
|
|
14763
|
-
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCCrmSalesTerritoryDataSeeder, multi: true },
|
|
14764
14819
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCCustomerDataSeeder, multi: true },
|
|
14765
14820
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCCrmLeadDataSeeder, multi: true },
|
|
14766
14821
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCCrmOpportunityDataSeeder, multi: true },
|