@stamhoofd/backend 2.16.0 → 2.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stamhoofd/backend",
3
- "version": "2.16.0",
3
+ "version": "2.17.2",
4
4
  "main": "./dist/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -36,14 +36,14 @@
36
36
  "@simonbackx/simple-encoding": "2.15.0",
37
37
  "@simonbackx/simple-endpoints": "1.14.0",
38
38
  "@simonbackx/simple-logging": "^1.0.1",
39
- "@stamhoofd/backend-i18n": "^2.16.0",
40
- "@stamhoofd/backend-middleware": "^2.16.0",
41
- "@stamhoofd/email": "^2.16.0",
42
- "@stamhoofd/models": "^2.16.0",
43
- "@stamhoofd/queues": "^2.16.0",
44
- "@stamhoofd/sql": "^2.16.0",
45
- "@stamhoofd/structures": "^2.16.0",
46
- "@stamhoofd/utility": "^2.16.0",
39
+ "@stamhoofd/backend-i18n": "^2.17.0",
40
+ "@stamhoofd/backend-middleware": "^2.17.0",
41
+ "@stamhoofd/email": "^2.17.0",
42
+ "@stamhoofd/models": "^2.17.0",
43
+ "@stamhoofd/queues": "^2.17.0",
44
+ "@stamhoofd/sql": "^2.17.0",
45
+ "@stamhoofd/structures": "^2.17.0",
46
+ "@stamhoofd/utility": "^2.17.0",
47
47
  "archiver": "^7.0.1",
48
48
  "aws-sdk": "^2.885.0",
49
49
  "axios": "1.6.8",
@@ -60,5 +60,5 @@
60
60
  "postmark": "4.0.2",
61
61
  "stripe": "^16.6.0"
62
62
  },
63
- "gitHead": "d5f1a4dda2c1623058e96e8ff25d837b28e51bd6"
63
+ "gitHead": "d43bd511d80deca4f467cd48fecf86a711c04565"
64
64
  }
@@ -5,7 +5,7 @@ import { SimpleError } from '@simonbackx/simple-errors';
5
5
  import { Email } from '@stamhoofd/email';
6
6
  import { ArchiverWriterAdapter, exportToExcel, XlsxTransformerSheet, XlsxWriter } from '@stamhoofd/excel-writer';
7
7
  import { getEmailBuilderForTemplate, Platform, RateLimiter } from '@stamhoofd/models';
8
- import { EmailTemplateType, ExcelExportRequest, ExcelExportResponse, ExcelExportType, LimitedFilteredRequest, PaginatedResponse, Recipient, Replacement } from '@stamhoofd/structures';
8
+ import { EmailTemplateType, ExcelExportRequest, ExcelExportResponse, ExcelExportType, LimitedFilteredRequest, PaginatedResponse, Recipient, Replacement, Version } from '@stamhoofd/structures';
9
9
  import { sleep } from "@stamhoofd/utility";
10
10
  import { Context } from '../../../helpers/Context';
11
11
  import { fetchToAsyncIterator } from '../../../helpers/fetchToAsyncIterator';
@@ -157,7 +157,7 @@ export class ExportToExcelEndpoint extends Endpoint<Params, Query, Body, Respons
157
157
 
158
158
  console.log('Done writing excel file')
159
159
 
160
- const url = 'https://'+ STAMHOOFD.domains.api + '/file-cache?file=' + encodeURIComponent(file) + '&name=' + encodeURIComponent(type)
160
+ const url = 'https://'+ STAMHOOFD.domains.api + '/v'+ Version +'/file-cache?file=' + encodeURIComponent(file) + '&name=' + encodeURIComponent(type)
161
161
  return url;
162
162
  }
163
163
  }