@smartytalent/api-client 0.1.33-dev.16 → 0.1.33-dev.17

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.
Files changed (41) hide show
  1. package/dist/apis/AggregatesApi.d.ts +131 -0
  2. package/dist/apis/AggregatesApi.d.ts.map +1 -0
  3. package/dist/apis/AggregatesApi.js +291 -0
  4. package/dist/apis/AggregatesApi.js.map +1 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.d.ts.map +1 -1
  7. package/dist/apis/index.js +1 -0
  8. package/dist/apis/index.js.map +1 -1
  9. package/dist/models/AggregateAttributesSchema.d.ts +73 -0
  10. package/dist/models/AggregateAttributesSchema.d.ts.map +1 -0
  11. package/dist/models/AggregateAttributesSchema.js +69 -0
  12. package/dist/models/AggregateAttributesSchema.js.map +1 -0
  13. package/dist/models/AggregateResourceSchema.d.ts +74 -0
  14. package/dist/models/AggregateResourceSchema.d.ts.map +1 -0
  15. package/dist/models/AggregateResourceSchema.js +74 -0
  16. package/dist/models/AggregateResourceSchema.js.map +1 -0
  17. package/dist/models/AggregateSchema.d.ts +49 -0
  18. package/dist/models/AggregateSchema.d.ts.map +1 -0
  19. package/dist/models/AggregateSchema.js +55 -0
  20. package/dist/models/AggregateSchema.js.map +1 -0
  21. package/dist/models/AggregatesMetaSchema.d.ts +46 -0
  22. package/dist/models/AggregatesMetaSchema.d.ts.map +1 -0
  23. package/dist/models/AggregatesMetaSchema.js +52 -0
  24. package/dist/models/AggregatesMetaSchema.js.map +1 -0
  25. package/dist/models/AggregatesSchema.d.ts +48 -0
  26. package/dist/models/AggregatesSchema.d.ts.map +1 -0
  27. package/dist/models/AggregatesSchema.js +56 -0
  28. package/dist/models/AggregatesSchema.js.map +1 -0
  29. package/dist/models/UpdateAggregateRequestBody.d.ts +34 -0
  30. package/dist/models/UpdateAggregateRequestBody.d.ts.map +1 -0
  31. package/dist/models/UpdateAggregateRequestBody.js +52 -0
  32. package/dist/models/UpdateAggregateRequestBody.js.map +1 -0
  33. package/dist/models/UpdateAggregateRequestBodyData.d.ts +53 -0
  34. package/dist/models/UpdateAggregateRequestBodyData.d.ts.map +1 -0
  35. package/dist/models/UpdateAggregateRequestBodyData.js +67 -0
  36. package/dist/models/UpdateAggregateRequestBodyData.js.map +1 -0
  37. package/dist/models/index.d.ts +7 -0
  38. package/dist/models/index.d.ts.map +1 -1
  39. package/dist/models/index.js +7 -0
  40. package/dist/models/index.js.map +1 -1
  41. package/package.json +1 -1
