@coveo/push-api-client 1.5.5 → 1.6.0

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 (61) hide show
  1. package/dist/definitions/errors/baseError.d.ts +4 -0
  2. package/dist/definitions/errors/fieldErrors.d.ts +11 -0
  3. package/dist/definitions/{validation → errors}/validatorErrors.d.ts +1 -4
  4. package/dist/definitions/fieldAnalyser/fieldAnalyser.d.ts +44 -0
  5. package/dist/definitions/fieldAnalyser/fieldAnalyser.spec.d.ts +1 -0
  6. package/dist/definitions/fieldAnalyser/fieldStore.d.ts +5 -0
  7. package/dist/definitions/fieldAnalyser/inconsistencies.d.ts +5 -0
  8. package/dist/definitions/fieldAnalyser/inconsistencies.spec.d.ts +1 -0
  9. package/dist/definitions/fieldAnalyser/utils.d.ts +3 -0
  10. package/dist/definitions/fieldAnalyser/utils.spec.d.ts +1 -0
  11. package/dist/definitions/index.d.ts +1 -0
  12. package/dist/definitions/source.d.ts +13 -5
  13. package/dist/docs/assets/search.js +1 -1
  14. package/dist/docs/classes/AnySecurityIdentityBuilder.html +2 -2
  15. package/dist/docs/classes/DocumentBuilder.html +16 -16
  16. package/dist/docs/classes/FieldAnalyser.html +9 -0
  17. package/dist/docs/classes/GroupSecurityIdentityBuilder.html +2 -2
  18. package/dist/docs/classes/Source.html +17 -16
  19. package/dist/docs/classes/UserSecurityIdentityBuilder.html +2 -2
  20. package/dist/docs/classes/VirtualGroupSecurityIdentityBuilder.html +2 -2
  21. package/dist/docs/enums/PlatformEnvironment.html +1 -1
  22. package/dist/docs/index.html +1 -1
  23. package/dist/docs/interfaces/BatchUpdateDocuments.html +1 -1
  24. package/dist/docs/interfaces/BatchUpdateDocumentsFromFiles.html +4 -2
  25. package/dist/docs/interfaces/Document.html +13 -13
  26. package/dist/docs/interfaces/SecurityIdentity.html +3 -3
  27. package/dist/docs/interfaces/SecurityIdentityBuilder.html +1 -1
  28. package/dist/docs/interfaces/UploadBatchCallbackData.html +1 -1
  29. package/dist/docs/modules.html +2 -2
  30. package/dist/errors/baseError.js +11 -0
  31. package/dist/errors/baseError.js.map +1 -0
  32. package/dist/errors/fieldErrors.js +38 -0
  33. package/dist/errors/fieldErrors.js.map +1 -0
  34. package/dist/{validation → errors}/validatorErrors.js +6 -12
  35. package/dist/errors/validatorErrors.js.map +1 -0
  36. package/dist/fieldAnalyser/fieldAnalyser.js +133 -0
  37. package/dist/fieldAnalyser/fieldAnalyser.js.map +1 -0
  38. package/dist/fieldAnalyser/fieldAnalyser.spec.js +203 -0
  39. package/dist/fieldAnalyser/fieldAnalyser.spec.js.map +1 -0
  40. package/dist/fieldAnalyser/fieldStore.js +22 -0
  41. package/dist/fieldAnalyser/fieldStore.js.map +1 -0
  42. package/dist/fieldAnalyser/inconsistencies.js +15 -0
  43. package/dist/fieldAnalyser/inconsistencies.js.map +1 -0
  44. package/dist/fieldAnalyser/inconsistencies.spec.js +41 -0
  45. package/dist/fieldAnalyser/inconsistencies.spec.js.map +1 -0
  46. package/dist/fieldAnalyser/utils.js +23 -0
  47. package/dist/fieldAnalyser/utils.js.map +1 -0
  48. package/dist/fieldAnalyser/utils.spec.js +82 -0
  49. package/dist/fieldAnalyser/utils.spec.js.map +1 -0
  50. package/dist/index.js +3 -1
  51. package/dist/index.js.map +1 -1
  52. package/dist/source.js +47 -5
  53. package/dist/source.js.map +1 -1
  54. package/dist/source.spec.js +145 -49
  55. package/dist/source.spec.js.map +1 -1
  56. package/dist/validation/parseFile.js +1 -1
  57. package/dist/validation/parseFile.js.map +1 -1
  58. package/dist/validation/parseFile.spec.js +1 -1
  59. package/dist/validation/parseFile.spec.js.map +1 -1
  60. package/package.json +2 -2
  61. package/dist/validation/validatorErrors.js.map +0 -1
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /* eslint-disable node/no-unpublished-import */
4
4
  jest.mock('@coveord/platform-client');
