@placeshakr/config 10.19.26 → 10.19.30-alpha.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.
@@ -47,10 +47,6 @@ const productionEnvironment: Environment = {
47
47
  devis: 'enterprises/{enterpriseId}/projects/{projectId}/devis',
48
48
  admins: 'enterprises/{enterpriseId}/admins',
49
49
  plans: 'enterprises/{enterpriseId}/projects/{projectId}/plans',
50
- taskGroups: 'enterprises/{enterpriseId}/projects/{projectId}/taskGroups',
51
- tasks: 'enterprises/{enterpriseId}/projects/{projectId}/tasks',
52
- externalPlans:
53
- 'enterprises/{enterpriseId}/projects/{projectId}/externalPlans',
54
50
  downPayments: 'enterprises/{enterpriseId}/projects/{projectId}/downPayments',
55
51
  providers: 'enterprises/{enterpriseId}/providers',
56
52
  statuses: 'enterprises/{enterpriseId}/statuses',
@@ -73,7 +69,8 @@ const productionEnvironment: Environment = {
73
69
  devisVersions: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions',
74
70
  enterpriseDocuments: 'enterprises/{enterpriseId}/documents',
75
71
  enterpriseMedias: 'enterprises/{enterpriseId}/medias',
76
- configurations: 'enterprises/{enterpriseId}/configurations'
72
+ configurations: 'enterprises/{enterpriseId}/configurations',
73
+ logs: 'enterprises/{enterpriseId}/logs'
77
74
  },
78
75
  docs: {
79
76
  user: 'users/{userId}',
@@ -98,11 +95,6 @@ const productionEnvironment: Environment = {
98
95
  devis: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}',
99
96
  admin: 'enterprises/{enterpriseId}/admins/{adminId}',
100
97
  plans: 'enterprises/{enterpriseId}/projects/{projectId}/plans/{planId}',
101
- taskGroup:
102
- 'enterprises/{enterpriseId}/projects/{projectId}/taskGroups/{taskGroupId}',
103
- task: 'enterprises/{enterpriseId}/projects/{projectId}/tasks/{taskId}',
104
- externalPlans:
105
- 'enterprises/{enterpriseId}/projects/{projectId}/externalPlans/{externalPlanId}',
106
98
  downPayments: 'enterprises/{enterpriseId}/projects/{projectId}/downPayments/{downPaymentId}',
107
99
  paymentMethods:
108
100
  'enterprises/{enterpriseId}/paymentMethods/{paymentMethodId}',
@@ -131,13 +123,11 @@ const productionEnvironment: Environment = {
131
123
  devisVersion: 'enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions/{versionId}',
132
124
  enterpriseDocument: 'enterprises/{enterpriseId}/documents/{documentId}',
133
125
  enterpriseMedia: 'enterprises/{enterpriseId}/medias/{mediaId}',
134
- configuration: 'enterprises/{enterpriseId}/configurations/{configurationId}'
126
+ configuration: 'enterprises/{enterpriseId}/configurations/{configurationId}',
127
+ log: 'enterprises/{enterpriseId}/logs/{logId}'
135
128
  },
136
129
  indexes: {
137
- users: 'users',
138
- enterprises: 'enterprises',
139
130
  // tslint:disable-next-line: object-literal-sort-keys
140
- billing: 'billing',
141
131
  clients: 'clients',
142
132
  pros: 'pros',
143
133
  agents: 'agents',
@@ -145,28 +135,15 @@ const productionEnvironment: Environment = {
145
135
  projects: 'projects',
146
136
  medias: 'projects-medias',
147
137
  events: 'projects-events',
148
- notes: 'projects-notes',
149
- visitReports: 'projects-visitReports',
150
- documents: 'projects-documents',
151
138
  devis: 'projects-devis',
152
139
  admins: 'admins',
153
- plans: 'projects-plans',
154
- taskGroups: 'projects-taskGroups',
155
- tasks: 'projects-tasks',
156
- externalPlans: 'projects-externalPlans',
157
- downPayments: 'projects-downPayments',
158
140
  providers: 'providers',
159
- statuses: 'statuses',
160
141
  materials: 'materials',
161
142
  operations: 'operations',
162
143
  operationsMaterials: 'operations-materials',
163
- orders: 'projects-orders',
164
- bills: 'projects-bills',
165
- invoices: 'invoices',
166
144
  materialsProvider: 'materials-provider',
167
145
  devisTemplates: 'devis-templates',
168
146
  estimations: 'estimations',
169
- receptionVouchers: 'projects-reception-vouchers',
170
147
  categories: 'categories',
171
148
  operationsCatalogs: 'operations-catalogs',
172
149
  nomenclatures: 'nomenclatures',
@@ -182,17 +159,6 @@ const productionEnvironment: Environment = {
182
159
  },
183
160
  },
184
161
  search: {
185
- invoices: {
186
- attributesForFaceting: ['searchable(scope)'],
187
- maxValuesPerFacet: 1000,
188
- maxFacetHits: 100
189
- },
190
- enterprises: {
191
- searchableAttributes: ['commercialName', 'siren', 'siret'],
192
- attributesForFaceting: ['searchable(scope)'],
193
- maxValuesPerFacet: 1000,
194
- maxFacetHits: 100
195
- },
196
162
  users: {
197
163
  searchableAttributes: [
198
164
  'email',
@@ -423,20 +389,6 @@ const productionEnvironment: Environment = {
423
389
  maxValuesPerFacet: 1000,
424
390
  maxFacetHits: 100
425
391
  },
426
- notes: {
427
- searchableAttributes: ['title'],
428
- attributesForFaceting: ['type', 'projectId', 'searchable(scope)'],
429
- ranking: ['desc(createdAt)'],
430
- maxValuesPerFacet: 1000,
431
- maxFacetHits: 100
432
- },
433
- visitReports: {
434
- searchableAttributes: ['title'],
435
- attributesForFaceting: ['projectId', 'searchable(scope)'],
436
- ranking: ['desc(createdAt)'],
437
- maxValuesPerFacet: 1000,
438
- maxFacetHits: 100
439
- },
440
392
  medias: {
441
393
  searchableAttributes: ['name'],
442
394
  attributesForFaceting: [
@@ -450,18 +402,6 @@ const productionEnvironment: Environment = {
450
402
  maxValuesPerFacet: 1000,
451
403
  maxFacetHits: 100
452
404
  },
453
- plans: {
454
- searchableAttributes: ['name', 'description'],
455
- attributesForFaceting: [
456
- 'projectId',
457
- 'pdf_generated',
458
- 'searchable(scope)',
459
- 'searchable(visibleByPro)'
460
- ],
461
- ranking: ['desc(updatedAt)'],
462
- maxValuesPerFacet: 1000,
463
- maxFacetHits: 100
464
- },
465
405
  devis: {
466
406
  searchableAttributes: ['name', 'status'],
467
407
  attributesForFaceting: [
@@ -475,13 +415,6 @@ const productionEnvironment: Environment = {
475
415
  maxValuesPerFacet: 1000,
476
416
  maxFacetHits: 100
477
417
  },
478
- documents: {
479
- searchableAttributes: ['title'],
480
- attributesForFaceting: ['visibleBy', 'projectId', 'searchable(scope)'],
481
- ranking: ['desc(createdAt)'],
482
- maxValuesPerFacet: 1000,
483
- maxFacetHits: 100
484
- },
485
418
  events: {
486
419
  searchableAttributes: ['title', 'type'],
487
420
  attributesForFaceting: [
@@ -496,60 +429,6 @@ const productionEnvironment: Environment = {
496
429
  maxValuesPerFacet: 1000,
497
430
  maxFacetHits: 100
498
431
  },
499
- externalPlans: {
500
- searchableAttributes: ['title', 'type'],
501
- attributesForFaceting: ['type', 'projectId', 'searchable(scope)'],
502
- ranking: ['desc(updatedAt)'],
503
- maxValuesPerFacet: 1000,
504
- maxFacetHits: 100
505
- },
506
- downPayments: {
507
- searchableAttributes: ['percent', 'devisId', 'projectId', 'billId', 'locked'],
508
- attributesForFaceting: ['searchable(billId)', 'searchable(locked)', 'searchable(devisId)', 'searchable(projectId)', 'searchable(scope)'],
509
- ranking: ['asc(date)'],
510
- maxValuesPerFacet: 1000,
511
- maxFacetHits: 100
512
- },
513
- tasks: {
514
- searchableAttributes: ['title', 'description'],
515
- attributesForFaceting: ['group', 'projectId', 'searchable(scope)'],
516
- maxValuesPerFacet: 1000,
517
- maxFacetHits: 100
518
- },
519
- taskGroups: {
520
- searchableAttributes: ['name'],
521
- attributesForFaceting: ['projectId', 'searchable(scope)'],
522
- maxValuesPerFacet: 1000,
523
- maxFacetHits: 100
524
- },
525
- orders: {
526
- searchableAttributes: ['name', 'description', 'piece', 'surface'],
527
- attributesForFaceting: [
528
- 'searchable(piece)',
529
- 'searchable(surface)',
530
- 'projectId',
531
- 'devisId',
532
- 'searchable(scope)',
533
- ],
534
- maxValuesPerFacet: 1000,
535
- maxFacetHits: 100
536
- },
537
- bills: {
538
- searchableAttributes: ['entity', 'type', 'status', 'subType', 'reference'],
539
- attributesForFaceting: [
540
- 'entity',
541
- 'projectId',
542
- 'pdf_generated',
543
- 'has_files',
544
- 'searchable(type)',
545
- 'searchable(subType)',
546
- 'searchable(status)',
547
- 'searchable(scope)',
548
- ],
549
- ranking: ['desc(referenceNumber)'],
550
- maxValuesPerFacet: 1000,
551
- maxFacetHits: 100
552
- },
553
432
  materialsProvider: {
554
433
  searchableAttributes: ['name', 'status', 'identifier'],
555
434
  attributesForFaceting: [
@@ -623,16 +502,6 @@ const productionEnvironment: Environment = {
623
502
  maxValuesPerFacet: 1000,
624
503
  maxFacetHits: 100
625
504
  },
626
- billing: {
627
- attributesForFaceting: [
628
- 'searchable(scope)',
629
- 'customer',
630
- 'paid',
631
- 'searchable(status)',
632
- ],
633
- maxValuesPerFacet: 1000,
634
- maxFacetHits: 100
635
- },
636
505
  devisTemplates: {
637
506
  searchableAttributes: ['name'],
638
507
  attributesForFaceting: [
@@ -669,17 +538,6 @@ const productionEnvironment: Environment = {
669
538
  maxValuesPerFacet: 1000,
670
539
  maxFacetHits: 100
671
540
  },
672
- receptionVouchers: {
673
- searchableAttributes: ['status'],
674
- attributesForFaceting: [
675
- 'projectId',
676
- 'has_files',
677
- 'searchable(status)',
678
- 'searchable(scope)',
679
- ],
680
- maxValuesPerFacet: 1000,
681
- maxFacetHits: 100
682
- },
683
541
  categories: {
684
542
  searchableAttributes: ['name'],
685
543
  attributesForFaceting: [
@@ -17,10 +17,7 @@ const test: EnvironmentDecorator = (base: Environment) => ({
17
17
  schema: {
18
18
  ...base.schema,
19
19
  indexes: {
20
- users: 'users',
21
- enterprises: 'tests-enterprises',
22
20
  // tslint:disable-next-line: object-literal-sort-keys
23
- billing: 'tests-billing',
24
21
  clients: 'tests-clients',
25
22
  pros: 'tests-pros',
26
23
  agents: 'tests-agents',
@@ -28,30 +25,16 @@ const test: EnvironmentDecorator = (base: Environment) => ({
28
25
  projects: 'tests-projects',
29
26
  medias: 'tests-projects-medias',
30
27
  events: 'tests-projects-events',
31
- notes: 'tests-projects-notes',
32
- visitReports: 'tests-projects-visit-reports',
33
- documents: 'tests-projects-documents',
34
28
  devis: 'tests-projects-devis',
35
29
  admins: 'tests-admins',
36
- plans: 'tests-projects-plans',
37
- taskGroups: 'tests-projects-task-groups',
38
- tasks: 'tests-projects-tasks',
39
- externalPlans: 'tests-projects-external-plans',
40
- payments: 'tests-projects-payments',
41
30
  providers: 'tests-providers',
42
- statuses: 'tests-statuses',
43
31
  materials: 'tests-materials',
44
32
  operations: 'tests-operations',
45
33
  operationsMaterials: 'test-operations-materials',
46
- orders: 'tests-projects-orders',
47
- bills: 'tests-projects-bills',
48
- invoices: 'test-invoices',
49
34
  materialsProvider: 'materials-provider',
50
35
  devisTemplates: 'devis-templates',
51
- categories: 'categories',
52
36
  estimations: 'estimations',
53
- downPayments: 'emulator-projects-down-payments',
54
- receptionVouchers: 'emulator-projects-reception-vouchers',
37
+ categories: 'categories',
55
38
  operationsCatalogs: 'operations-catalogs',
56
39
  nomenclatures: 'nomenclatures',
57
40
  operationsGroups: 'operations-groups',
@@ -74,10 +57,7 @@ const emulator: EnvironmentDecorator = (base: Environment) => ({
74
57
  schema: {
75
58
  ...base.schema,
76
59
  indexes: {
77
- users: 'users',
78
- enterprises: 'emulator-enterprises',
79
60
  // tslint:disable-next-line: object-literal-sort-keys
80
- billing: 'emulator-billing',
81
61
  clients: 'emulator-clients',
82
62
  pros: 'emulator-pros',
83
63
  agents: 'emulator-agents',
@@ -85,30 +65,16 @@ const emulator: EnvironmentDecorator = (base: Environment) => ({
85
65
  projects: 'emulator-projects',
86
66
  medias: 'emulator-projects-medias',
87
67
  events: 'emulator-projects-events',
88
- notes: 'emulator-projects-notes',
89
- visitReports: 'emulator-projects-visit-reports',
90
- documents: 'emulator-projects-documents',
91
68
  devis: 'emulator-projects-devis',
92
69
  admins: 'emulator-admins',
93
- plans: 'emulator-projects-plans',
94
- taskGroups: 'emulator-projects-task-groups',
95
- tasks: 'emulator-projects-tasks',
96
- externalPlans: 'emulator-projects-external-plans',
97
- payments: 'emulator-projects-payments',
98
70
  providers: 'emulator-providers',
99
- statuses: 'emulator-statuses',
100
71
  materials: 'emulator-materials',
101
72
  operations: 'emulator-operations',
102
73
  operationsMaterials: 'emulator-operations-materials',
103
- orders: 'emulator-projects-orders',
104
- bills: 'emulator-projects-bills',
105
- invoices: 'emulator-invoices',
106
74
  materialsProvider: 'materials-provider',
107
75
  devisTemplates: 'devis-templates',
108
- categories: 'categories',
109
76
  estimations: 'estimations',
110
- downPayments: 'emulator-projects-down-payments',
111
- receptionVouchers: 'emulator-projects-reception-vouchers',
77
+ categories: 'categories',
112
78
  operationsCatalogs: 'operations-catalogs',
113
79
  nomenclatures: 'nomenclatures',
114
80
  operationsGroups: 'operations-groups',
@@ -32,8 +32,6 @@ export interface Environment {
32
32
  */
33
33
  schema: {
34
34
  indexes: {
35
- enterprises: string;
36
- billing: string;
37
35
  clients: string;
38
36
  pros: string;
39
37
  agents: string;
@@ -41,29 +39,15 @@ export interface Environment {
41
39
  projects: string;
42
40
  medias: string;
43
41
  events: string;
44
- notes: string;
45
- visitReports: string;
46
- documents: string;
47
42
  devis: string;
48
43
  admins: string;
49
- plans: string;
50
- taskGroups: string;
51
- tasks: string;
52
- externalPlans: string;
53
- downPayments: string;
54
44
  providers: string;
55
- statuses: string;
56
45
  materials: string;
57
46
  operations: string;
58
47
  operationsMaterials: string;
59
- orders: string;
60
- bills: string;
61
- users: string;
62
- invoices: string;
63
48
  materialsProvider: string;
64
49
  devisTemplates: string;
65
50
  estimations: string;
66
- receptionVouchers: string;
67
51
  categories: string;
68
52
  operationsCatalogs: string;
69
53
  nomenclatures: string;
@@ -94,9 +78,6 @@ export interface Environment {
94
78
  devis: string;
95
79
  admins: string;
96
80
  plans: string;
97
- taskGroups: string;
98
- tasks: string;
99
- externalPlans: string;
100
81
  downPayments: string;
101
82
  providers: string;
102
83
  statuses: string;
@@ -120,6 +101,7 @@ export interface Environment {
120
101
  enterpriseDocuments: string;
121
102
  enterpriseMedias: string;
122
103
  configurations: string;
104
+ logs: string;
123
105
  };
124
106
  docs: {
125
107
  user: string;
@@ -141,9 +123,6 @@ export interface Environment {
141
123
  devis: string;
142
124
  admin: string;
143
125
  plans: string;
144
- taskGroup: string;
145
- task: string;
146
- externalPlans: string;
147
126
  downPayments: string;
148
127
  provider: string;
149
128
  status: string;
@@ -167,6 +146,7 @@ export interface Environment {
167
146
  enterpriseDocument: string;
168
147
  enterpriseMedia: string;
169
148
  configuration: string;
149
+ log: string;
170
150
  };
171
151
  };
172
152
 
@@ -24,9 +24,6 @@ export interface Helpers {
24
24
  documents: FactoryCreate<articho.Document>;
25
25
  orders: FactoryCreate<articho.Order>;
26
26
  plans: FactoryCreate<articho.Plan>;
27
- externalPlans: FactoryCreate<articho.ExternalPlan>;
28
- taskGroups: FactoryCreate<articho.TaskGroup>;
29
- tasks: FactoryCreate<articho.Task>;
30
27
  materialsProvider: FactoryCreate<articho.MaterialsProvider>;
31
28
  devisTemplate: FactoryCreate<articho.DevisTemplate>;
32
29
  paymentMethods: FactoryCreate<articho.DevisTemplate>;
@@ -72,8 +69,6 @@ const helpers: Helpers = {
72
69
  status: FactoryCreateFunction(),
73
70
  providers: FactoryCreateFunction(),
74
71
  documents: FactoryCreateFunction(),
75
- taskGroups: FactoryCreateFunction(),
76
- tasks: FactoryCreateFunction(),
77
72
  devis: FactoryCreateFunction(),
78
73
  enterprises: FactoryCreateFunction(),
79
74
  events: FactoryCreateFunction(),
@@ -81,7 +76,6 @@ const helpers: Helpers = {
81
76
  bills: FactoryCreateFunction(),
82
77
  billsIssued: FactoryCreateFunction(),
83
78
  billsReceived: FactoryCreateFunction(),
84
- externalPlans: FactoryCreateFunction(),
85
79
  materialsProvider: FactoryCreateFunction(),
86
80
  devisTemplate: FactoryCreateFunction(),
87
81
  paymentMethods: FactoryCreateFunction(),
package/src/types.ts CHANGED
@@ -30,8 +30,6 @@ export type ResourceType =
30
30
  | Plan
31
31
  | Note
32
32
  | VisitReport
33
- | TaskGroup
34
- | Task
35
33
  | Devis
36
34
  | Estimation
37
35
  | Bill
@@ -49,7 +47,8 @@ export type ResourceType =
49
47
  | OperationsGroup
50
48
  | EnterpriseResourse
51
49
  | QuotesConfiguration
52
- | Configuration;
50
+ | Configuration
51
+ | Log;
53
52
 
54
53
  /**
55
54
  * Add timestampable behavior to any resource
@@ -436,6 +435,7 @@ export interface Enterprise extends Resource {
436
435
  visitReport?: boolean;
437
436
  quoteAdvanced?: boolean;
438
437
  quoteBasicCreation?: boolean;
438
+ exportLogs?: boolean;
439
439
  };
440
440
 
441
441
  /**
@@ -555,6 +555,12 @@ export interface User extends Resource {
555
555
  * The current profile expanded
556
556
  */
557
557
  profile: Profile;
558
+
559
+ /**
560
+ * Atlassian account ID
561
+ * This ID is necessary if user wants to create a service desk request
562
+ */
563
+ atlassianAccountID?: string;
558
564
  }
559
565
 
560
566
  export interface Profile extends Resource {
@@ -1482,66 +1488,6 @@ export interface Plan extends Resource {
1482
1488
  pdf?: File;
1483
1489
  }
1484
1490
 
1485
- export interface ExternalPlan extends Resource {
1486
- title: string;
1487
- text: string;
1488
- type: string;
1489
- code: string;
1490
- }
1491
-
1492
- /**
1493
- * Describe a group of tasks to be done in the project
1494
- */
1495
- export interface TaskGroup extends Resource {
1496
- /**
1497
- * The group name
1498
- */
1499
- name: string;
1500
-
1501
- /**
1502
- * The tak ids inside the group
1503
- */
1504
- tasks?: string[];
1505
- }
1506
-
1507
- /**
1508
- * Describe a task to be done in the project
1509
- */
1510
- export interface Task extends Resource {
1511
- /**
1512
- * The task title
1513
- */
1514
- title: string;
1515
-
1516
- /**
1517
- * The group to which the task belongs
1518
- */
1519
- group: string | TaskGroup;
1520
-
1521
- /**
1522
- * The task description
1523
- */
1524
- description?: string;
1525
-
1526
- /**
1527
- * The task expiration information
1528
- */
1529
- expirationInfo?: {
1530
- completed: boolean;
1531
- dueDate: number;
1532
- };
1533
-
1534
- /**
1535
- * The task reminder date
1536
- */
1537
- reminderDate?: number;
1538
-
1539
- /**
1540
- * The list of subtasks
1541
- */
1542
- subTasks?: { name: string; completed: boolean }[];
1543
- }
1544
-
1545
1491
  /**
1546
1492
  * Represents a material from the company's catalog
1547
1493
  */
@@ -2235,6 +2181,22 @@ export type ReceptionVoucher = Resource & {
2235
2181
  statusDate?: number;
2236
2182
  };
2237
2183
 
2184
+ export type BillStatusHistoryItem = {
2185
+ before: BillIssuedStatus | BillReceivedStatus;
2186
+ date: number;
2187
+ comment: string;
2188
+ user: {
2189
+ id: string;
2190
+ name: string;
2191
+ photo: string;
2192
+ role: ROLE;
2193
+ };
2194
+ };
2195
+
2196
+ export type BillStatusHistory = {
2197
+ [key in BillIssuedStatus | BillReceivedStatus]?: BillStatusHistoryItem;
2198
+ };
2199
+
2238
2200
  export type Bill = Resource & {
2239
2201
  title: string;
2240
2202
  projectId: string;
@@ -2246,7 +2208,7 @@ export type Bill = Resource & {
2246
2208
  entityData?: EntityData;
2247
2209
  statusDate?: number;
2248
2210
  statusComment?: string;
2249
- statusHistory?: any;
2211
+ statusHistory?: BillStatusHistory;
2250
2212
  files?: File[];
2251
2213
  // used to save information related with any possible external system
2252
2214
  metadata?: {
@@ -2669,11 +2631,6 @@ export enum BillDocTypeEnum {
2669
2631
  PURCHASE_ORDER = 'PURCHASE_ORDER',
2670
2632
  }
2671
2633
 
2672
- export enum ExternalPlanTypeEnum {
2673
- MAGICPLAN = 'MAGICPLAN',
2674
- SKETCHUP = 'SKETCHUP',
2675
- }
2676
-
2677
2634
  export enum BillIssuedStatus {
2678
2635
  PROVISIONAL = 'PROVISIONAL',
2679
2636
  WAITING = 'WAITING',
@@ -2784,13 +2741,6 @@ export enum ProjectCategoriesEnum {
2784
2741
  COMMERCE = 'COMMERCE',
2785
2742
  }
2786
2743
 
2787
- export enum TaskStatus {
2788
- COMPLETED,
2789
- OVERDUE,
2790
- DUESOON,
2791
- INTIME,
2792
- }
2793
-
2794
2744
  export enum ProSpecialitiesEnum {
2795
2745
  KITCHEN = 'kitchen',
2796
2746
  BATHROOM = 'bathroom',
@@ -2912,13 +2862,10 @@ export interface ProjectCounter {
2912
2862
  devis: number;
2913
2863
  documents: number;
2914
2864
  events: number;
2915
- externalPlans: number;
2916
2865
  medias: number;
2917
2866
  notes: number;
2918
2867
  visitReports: number;
2919
2868
  plans: number;
2920
- taskGroups: number;
2921
- tasks: number;
2922
2869
  }
2923
2870
 
2924
2871
  /**
@@ -3184,6 +3131,7 @@ export enum EmailTemplate {
3184
3131
  PLAN = 'plan',
3185
3132
  BILL = 'bill',
3186
3133
  MEDIAS = 'medias',
3134
+ EXPORT_LOGS = 'export-logs',
3187
3135
  }
3188
3136
 
3189
3137
  export enum DevisPdfType {
@@ -3696,6 +3644,40 @@ export type Configuration = Resource & {
3696
3644
  data: UserConfigurationFormValues;
3697
3645
  };
3698
3646
 
3647
+ export type Log = Resource & {
3648
+ identifier: LogsIdentifier;
3649
+ profile: {
3650
+ id: string;
3651
+ name: string;
3652
+ email: string;
3653
+ role: ROLE;
3654
+ roleName: string;
3655
+ };
3656
+ ip: string;
3657
+ date?: number;
3658
+ data: LogData;
3659
+ };
3660
+
3661
+ export enum LogsIdentifier {
3662
+ EXPORT_DATA = 'EXPORT_DATA',
3663
+ }
3664
+
3665
+ export type LogData = ExportLog;
3666
+
3667
+ export type ExportLog = {
3668
+ query: QueryIdentifier;
3669
+ queryName: string;
3670
+ filters: any;
3671
+ formattedFilters: { label: string; value: string }[];
3672
+ };
3673
+
3674
+ export enum QueryIdentifier {
3675
+ EXPORT_EVENTS = 'EXPORT_EVENTS',
3676
+ EXPORT_BILLS = 'EXPORT_BILLS',
3677
+ EXPORT_DEVIS = 'EXPORT_DEVIS',
3678
+ EXPORT_PROJECTS = 'EXPORT_PROJECTS',
3679
+ }
3680
+
3699
3681
  export type ExtraEmail = {
3700
3682
  label: string;
3701
3683
  email: string;