@@ -0,0 +1,131 @@
1
+ /**
2
+ * SmartyMeet Dev03 API REST
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.1
6
+ * Contact: developer@smartymeet.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { AggregateSchema, AggregatesSchema, UpdateAggregateRequestBody } from '../models/index';
14
+ export interface AggregateOptionsRequest {
15
+ aggregateId: string;
16
+ }
17
+ export interface ListAggregatesRequest {
18
+ filterResourceType?: ListAggregatesFilterResourceTypeEnum;
19
+ filterDimension?: string;
20
+ filterCategory?: string;
21
+ filterKind?: ListAggregatesFilterKindEnum;
22
+ pageSize?: number;
23
+ pageAfter?: string;
24
+ pageBefore?: string;
25
+ }
26
+ export interface ShowAggregateRequest {
27
+ aggregateId: string;
28
+ }
29
+ export interface UpdateAggregateRequest {
30
+ aggregateId: string;
31
+ updateAggregateRequestBody: UpdateAggregateRequestBody;
32
+ }
33
+ /**
34
+ *
35
+ */
36
+ export declare class AggregatesApi extends runtime.BaseAPI {
37
+ /**
38
+ * Creates request options for aggregateOptions without sending the request
39
+ */
40
+ aggregateOptionsRequestOpts(requestParameters: AggregateOptionsRequest): Promise<runtime.RequestOpts>;
41
+ /**
42
+ * Enable CORS
43
+ * Aggregate Options
44
+ */
45
+ aggregateOptionsRaw(requestParameters: AggregateOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
46
+ /**
47
+ * Enable CORS
48
+ * Aggregate Options
49
+ */
50
+ aggregateOptions(requestParameters: AggregateOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
51
+ /**
52
+ * Creates request options for aggregatesOptions without sending the request
53
+ */
54
+ aggregatesOptionsRequestOpts(): Promise<runtime.RequestOpts>;
55
+ /**
56
+ * Enable CORS by returning correct headers
57
+ * Aggregates Options
58
+ */
59
+ aggregatesOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
60
+ /**
61
+ * Enable CORS by returning correct headers
62
+ * Aggregates Options
63
+ */
64
+ aggregatesOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
65
+ /**
66
+ * Creates request options for listAggregates without sending the request
67
+ */
68
+ listAggregatesRequestOpts(requestParameters: ListAggregatesRequest): Promise<runtime.RequestOpts>;
69
+ /**
70
+ * Returns the authenticated user\'s per-resource counter projections. Each row is keyed `{resourceType}:{dimension}:{category}:{kind}` and carries a single integer `value`. Counters are maintained event-driven from the owning service (resource lifecycle) and the state service (per-user `isSeen` flips); regular callers GET, never POST. Filters narrow the slice: - `filterResourceType=emails` limits to one resource type. - `filterDimension=byFolder` limits to one categorisation axis. - `filterCategory=received` limits to one category within the dimension. - `filterKind=total|seen|unseen` limits to one projection kind. When `filterDimension` is supplied, the response additionally carries a `meta.by{Dimension}` overlay (e.g. `meta.byFolder`) with the same data grouped category -> kind -> value. Frontends targeting one dimension at a time read the overlay; admin / debug consumers iterate `data` directly.
71
+ * List Aggregates
72
+ */
73
+ listAggregatesRaw(requestParameters: ListAggregatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AggregatesSchema>>;
74
+ /**
75
+ * Returns the authenticated user\'s per-resource counter projections. Each row is keyed `{resourceType}:{dimension}:{category}:{kind}` and carries a single integer `value`. Counters are maintained event-driven from the owning service (resource lifecycle) and the state service (per-user `isSeen` flips); regular callers GET, never POST. Filters narrow the slice: - `filterResourceType=emails` limits to one resource type. - `filterDimension=byFolder` limits to one categorisation axis. - `filterCategory=received` limits to one category within the dimension. - `filterKind=total|seen|unseen` limits to one projection kind. When `filterDimension` is supplied, the response additionally carries a `meta.by{Dimension}` overlay (e.g. `meta.byFolder`) with the same data grouped category -> kind -> value. Frontends targeting one dimension at a time read the overlay; admin / debug consumers iterate `data` directly.
76
+ * List Aggregates
77
+ */
78
+ listAggregates(requestParameters?: ListAggregatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AggregatesSchema>;
79
+ /**
80
+ * Creates request options for showAggregate without sending the request
81
+ */
82
+ showAggregateRequestOpts(requestParameters: ShowAggregateRequest): Promise<runtime.RequestOpts>;
83
+ /**
84
+ * Read one aggregate row for the authenticated user.
85
+ * Show Aggregate
86
+ */
87
+ showAggregateRaw(requestParameters: ShowAggregateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AggregateSchema>>;
88
+ /**
89
+ * Read one aggregate row for the authenticated user.
90
+ * Show Aggregate
91
+ */
92
+ showAggregate(requestParameters: ShowAggregateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AggregateSchema>;
93
+ /**
94
+ * Creates request options for updateAggregate without sending the request
95
+ */
96
+ updateAggregateRequestOpts(requestParameters: UpdateAggregateRequest): Promise<runtime.RequestOpts>;
97
+ /**
98
+ * Admin-only manual correction. Regular updates flow through event consumption; this endpoint exists for drift recovery and debugging. Only `value` is honored on the input attributes; the composite-key fields are derived from the path id.
99
+ * Update Aggregate (admin)
100
+ */
101
+ updateAggregateRaw(requestParameters: UpdateAggregateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AggregateSchema>>;
102
+ /**
103
+ * Admin-only manual correction. Regular updates flow through event consumption; this endpoint exists for drift recovery and debugging. Only `value` is honored on the input attributes; the composite-key fields are derived from the path id.
104
+ * Update Aggregate (admin)
105
+ */
106
+ updateAggregate(requestParameters: UpdateAggregateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AggregateSchema>;
107
+ }
108
+ /**
109
+ * @export
110
+ */
111
+ export declare const ListAggregatesFilterResourceTypeEnum: {
112
+ readonly Emails: "emails";
113
+ readonly Candidates: "candidates";
114
+ readonly Conversations: "conversations";
115
+ readonly Jobs: "jobs";
116
+ readonly Talents: "talents";
117
+ readonly Personas: "personas";
118
+ readonly Reports: "reports";
119
+ readonly Tasks: "tasks";
120
+ };
121
+ export type ListAggregatesFilterResourceTypeEnum = typeof ListAggregatesFilterResourceTypeEnum[keyof typeof ListAggregatesFilterResourceTypeEnum];
122
+ /**
123
+ * @export
124
+ */
125
+ export declare const ListAggregatesFilterKindEnum: {
126
+ readonly Total: "total";
127
+ readonly Seen: "seen";
128
+ readonly Unseen: "unseen";
129
+ };
130
+ export type ListAggregatesFilterKindEnum = typeof ListAggregatesFilterKindEnum[keyof typeof ListAggregatesFilterKindEnum];
131
+ //# sourceMappingURL=AggregatesApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AggregatesApi.d.ts","sourceRoot":"","sources":["../../src/apis/AggregatesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAEhB,0BAA0B,EAC3B,MAAM,iBAAiB,CAAC;AAYzB,MAAM,WAAW,uBAAuB;IACpC,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IAClC,kBAAkB,CAAC,EAAE,oCAAoC,CAAC;IAC1D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,4BAA4B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AAM,OAAO,oCAAoC,CAAC,CAAC;AAClJ;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;CAI/B,CAAC;AACX,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC"}
@@ -0,0 +1,291 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * SmartyMeet Dev03 API REST
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.1
9
+ * Contact: developer@smartymeet.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.ListAggregatesFilterKindEnum = exports.ListAggregatesFilterResourceTypeEnum = exports.AggregatesApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ const index_1 = require("../models/index");
52
+ /**
53
+ *
54
+ */
55
+ class AggregatesApi extends runtime.BaseAPI {
56
+ /**
57
+ * Creates request options for aggregateOptions without sending the request
58
+ */
59
+ async aggregateOptionsRequestOpts(requestParameters) {
60
+ if (requestParameters['aggregateId'] == null) {
61
+ throw new runtime.RequiredError('aggregateId', 'Required parameter "aggregateId" was null or undefined when calling aggregateOptions().');
62
+ }
63
+ const queryParameters = {};
64
+ const headerParameters = {};
65
+ let urlPath = `/v1/aggregates/{aggregateId}`;
66
+ urlPath = urlPath.replace(`{${"aggregateId"}}`, encodeURIComponent(String(requestParameters['aggregateId'])));
67
+ return {
68
+ path: urlPath,
69
+ method: 'OPTIONS',
70
+ headers: headerParameters,
71
+ query: queryParameters,
72
+ };
73
+ }
74
+ /**
75
+ * Enable CORS
76
+ * Aggregate Options
77
+ */
78
+ async aggregateOptionsRaw(requestParameters, initOverrides) {
79
+ const requestOptions = await this.aggregateOptionsRequestOpts(requestParameters);
80
+ const response = await this.request(requestOptions, initOverrides);
81
+ return new runtime.VoidApiResponse(response);
82
+ }
83
+ /**
84
+ * Enable CORS
85
+ * Aggregate Options
86
+ */
87
+ async aggregateOptions(requestParameters, initOverrides) {
88
+ await this.aggregateOptionsRaw(requestParameters, initOverrides);
89
+ }
90
+ /**
91
+ * Creates request options for aggregatesOptions without sending the request
92
+ */
93
+ async aggregatesOptionsRequestOpts() {
94
+ const queryParameters = {};
95
+ const headerParameters = {};
96
+ let urlPath = `/v1/aggregates`;
97
+ return {
98
+ path: urlPath,
99
+ method: 'OPTIONS',
100
+ headers: headerParameters,
101
+ query: queryParameters,
102
+ };
103
+ }
104
+ /**
105
+ * Enable CORS by returning correct headers
106
+ * Aggregates Options
107
+ */
108
+ async aggregatesOptionsRaw(initOverrides) {
109
+ const requestOptions = await this.aggregatesOptionsRequestOpts();
110
+ const response = await this.request(requestOptions, initOverrides);
111
+ return new runtime.VoidApiResponse(response);
112
+ }
113
+ /**
114
+ * Enable CORS by returning correct headers
115
+ * Aggregates Options
116
+ */
117
+ async aggregatesOptions(initOverrides) {
118
+ await this.aggregatesOptionsRaw(initOverrides);
119
+ }
120
+ /**
121
+ * Creates request options for listAggregates without sending the request
122
+ */
123
+ async listAggregatesRequestOpts(requestParameters) {
124
+ const queryParameters = {};
125
+ if (requestParameters['filterResourceType'] != null) {
126
+ queryParameters['filterResourceType'] = requestParameters['filterResourceType'];
127
+ }
128
+ if (requestParameters['filterDimension'] != null) {
129
+ queryParameters['filterDimension'] = requestParameters['filterDimension'];
130
+ }
131
+ if (requestParameters['filterCategory'] != null) {
132
+ queryParameters['filterCategory'] = requestParameters['filterCategory'];
133
+ }
134
+ if (requestParameters['filterKind'] != null) {
135
+ queryParameters['filterKind'] = requestParameters['filterKind'];
136
+ }
137
+ if (requestParameters['pageSize'] != null) {
138
+ queryParameters['pageSize'] = requestParameters['pageSize'];
139
+ }
140
+ if (requestParameters['pageAfter'] != null) {
141
+ queryParameters['pageAfter'] = requestParameters['pageAfter'];
142
+ }
143
+ if (requestParameters['pageBefore'] != null) {
144
+ queryParameters['pageBefore'] = requestParameters['pageBefore'];
145
+ }
146
+ const headerParameters = {};
147
+ if (this.configuration && this.configuration.apiKey) {
148
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
149
+ }
150
+ if (this.configuration && this.configuration.accessToken) {
151
+ // oauth required
152
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Auth", []);
153
+ }
154
+ let urlPath = `/v1/aggregates`;
155
+ return {
156
+ path: urlPath,
157
+ method: 'GET',
158
+ headers: headerParameters,
159
+ query: queryParameters,
160
+ };
161
+ }
162
+ /**
163
+ * Returns the authenticated user\'s per-resource counter projections. Each row is keyed `{resourceType}:{dimension}:{category}:{kind}` and carries a single integer `value`. Counters are maintained event-driven from the owning service (resource lifecycle) and the state service (per-user `isSeen` flips); regular callers GET, never POST. Filters narrow the slice: - `filterResourceType=emails` limits to one resource type. - `filterDimension=byFolder` limits to one categorisation axis. - `filterCategory=received` limits to one category within the dimension. - `filterKind=total|seen|unseen` limits to one projection kind. When `filterDimension` is supplied, the response additionally carries a `meta.by{Dimension}` overlay (e.g. `meta.byFolder`) with the same data grouped category -> kind -> value. Frontends targeting one dimension at a time read the overlay; admin / debug consumers iterate `data` directly.
164
+ * List Aggregates
165
+ */
166
+ async listAggregatesRaw(requestParameters, initOverrides) {
167
+ const requestOptions = await this.listAggregatesRequestOpts(requestParameters);
168
+ const response = await this.request(requestOptions, initOverrides);
169
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AggregatesSchemaFromJSON)(jsonValue));
170
+ }
171
+ /**
172
+ * Returns the authenticated user\'s per-resource counter projections. Each row is keyed `{resourceType}:{dimension}:{category}:{kind}` and carries a single integer `value`. Counters are maintained event-driven from the owning service (resource lifecycle) and the state service (per-user `isSeen` flips); regular callers GET, never POST. Filters narrow the slice: - `filterResourceType=emails` limits to one resource type. - `filterDimension=byFolder` limits to one categorisation axis. - `filterCategory=received` limits to one category within the dimension. - `filterKind=total|seen|unseen` limits to one projection kind. When `filterDimension` is supplied, the response additionally carries a `meta.by{Dimension}` overlay (e.g. `meta.byFolder`) with the same data grouped category -> kind -> value. Frontends targeting one dimension at a time read the overlay; admin / debug consumers iterate `data` directly.
173
+ * List Aggregates
174
+ */
175
+ async listAggregates(requestParameters = {}, initOverrides) {
176
+ const response = await this.listAggregatesRaw(requestParameters, initOverrides);
177
+ return await response.value();
178
+ }
179
+ /**
180
+ * Creates request options for showAggregate without sending the request
181
+ */
182
+ async showAggregateRequestOpts(requestParameters) {
183
+ if (requestParameters['aggregateId'] == null) {
184
+ throw new runtime.RequiredError('aggregateId', 'Required parameter "aggregateId" was null or undefined when calling showAggregate().');
185
+ }
186
+ const queryParameters = {};
187
+ const headerParameters = {};
188
+ if (this.configuration && this.configuration.apiKey) {
189
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
190
+ }
191
+ if (this.configuration && this.configuration.accessToken) {
192
+ // oauth required
193
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Auth", []);
194
+ }
195
+ let urlPath = `/v1/aggregates/{aggregateId}`;
196
+ urlPath = urlPath.replace(`{${"aggregateId"}}`, encodeURIComponent(String(requestParameters['aggregateId'])));
197
+ return {
198
+ path: urlPath,
199
+ method: 'GET',
200
+ headers: headerParameters,
201
+ query: queryParameters,
202
+ };
203
+ }
204
+ /**
205
+ * Read one aggregate row for the authenticated user.
206
+ * Show Aggregate
207
+ */
208
+ async showAggregateRaw(requestParameters, initOverrides) {
209
+ const requestOptions = await this.showAggregateRequestOpts(requestParameters);
210
+ const response = await this.request(requestOptions, initOverrides);
211
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AggregateSchemaFromJSON)(jsonValue));
212
+ }
213
+ /**
214
+ * Read one aggregate row for the authenticated user.
215
+ * Show Aggregate
216
+ */
217
+ async showAggregate(requestParameters, initOverrides) {
218
+ const response = await this.showAggregateRaw(requestParameters, initOverrides);
219
+ return await response.value();
220
+ }
221
+ /**
222
+ * Creates request options for updateAggregate without sending the request
223
+ */
224
+ async updateAggregateRequestOpts(requestParameters) {
225
+ if (requestParameters['aggregateId'] == null) {
226
+ throw new runtime.RequiredError('aggregateId', 'Required parameter "aggregateId" was null or undefined when calling updateAggregate().');
227
+ }
228
+ if (requestParameters['updateAggregateRequestBody'] == null) {
229
+ throw new runtime.RequiredError('updateAggregateRequestBody', 'Required parameter "updateAggregateRequestBody" was null or undefined when calling updateAggregate().');
230
+ }
231
+ const queryParameters = {};
232
+ const headerParameters = {};
233
+ headerParameters['Content-Type'] = 'application/json';
234
+ if (this.configuration && this.configuration.apiKey) {
235
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
236
+ }
237
+ if (this.configuration && this.configuration.accessToken) {
238
+ // oauth required
239
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Auth", []);
240
+ }
241
+ let urlPath = `/v1/aggregates/{aggregateId}`;
242
+ urlPath = urlPath.replace(`{${"aggregateId"}}`, encodeURIComponent(String(requestParameters['aggregateId'])));
243
+ return {
244
+ path: urlPath,
245
+ method: 'PATCH',
246
+ headers: headerParameters,
247
+ query: queryParameters,
248
+ body: (0, index_1.UpdateAggregateRequestBodyToJSON)(requestParameters['updateAggregateRequestBody']),
249
+ };
250
+ }
251
+ /**
252
+ * Admin-only manual correction. Regular updates flow through event consumption; this endpoint exists for drift recovery and debugging. Only `value` is honored on the input attributes; the composite-key fields are derived from the path id.
253
+ * Update Aggregate (admin)
254
+ */
255
+ async updateAggregateRaw(requestParameters, initOverrides) {
256
+ const requestOptions = await this.updateAggregateRequestOpts(requestParameters);
257
+ const response = await this.request(requestOptions, initOverrides);
258
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AggregateSchemaFromJSON)(jsonValue));
259
+ }
260
+ /**
261
+ * Admin-only manual correction. Regular updates flow through event consumption; this endpoint exists for drift recovery and debugging. Only `value` is honored on the input attributes; the composite-key fields are derived from the path id.
262
+ * Update Aggregate (admin)
263
+ */
264
+ async updateAggregate(requestParameters, initOverrides) {
265
+ const response = await this.updateAggregateRaw(requestParameters, initOverrides);
266
+ return await response.value();
267
+ }
268
+ }
269
+ exports.AggregatesApi = AggregatesApi;
270
+ /**
271
+ * @export
272
+ */
273
+ exports.ListAggregatesFilterResourceTypeEnum = {
274
+ Emails: 'emails',
275
+ Candidates: 'candidates',
276
+ Conversations: 'conversations',
277
+ Jobs: 'jobs',
278
+ Talents: 'talents',
279
+ Personas: 'personas',
280
+ Reports: 'reports',
281
+ Tasks: 'tasks'
282
+ };
283
+ /**
284
+ * @export
285
+ */
286
+ exports.ListAggregatesFilterKindEnum = {
287
+ Total: 'total',
288
+ Seen: 'seen',
289
+ Unseen: 'unseen'
290
+ };
291
+ //# sourceMappingURL=AggregatesApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AggregatesApi.js","sourceRoot":"","sources":["../../src/apis/AggregatesApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,oDAAsC;AAOtC,2CASyB;AAyBzB;;GAEG;AACH,MAAa,aAAc,SAAQ,OAAO,CAAC,OAAO;IAE9C;;OAEG;IACH,KAAK,CAAC,2BAA2B,CAAC,iBAA0C;QACxE,IAAI,iBAAiB,CAAC,aAAa,CAAC,IAAI,IAAI,EAAE,CAAC;YAC3C,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,aAAa,EACb,yFAAyF,CAC5F,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAGjD,IAAI,OAAO,GAAG,8BAA8B,CAAC;QAC7C,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,aAAa,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;QAE9G,OAAO;YACH,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,SAAS;YACjB,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,CAAC;IACN,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,mBAAmB,CAAC,iBAA0C,EAAE,aAA0D;QAC5H,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,2BAA2B,CAAC,iBAAiB,CAAC,CAAC;QACjF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,E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N,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,kBAAkB,CAAC,iBAAyC,EAAE,aAA0D;QAC1H,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC,iBAAiB,CAAC,CAAC;QAChF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;QAEnE,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,+BAAuB,EAAC,SAAS,CAAC,CAAC,CAAC;IACpG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,eAAe,CAAC,iBAAyC,EAAE,aAA0D;QACvH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACjF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA5RD,sCA4RC;AAED;;GAEG;AACU,QAAA,oCAAoC,GAAG;IAChD,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,aAAa,EAAE,eAAe;IAC9B,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACR,CAAC;AAEX;;GAEG;AACU,QAAA,4BAA4B,GAAG;IACxC,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACV,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export * from './ActionsApi';
2
2
  export * from './AdsApi';
3
+ export * from './AggregatesApi';
3
4
  export * from './ApikeysApi';
4
5
  export * from './AssessmentsApi';
5
6
  export * from './BriefsApi';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc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AC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./ActionsApi"), exports);
20
20
  __exportStar(require("./AdsApi"), exports);
21
+ __exportStar(require("./AggregatesApi"), exports);
21
22
  __exportStar(require("./ApikeysApi"), exports);
22
23
  __exportStar(require("./AssessmentsApi"), exports);
23
24
  __exportStar(require("./BriefsApi"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/apis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,mDAAiC;AACjC,8CAA4B;AAC5B,gDAA8B;AAC9B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description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.1
6
+ * Contact: developer@smartymeet.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ResourceTimestampsSchema } from './ResourceTimestampsSchema';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AggregateAttributesSchema
17
+ */
18
+ export interface AggregateAttributesSchema {
19
+ /**
20
+ * The resource being counted (e.g. `emails`, `candidates`). Matches the `resourceType` enum used by the state service.
21
+ * @type {string}
22
+ * @memberof AggregateAttributesSchema
23
+ */
24
+ resourceType?: string;
25
+ /**
26
+ * The categorisation axis (e.g. `byFolder` for emails, `byStatus` for candidates). Each owning service publishes its own dimensions.
27
+ * @type {string}
28
+ * @memberof AggregateAttributesSchema
29
+ */
30
+ dimension?: string;
31
+ /**
32
+ * A specific value within the dimension (e.g. `received`, `sent`, `draft` when dimension=byFolder). Lives in the composite id between dimension and kind.
33
+ * @type {string}
34
+ * @memberof AggregateAttributesSchema
35
+ */
36
+ category?: string;
37
+ /**
38
+ * Which projection of the category this row holds. `total` counts every resource; `seen` counts states with isSeen=true; `unseen` is total minus seen.
39
+ * @type {AggregateAttributesSchemaKindEnum}
40
+ * @memberof AggregateAttributesSchema
41
+ */
42
+ kind?: AggregateAttributesSchemaKindEnum;
43
+ /**
44
+ * Current counter value. Updated via atomic ADD on event consumption; admin PATCH allows manual correction for drift recovery.
45
+ * @type {number}
46
+ * @memberof AggregateAttributesSchema
47
+ */
48
+ value?: number;
49
+ /**
50
+ *
51
+ * @type {ResourceTimestampsSchema}
52
+ * @memberof AggregateAttributesSchema
53
+ */
54
+ timestamps?: ResourceTimestampsSchema;
55
+ }
56
+ /**
57
+ * @export
58
+ */
59
+ export declare const AggregateAttributesSchemaKindEnum: {
60
+ readonly Total: "total";
61
+ readonly Unseen: "unseen";
62
+ readonly Seen: "seen";
63
+ };
64
+ export type AggregateAttributesSchemaKindEnum = typeof AggregateAttributesSchemaKindEnum[keyof typeof AggregateAttributesSchemaKindEnum];
65
+ /**
66
+ * Check if a given object implements the AggregateAttributesSchema interface.
67
+ */
68
+ export declare function instanceOfAggregateAttributesSchema(value: object): value is AggregateAttributesSchema;
69
+ export declare function AggregateAttributesSchemaFromJSON(json: any): AggregateAttributesSchema;
70
+ export declare function AggregateAttributesSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): AggregateAttributesSchema;
71
+ export declare function AggregateAttributesSchemaToJSON(json: any): AggregateAttributesSchema;
72
+ export declare function AggregateAttributesSchemaToJSONTyped(value?: AggregateAttributesSchema | null, ignoreDiscriminator?: boolean): any;
73
+ //# sourceMappingURL=AggregateAttributesSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AggregateAttributesSchema.d.ts","sourceRoot":"","sources":["../../src/models/AggregateAttributesSchema.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAQ3E;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE,iCAAiC,CAAC;IACzC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,wBAAwB,CAAC;CACzC;AAGD;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;CAIpC,CAAC;AACX,MAAM,MAAM,iCAAiC,GAAG,OAAO,iCAAiC,CAAC,MAAM,OAAO,iCAAiC,CAAC,CAAC;AAGzI;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,yBAAyB,CAErG;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEtF;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,yBAAyB,CAazH;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEpF;AAED,wBAAgB,oCAAoC,CAAC,KAAK,CAAC,EAAE,yBAAyB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAcxI"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * SmartyMeet Dev03 API REST
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.1
9
+ * Contact: developer@smartymeet.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AggregateAttributesSchemaKindEnum = void 0;
17
+ exports.instanceOfAggregateAttributesSchema = instanceOfAggregateAttributesSchema;
18
+ exports.AggregateAttributesSchemaFromJSON = AggregateAttributesSchemaFromJSON;
19
+ exports.AggregateAttributesSchemaFromJSONTyped = AggregateAttributesSchemaFromJSONTyped;
20
+ exports.AggregateAttributesSchemaToJSON = AggregateAttributesSchemaToJSON;
21
+ exports.AggregateAttributesSchemaToJSONTyped = AggregateAttributesSchemaToJSONTyped;
22
+ const ResourceTimestampsSchema_1 = require("./ResourceTimestampsSchema");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.AggregateAttributesSchemaKindEnum = {
27
+ Total: 'total',
28
+ Unseen: 'unseen',
29
+ Seen: 'seen'
30
+ };
31
+ /**
32
+ * Check if a given object implements the AggregateAttributesSchema interface.
33
+ */
34
+ function instanceOfAggregateAttributesSchema(value) {
35
+ return true;
36
+ }
37
+ function AggregateAttributesSchemaFromJSON(json) {
38
+ return AggregateAttributesSchemaFromJSONTyped(json, false);
39
+ }
40
+ function AggregateAttributesSchemaFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'resourceType': json['resourceType'] == null ? undefined : json['resourceType'],
46
+ 'dimension': json['dimension'] == null ? undefined : json['dimension'],
47
+ 'category': json['category'] == null ? undefined : json['category'],
48
+ 'kind': json['kind'] == null ? undefined : json['kind'],
49
+ 'value': json['value'] == null ? undefined : json['value'],
50
+ 'timestamps': json['timestamps'] == null ? undefined : (0, ResourceTimestampsSchema_1.ResourceTimestampsSchemaFromJSON)(json['timestamps']),
51
+ };
52
+ }
53
+ function AggregateAttributesSchemaToJSON(json) {
54
+ return AggregateAttributesSchemaToJSONTyped(json, false);
55
+ }
56
+ function AggregateAttributesSchemaToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'resourceType': value['resourceType'],
62
+ 'dimension': value['dimension'],
63
+ 'category': value['category'],
64
+ 'kind': value['kind'],
65
+ 'value': value['value'],
66
+ 'timestamps': (0, ResourceTimestampsSchema_1.ResourceTimestampsSchemaToJSON)(value['timestamps']),
67
+ };
68
+ }
69
+ //# sourceMappingURL=AggregateAttributesSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AggregateAttributesSchema.js","sourceRoot":"","sources":["../../src/models/AggregateAttributesSchema.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAsEH,kFAEC;AAED,8EAEC;AAED,wFAaC;AAED,0EAEC;AAED,oFAcC;AA3GD,yEAKoC;AA+CpC;;GAEG;AACU,QAAA,iCAAiC,GAAG;IAC7C,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAA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