5
5
  jest.mock('axios');
6
+ jest.mock('./fieldAnalyser/fieldAnalyser');
6
7
  const platform_client_1 = require("@coveord/platform-client");
7
8
  const source_1 = require("./source");
8
9
  const documentBuilder_1 = require("./documentBuilder");
@@ -10,17 +11,52 @@ const axios_1 = require("axios");
10
11
  const path_1 = require("path");
11
12
  const process_1 = require("process");
12
13
  const _1 = require(".");
14
+ const inconsistencies_1 = require("./fieldAnalyser/inconsistencies");
15
+ const fieldErrors_1 = require("./errors/fieldErrors");
13
16
  const mockAxios = axios_1.default;
17
+ const mockedFieldAnalyser = jest.mocked(_1.FieldAnalyser);
14
18
  const mockedPlatformClient = jest.mocked(platform_client_1.default);
15
- const mockCreate = jest.fn();
19
+ const mockCreateSource = jest.fn();
20
+ const mockCreateField = jest.fn();
21
+ const mockAnalyserAdd = jest.fn();
22
+ const mockAnalyserReport = jest.fn();
16
23
  const pathToStub = (0, path_1.join)((0, process_1.cwd)(), 'src', '__stub__');
17
- mockedPlatformClient.mockImplementation(() => ({
18
- source: {
19
- create: mockCreate,
20
- },
21
- }));
24
+ const doAxiosMockPost = () => {
25
+ mockAxios.post.mockImplementationOnce((url) => {
26
+ if (url.match(/files/)) {
27
+ return Promise.resolve({
28
+ data: {
29
+ uploadUri: 'https://fake.upload.url',
30
+ fileId: 'file_id',
31
+ requiredHeaders: { foo: 'bar' },
32
+ },
33
+ });
34
+ }
35
+ return Promise.resolve();
36
+ });
37
+ };
38
+ const doMockPlatformClient = () => {
39
+ mockedPlatformClient.mockImplementation(() => ({
40
+ source: {
41
+ create: mockCreateSource,
42
+ },
43
+ field: {
44
+ createFields: mockCreateField,
45
+ },
46
+ }));
47
+ };
48
+ const doMockFieldAnalyser = () => {
49
+ mockedFieldAnalyser.mockImplementation(() => ({
50
+ add: mockAnalyserAdd,
51
+ report: mockAnalyserReport,
52
+ }));
53
+ };
22
54
  describe('Source', () => {
23
55
  let source;
56
+ beforeAll(() => {
57
+ doMockPlatformClient();
58
+ doMockFieldAnalyser();
59
+ });
24
60
  beforeEach(() => {
25
61
  source = new source_1.Source('the_key', 'the_org');
26
62
  });
@@ -33,35 +69,35 @@ describe('Source', () => {
33
69
  };
34
70
  it('should call platform client on creation', () => {
35
71
  source.create('the_name', platform_client_1.SourceVisibility.SHARED);
36
- expect(mockCreate).toHaveBeenCalledWith({
72
+ expect(mockCreateSource).toHaveBeenCalledWith({
37
73
  name: 'the_name',
38
74
  pushEnabled: true,
39
75
  sourceType: 'PUSH',
40
76
  sourceVisibility: 'SHARED',
41
77
  });
42
78
  });
43
- it('should call axios on add document', () => {
44
- source.addOrUpdateDocument('the_id', new documentBuilder_1.DocumentBuilder('the_uri', 'the_title'));
79
+ it('should call axios on add document', async () => {
80
+ await source.addOrUpdateDocument('the_id', new documentBuilder_1.DocumentBuilder('the_uri', 'the_title'), { createFields: false });
45
81
  expect(mockAxios.put).toHaveBeenCalledWith('https://api.cloud.coveo.com/push/v1/organizations/the_org/sources/the_id/documents?documentId=the_uri', expect.objectContaining({ title: 'the_title' }), expectedDocumentsHeaders);
46
82
  });
47
- it('should call axios on add document with right region', () => {
83
+ it('should call axios on add document with right region', async () => {
48
84
  const australianSource = new source_1.Source('the_key', 'the_org', {
49
85
  region: _1.Region.AU,
50
86
  });
51
- australianSource.addOrUpdateDocument('the_id', new documentBuilder_1.DocumentBuilder('the_uri', 'the_title'));
87
+ await australianSource.addOrUpdateDocument('the_id', new documentBuilder_1.DocumentBuilder('the_uri', 'the_title'), { createFields: false });
52
88
  expect(mockAxios.put).toHaveBeenCalledWith('https://api-au.cloud.coveo.com/push/v1/organizations/the_org/sources/the_id/documents?documentId=the_uri', expect.objectContaining({ title: 'the_title' }), expectedDocumentsHeaders);
53
89
  });
54
- it('should call axios on add document with right environment', () => {
55
- new source_1.Source('the_key', 'the_org', {
90
+ it('should call axios on add document with right environment', async () => {
91
+ await new source_1.Source('the_key', 'the_org', {
56
92
  environment: _1.PlatformEnvironment.Dev,
57
- }).addOrUpdateDocument('the_id', new documentBuilder_1.DocumentBuilder('the_uri', 'the_title'));
93
+ }).addOrUpdateDocument('the_id', new documentBuilder_1.DocumentBuilder('the_uri', 'the_title'), { createFields: false });
58
94
  expect(mockAxios.put).toHaveBeenCalledWith('https://apidev.cloud.coveo.com/push/v1/organizations/the_org/sources/the_id/documents?documentId=the_uri', expect.objectContaining({ title: 'the_title' }), expectedDocumentsHeaders);
59
95
  });
60
- it('should call axios on add document with right region and environment', () => {
61
- new source_1.Source('the_key', 'the_org', {
96
+ it('should call axios on add document with right region and environment', async () => {
97
+ await new source_1.Source('the_key', 'the_org', {
62
98
  environment: _1.PlatformEnvironment.QA,
63
99
  region: _1.Region.EU,
64
- }).addOrUpdateDocument('the_id', new documentBuilder_1.DocumentBuilder('the_uri', 'the_title'));
100
+ }).addOrUpdateDocument('the_id', new documentBuilder_1.DocumentBuilder('the_uri', 'the_title'), { createFields: false });
65
101
  expect(mockAxios.put).toHaveBeenCalledWith('https://apiqa-eu.cloud.coveo.com/push/v1/organizations/the_org/sources/the_id/documents?documentId=the_uri', expect.objectContaining({ title: 'the_title' }), expectedDocumentsHeaders);
66
102
  });
67
103
  it('should call axios on delete', () => {
@@ -105,25 +141,18 @@ describe('Source', () => {
105
141
  ],
106
142
  delete: [{ documentId: 'the_uri_3', deleteChildren: true }],
107
143
  };
108
- mockAxios.post.mockImplementationOnce((url) => {
109
- if (url.match(/files/)) {
110
- return Promise.resolve({
111
- data: {
112
- uploadUri: 'https://fake.upload.url',
113
- fileId: 'file_id',
114
- requiredHeaders: { foo: 'bar' },
115
- },
116
- });
117
- }
118
- return Promise.resolve();
119
- });
144
+ doAxiosMockPost();
120
145
  });
121
146
  it('should create a file container', async () => {
122
- await source.batchUpdateDocuments('the_id', batch);
147
+ await source.batchUpdateDocuments('the_id', batch, {
148
+ createFields: false,
149
+ });
123
150
  expect(mockAxios.post).toHaveBeenCalledWith('https://api.cloud.coveo.com/push/v1/organizations/the_org/files', expect.objectContaining({}), expectedDocumentsHeaders);
124
151
  });
125
152
  it('should upload files to container with returned upload uri and required headers ', async () => {
126
- await source.batchUpdateDocuments('the_id', batch);
153
+ await source.batchUpdateDocuments('the_id', batch, {
154
+ createFields: false,
155
+ });
127
156
  expect(mockAxios.put).toHaveBeenCalledWith('https://fake.upload.url/', expect.objectContaining({
128
157
  addOrUpdate: expect.arrayContaining([
129
158
  expect.objectContaining({ documentId: 'the_uri_1' }),
@@ -135,28 +164,22 @@ describe('Source', () => {
135
164
  }), { headers: { foo: 'bar' } });
136
165
  });
137
166
  it('should push content to source with returned fileId', async () => {
138
- await source.batchUpdateDocuments('the_id', batch);
167
+ await source.batchUpdateDocuments('the_id', batch, {
168
+ createFields: false,
169
+ });
139
170
  expect(mockAxios.put).toHaveBeenCalledWith('https://api.cloud.coveo.com/push/v1/organizations/the_org/sources/the_id/documents/batch?fileId=file_id', {}, expectedDocumentsHeaders);
140
171
  });
141
172
  });
142
173
  describe('when doing batch update from local files', () => {
143
174
  const mockedCallback = jest.fn();
175
+ afterAll(() => {
176
+ mockAxios.post.mockReset();
177
+ });
144
178
  beforeEach(() => {
145
- mockAxios.post.mockImplementationOnce((url) => {
146
- if (url.match(/files/)) {
147
- return Promise.resolve({
148
- data: {
149
- uploadUri: 'https://fake.upload.url',
150
- fileId: 'file_id',
151
- requiredHeaders: { foo: 'bar' },
152
- },
153
- });
154
- }
155
- return Promise.resolve();
156
- });
179
+ doAxiosMockPost();
157
180
  });
158
181
  it('should upload documents from local file', async () => {
159
- await source.batchUpdateDocumentsFromFiles('the_id', [(0, path_1.join)(pathToStub, 'mixdocuments')], mockedCallback);
182
+ await source.batchUpdateDocumentsFromFiles('the_id', [(0, path_1.join)(pathToStub, 'mixdocuments')], mockedCallback, { createFields: false });
160
183
  expect(mockAxios.put).toHaveBeenCalledWith('https://fake.upload.url/', expect.objectContaining({
161
184
  addOrUpdate: expect.arrayContaining([
162
185
  expect.objectContaining({
@@ -174,24 +197,97 @@ describe('Source', () => {
174
197
  });
175
198
  });
176
199
  it('should throw an error if the path is invalid', () => {
177
- expect(() => source.batchUpdateDocumentsFromFiles('the_id', ['path/to/invalid/document'], mockedCallback)).rejects.toThrow("no such file or directory, lstat 'path/to/invalid/document'");
200
+ expect(() => source.batchUpdateDocumentsFromFiles('the_id', ['path/to/invalid/document'], mockedCallback, { createFields: false })).rejects.toThrow("no such file or directory, lstat 'path/to/invalid/document'");
178
201
  });
179
202
  it('should call the callback without error when uploading documents', async () => {
180
- await source.batchUpdateDocumentsFromFiles('the_id', [(0, path_1.join)(pathToStub, 'mixdocuments')], mockedCallback);
203
+ await source.batchUpdateDocumentsFromFiles('the_id', [(0, path_1.join)(pathToStub, 'mixdocuments')], mockedCallback, { createFields: false });
181
204
  expect(mockedCallback).toHaveBeenCalledWith(null, expect.anything());
182
205
  });
183
206
  it('should only push JSON files', async () => {
184
- await source.batchUpdateDocumentsFromFiles('the_id', [(0, path_1.join)(pathToStub, 'mixdocuments')], mockedCallback);
207
+ await source.batchUpdateDocumentsFromFiles('the_id', [(0, path_1.join)(pathToStub, 'mixdocuments')], mockedCallback, { createFields: false });
185
208
  expect(mockedCallback).toHaveBeenCalledWith(null, expect.objectContaining({ files: ['valid.json'] }));
186
209
  });
187
210
  it('should call the errorCallback on a failure from the API', async () => {
188
211
  mockAxios.post.mockReset();
189
212
  mockAxios.post.mockRejectedValue({ message: 'Error Message' });
190
- await source.batchUpdateDocumentsFromFiles('the_id', [(0, path_1.join)(pathToStub, 'mixdocuments')], mockedCallback);
213
+ await source.batchUpdateDocumentsFromFiles('the_id', [(0, path_1.join)(pathToStub, 'mixdocuments')], mockedCallback, { createFields: false });
191
214
  expect(mockedCallback).toHaveBeenCalledWith({
192
215
  message: 'Error Message',
193
216
  }, expect.anything());
194
217
  });
195
218
  });
219
+ describe('when enabling auto field creation', () => {
220
+ let source;
221
+ let batch;
222
+ beforeAll(() => {
223
+ batch = {
224
+ addOrUpdate: [
225
+ new documentBuilder_1.DocumentBuilder('the_uri_1', 'the_title_1'),
226
+ new documentBuilder_1.DocumentBuilder('the_uri_2', 'the_title_2'),
227
+ ],
228
+ delete: [],
229
+ };
230
+ });
231
+ beforeEach(() => {
232
+ doAxiosMockPost();
233
+ source = new source_1.Source('the_key', 'the_org');
234
+ });
235
+ describe('when there are no inconsistencies', () => {
236
+ beforeEach(() => {
237
+ const inconsistencies = new inconsistencies_1.Inconsistencies();
238
+ mockAnalyserReport.mockReturnValueOnce({ fields: [], inconsistencies });
239
+ });
240
+ it('should analyse document builder', async () => {
241
+ const docBuilder = new documentBuilder_1.DocumentBuilder('the_uri', 'the_title');
242
+ await source.addOrUpdateDocument('the_id', docBuilder);
243
+ expect(mockAnalyserAdd).toHaveBeenCalledWith([docBuilder]);
244
+ });
245
+ it('should analyse document builder batch', async () => {
246
+ await source.batchUpdateDocuments('the_id', batch);
247
+ expect(mockAnalyserAdd).toHaveBeenCalledWith(batch.addOrUpdate);
248
+ });
249
+ });
250
+ describe('when document batches contain type inconsistencies', () => {
251
+ beforeEach(() => {
252
+ const inconsistencies = new inconsistencies_1.Inconsistencies().add('foo', [
253
+ platform_client_1.FieldTypes.STRING,
254
+ platform_client_1.FieldTypes.DOUBLE,
255
+ ]);
256
+ mockAnalyserReport.mockReturnValueOnce({ fields: [], inconsistencies });
257
+ });
258
+ it('should throw', () => {
259
+ expect(() => source.batchUpdateDocuments('the_id', batch)).rejects.toThrow(fieldErrors_1.FieldTypeInconsistencyError);
260
+ });
261
+ });
262
+ describe('when document batches contain missing fields', () => {
263
+ beforeEach(() => {
264
+ const inconsistencies = new inconsistencies_1.Inconsistencies();
265
+ mockAnalyserReport.mockReturnValueOnce({
266
+ fields: [
267
+ { name: 'stringfield', type: platform_client_1.FieldTypes.STRING },
268
+ { name: 'numericalfield', type: platform_client_1.FieldTypes.DOUBLE },
269
+ ],
270
+ inconsistencies,
271
+ });
272
+ });
273
+ it('should create fields', async () => {
274
+ await source.batchUpdateDocuments('the_id', batch);
275
+ expect(mockCreateField).toHaveBeenCalledWith([
276
+ { name: 'stringfield', type: platform_client_1.FieldTypes.STRING },
277
+ { name: 'numericalfield', type: platform_client_1.FieldTypes.DOUBLE },
278
+ ]);
279
+ });
280
+ });
281
+ describe('when document batches do not contain missing fields', () => {
282
+ beforeEach(() => {
283
+ const inconsistencies = new inconsistencies_1.Inconsistencies();
284
+ mockAnalyserReport.mockReturnValueOnce({ fields: [], inconsistencies });
285
+ });
286
+ it('should not create fields', async () => {
287
+ source.batchUpdateDocuments('the_id', batch);
288
+ expect(mockCreateField).not.toHaveBeenCalled();
289
+ });
290
+ });
291
+ });
196
292
  });
197
293
  //# sourceMappingURL=source.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"source.spec.js","sourceRoot":"","sources":["../src/source.spec.ts"],"names":[],"mappings":";;AAAA,+CAA+C;AAC/C,IAAI,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;AACtC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACnB,8DAA0E;AAC1E,qCAAsD;AACtD,uDAAkD;AAClD,iCAA0B;AAC1B,+BAA0B;AAC1B,qCAA4B;AAC5B,wBAA8C;AAC9C,MAAM,SAAS,GAAG,eAAkC,CAAC;AAErD,MAAM,oBAAoB,GAAG,IAAI,CAAC,MAAM,CAAC,yBAAc,CAAC,CAAC;AACzD,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;AAC7B,MAAM,UAAU,GAAG,IAAA,WAAI,EAAC,IAAA,aAAG,GAAE,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;AAClD,oBAAoB,CAAC,kBAAkB,CACrC,GAAG,EAAE,CACH,CAAC;IACC,MAAM,EAAE;QACN,MAAM,EAAE,UAAU;KACnB;CAC4B,CAAA,CAClC,CAAC;AAEF,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;IACtB,IAAI,MAAc,CAAC;IACnB,UAAU,CAAC,GAAG,EAAE;QACd,MAAM,GAAG,IAAI,eAAM,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,MAAM,wBAAwB,GAAG;Q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oB,CAAC;oBAC3C,EAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,4BAAU,CAAC,MAAM,EAAC;oBAC9C,EAAC,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,4BAAU,CAAC,MAAM,EAAC;iBAClD,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,QAAQ,CAAC,qDAAqD,EAAE,GAAG,EAAE;YACnE,UAAU,CAAC,GAAG,EAAE;gBACd,MAAM,eAAe,GAAG,IAAI,iCAAe,EAAE,CAAC;gBAC9C,kBAAkB,CAAC,mBAAmB,CAAC,EAAC,MAAM,EAAE,EAAE,EAAE,eAAe,EAAC,CAAC,CAAC;YACxE,CAAC,CAAC,CAAC;YAEH,EAAE,CAAC,0BAA0B,EAAE,KAAK,IAAI,EAAE;gBACxC,MAAM,CAAC,oBAAoB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;gBAC7C,MAAM,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC;YACjD,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -6,7 +6,7 @@ const __1 = require("..");
6
6
  const fs_1 = require("fs");
7
7
  const caseInsensitiveDocument_1 = require("./caseInsensitiveDocument");
8
8
  const knownKey_1 = require("./knownKey");
9
- const validatorErrors_1 = require("./validatorErrors");
9
+ const validatorErrors_1 = require("../errors/validatorErrors");
10
10
  const requiredKeyValidator_1 = require("./requiredKeyValidator");
11
11
  const parseAndGetDocumentBuilderFromJSONDocument = (documentPath) => {
12
12
  ensureFileIntegrity(documentPath);
@@ -1 +1 @@
1
- {"version":3,"file":"parseFile.js","sourceRoot":"","sources":["../../src/validation/parseFile.ts"],"names":[],"mappings":";;;AAAA,wCAMsB;AACtB,0BAMY;AACZ,2BAAiE;AACjE,uEAAkE;AAClE,yCAAqC;AACrC,uDAI2B;AAC3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Y,EAAE,IAAI,mBAAW,CAAC;oBAC5B,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,CAAC;oBAC1D,QAAQ,EAAE,IAAI;oBACd,YAAY,EAAE,KAAK;iBACpB,CAAC;gBACF,gBAAgB,EAAE,IAAI,mBAAW,CAAC;oBAChC,YAAY,EAAE,KAAK;oBACnB,QAAQ,EAAE,IAAI;iBACf,CAAC;aACH;SACF,CAAC;KACH,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const path_1 = require("path");
4
4
  const process_1 = require("process");
5
5
  const parseFile_1 = require("./parseFile");
6
- const validatorErrors_1 = require("./validatorErrors");
6
+ const validatorErrors_1 = require("../errors/validatorErrors");
7
7
  describe('parseFile', () => {
8
8
  const pathToStub = (0, path_1.join)((0, process_1.cwd)(), 'src', '__stub__');
9
9
  const parse = (file) => () => (0, parseFile_1.parseAndGetDocumentBuilderFromJSONDocument)(file);
@@ -1 +1 @@
1
- {"version":3,"file":"parseFile.spec.js","sourceRoot":"","sources":["../../src/validation/parseFile.spec.ts"],"names":[],"mappings":";;AAAA,+BAA0B;AAC1B,qCAA4B;AAC5B,2CAAuE;AACvE,uDAAkD;AAElD,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACzB,MAAM,UAAU,GAAG,IAAA,WAAI,EAAC,IAAA,aAAG,GAAE,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;IAClD,MAAM,KAAK,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,GAAG,EAAE,CACnC,IAAA,sDAA0C,EAAC,IAAI,CAAC,CAAC;IAEnD,EAAE,CAAC,mCAAmC,EAAE,GAAG,EAAE;QAC3C,MAAM,IAAI,GAAG,IAAA,WAAI,EAAC,UAAU,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;QAChE,MAAM,CAAC,GAAG,EAAE,CACV,IAAA,sDAA0C,EAAC,I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,+BAA+B;YACzC,KAAK,EACH,oFAAoF;SACvF;KACF,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAC,QAAQ,EAAE,KAAK,EAAC,EAAE,EAAE;QACjC,MAAM,IAAI,GAAG,IAAA,WAAI,EAAC,UAAU,EAAE,eAAe,EAAE,QAAQ,CAAC,CAAC;QACzD,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CACzB,IAAI,iCAAe,CACjB,IAAI,EACJ,0CAA0C,KAAK,EAAE,CAClD,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iCAAiC,EAAE,GAAG,EAAE;QACzC,MAAM,IAAI,GAAG,IAAA,WAAI,EAAC,UAAU,EAAE,eAAe,EAAE,sBAAsB,CAAC,CAAC;QACvE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CACzB,IAAI,iCAAe,CACjB,IAAI,EACJ,sKAAsK,CACvK,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coveo/push-api-client",
3
- "version": "1.5.5",
3
+ "version": "1.6.0",
4
4
  "description": "Push API client",
5
5
  "main": "./dist/index.js",
6
6
  "files": [
@@ -10,7 +10,7 @@
10
10
  "types": "./dist/definitions/index.d.ts",
11
11
  "dependencies": {
12
12
  "@coveo/bueno": "^0.34.1",
13
- "@coveord/platform-client": "^28.0.0",
13
+ "@coveord/platform-client": "^29.0.0",
14
14
  "abortcontroller-polyfill": "^1.7.1",
15
15
  "axios": "^0.26.0",
16
16
  "dayjs": "^1.10.4",
@@ -1 +0,0 @@
1
- {"version":3,"file":"validatorErrors.js","sourceRoot":"","sources":["../../src/validation/validatorErrors.ts"],"names":[],"mappings":";;;AAEA,MAAsB,sBAAuB,SAAQ,KAAK;IAExD,YAAmB,OAAgB;QACjC,KAAK,CAAC,OAAO,CAAC,CAAC;QAFV,SAAI,GAAG,uBAAuB,CAAC;IAGtC,CAAC;CACF;AALD,wDAKC;AAED,MAAa,aAAc,SAAQ,sBAAsB;IAEvD,YAAmB,CAAW;QAC5B,KAAK,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAC;QAFlD,SAAI,GAAG,kBAAkB,CAAC;IAGjC,CAAC;CACF;AALD,sCAKC;AACD,MAAa,iBAAkB,SAAQ,sBAAsB;IAE3D,YAAmB,CAAW;QAC5B,KAAK,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QAFnC,SAAI,GAAG,uBAAuB,CAAC;IAGtC,CAAC;CACF;AALD,8CAKC;AAED,MAAa,eAAgB,SAAQ,sBAAsB;IAEzD,YAAmB,CAAW,EAAE,WAAmB;QACjD,KAAK,CAAC,GAAG,CAAC,kCAAkC,WAAW,EAAE,CAAC,CAAC;QAFtD,SAAI,GAAG,6BAA6B,CAAC;IAG5C,CAAC;CACF;AALD,0CAKC;AAED,MAAa,oBAAqB,SAAQ,sBAAsB;IAE9D,YAAmB,CAAW,EAAE,WAAmB;QACjD,KAAK,CACH,GAAG,CAAC,yDAAyD,WAAW,EAAE,CAC3E,CAAC;QAJG,SAAI,GAAG,6BAA6B,CAAC;IAK5C,CAAC;CACF;AAPD,oDAOC"}