@onylab/common-api 1.1.6 → 1.2.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.
@@ -1157,9 +1157,54 @@ declare module "api/hubrise/service/HubriseApi" {
1157
1157
  getCatalogs(hubriseLocationId: string): Promise<HubriseMenuCatalogContract[]>;
1158
1158
  }
1159
1159
  }
1160
+ declare module "api/hubrise/model/menu/HubriseMenuImageContract" {
1161
+ export interface HubriseMenuImageContract {
1162
+ id: string;
1163
+ type: string;
1164
+ size: string;
1165
+ md5: string;
1166
+ seconds_before_removal: number;
1167
+ }
1168
+ }
1160
1169
  declare module "api/index" {
1161
1170
  export * from "api/hubrise/mockup/HubriseApiMockup";
1171
+ export * from "api/hubrise/service/HubriseApiContract";
1162
1172
  export * from "api/hubrise/service/HubriseApi";
1173
+ export * from "api/hubrise/model/account/HubriseAccountContract";
1174
+ export * from "api/hubrise/model/account/HubriseAuthContract";
1175
+ export * from "api/hubrise/model/common/HubriseCurrencyCode";
1176
+ export * from "api/hubrise/model/common/HubriseCustomFieldsContract";
1177
+ export * from "api/hubrise/model/common/HubriseLocale";
1178
+ export * from "api/hubrise/model/common/HubriseTimezoneContract";
1179
+ export * from "api/hubrise/model/common/HubriseTimezoneId";
1180
+ export * from "api/hubrise/model/customer/HubriseCustomerContract";
1181
+ export * from "api/hubrise/model/customer/HubriseCustomerListContract";
1182
+ export * from "api/hubrise/model/location/HubriseLocationContract";
1183
+ export * from "api/hubrise/model/location/HubriseOpeningHoursContract";
1184
+ export * from "api/hubrise/model/location/HubriseOrderAcceptanceContract";
1185
+ export * from "api/hubrise/model/menu/HubriseMenuCatalogContract";
1186
+ export * from "api/hubrise/model/menu/HubriseMenuCategoryContract";
1187
+ export * from "api/hubrise/model/menu/HubriseMenuChargeContract";
1188
+ export * from "api/hubrise/model/menu/HubriseMenuDealContract";
1189
+ export * from "api/hubrise/model/menu/HubriseMenuDealLineContract";
1190
+ export * from "api/hubrise/model/menu/HubriseMenuDiscountContract";
1191
+ export * from "api/hubrise/model/menu/HubriseMenuImageContract";
1192
+ export * from "api/hubrise/model/menu/HubriseMenuPriceOverrideContract";
1193
+ export * from "api/hubrise/model/menu/HubriseMenuProductContract";
1194
+ export * from "api/hubrise/model/menu/HubriseMenuProductOptionContract";
1195
+ export * from "api/hubrise/model/menu/HubriseMenuProductOptionListContract";
1196
+ export * from "api/hubrise/model/menu/HubriseMenuRestrictionsContract";
1197
+ export * from "api/hubrise/model/menu/HubriseMenuSkuContract";
1198
+ export * from "api/hubrise/model/order/HubriseOrderChargeContract";
1199
+ export * from "api/hubrise/model/order/HubriseOrderContract";
1200
+ export * from "api/hubrise/model/order/HubriseOrderDealContract";
1201
+ export * from "api/hubrise/model/order/HubriseOrderDiscountContract";
1202
+ export * from "api/hubrise/model/order/HubriseOrderItemContract";
1203
+ export * from "api/hubrise/model/order/HubriseOrderLoyaltyOperationContract";
1204
+ export * from "api/hubrise/model/order/HubriseOrderOptionContract";
1205
+ export * from "api/hubrise/model/order/HubriseOrderPaymentContract";
1206
+ export * from "api/hubrise/model/order/HubriseOrderStatus";
1207
+ export * from "api/hubrise/model/user/HubriseUserContract";
1163
1208
  }
1164
1209
  declare module "constant/Path" {
1165
1210
  export class Path {
@@ -1320,13 +1365,13 @@ declare module "http/ServerContract" {
1320
1365
  }
1321
1366
  }
1322
1367
  declare module "http/Server" {
1323
- import * as express from 'express';
1368
+ import { Express } from 'express';
1324
1369
  import { ServerContract } from "http/ServerContract";
1325
1370
  export class Server implements ServerContract {
1326
1371
  static readonly DEFAULT_PORT: number;
1327
1372
  static readonly SALT: string;
1328
1373
  private app;
1329
- create(origins: string[], port?: number): Promise<express.Express>;
1374
+ create(origins: string[], port?: number): Promise<Express>;
1330
1375
  getSessionSecret(sessionCookieName: string): string;
1331
1376
  }
1332
1377
  }
@@ -1884,15 +1929,6 @@ declare module "@onylab/common-api" {
1884
1929
  import * as Util from "util/index";
1885
1930
  export { Api, Constant, Exception, Http, Service, Template, Tool, Util };
1886
1931
  }
1887
- declare module "api/hubrise/model/menu/HubriseMenuImageContract" {
1888
- export interface HubriseMenuImageContract {
1889
- id: string;
1890
- type: string;
1891
- size: string;
1892
- md5: string;
1893
- seconds_before_removal: number;
1894
- }
1895
- }
1896
1932
  declare module "exception/ForbiddenException" {
1897
1933
  import { MainException } from "exception/MainException";
1898
1934
  import { ExceptionContract } from "exception/ExceptionContract";
package/mocha.env.js ADDED
@@ -0,0 +1 @@
1
+ process.env.NODE_ENV = 'test';
package/package.json CHANGED
@@ -3,11 +3,11 @@
3
3
  "description": "Common API",
4
4
  "main": "dist/common-api.node.min.js",
5
5
  "types": "dist/common-api.d.ts",
6
- "version": "1.1.6",
6
+ "version": "1.2.0",
7
7
  "author": "Paul M.",
8
8
  "license": "NO LICENSE",
9
9
  "engines": {
10
- "node": ">=18"
10
+ "node": ">=22"
11
11
  },
12
12
  "private": false,
13
13
  "scripts": {
@@ -20,68 +20,66 @@
20
20
  "postinstall": "npm dedupe",
21
21
  "release": "bash script/release.sh",
22
22
  "start": "node dist/common-api.node.min.js",
23
- "test": "mocha",
23
+ "test": "mocha test/**/*.ts",
24
24
  "validate": "(npm run compile --silent && npm run lint --silent && npm run test || { exit 1; })"
25
25
  },
26
26
  "dependencies": {
27
27
  "@sentry/node": "^8.35.0",
28
- "@sentry/profiling-node": "^8.35.0",
28
+ "@sentry/profiling-node": "^8.55.0",
29
29
  "@types/clean-css": "^4.2.11",
30
- "@types/compression": "^1.7.5",
30
+ "@types/compression": "^1.8.1",
31
31
  "@types/html-minifier-terser": "^7.0.2",
32
- "axios": "^1.7.7",
32
+ "axios": "^1.12.2",
33
33
  "clean-css": "^5.3.3",
34
34
  "color-name": "^1.1.4",
35
- "compression": "^1.7.4",
36
- "connect-timeout": "^1.9.0",
35
+ "compression": "^1.8.1",
36
+ "connect-timeout": "^1.9.1",
37
37
  "cors": "^2.8.5",
38
- "emoji-regex": "^10.4.0",
39
- "express": "^4.21.1",
38
+ "emoji-regex": "^10.5.0",
39
+ "express": "^5.1.0",
40
40
  "fast-diff": "^1.3.0",
41
- "helmet": "^8.0.0",
41
+ "helmet": "^8.1.0",
42
42
  "html-minifier-terser": "^7.2.0",
43
43
  "iconv-lite": "^0.6.3",
44
44
  "lodash": "^4.17.21",
45
- "luxon": "^3.5.0",
45
+ "luxon": "^3.7.2",
46
46
  "mustache": "^4.2.0",
47
- "node-mailjet": "^6.0.6",
47
+ "node-mailjet": "^6.0.9",
48
48
  "prettyjson": "^1.2.5",
49
49
  "retry": "^0.13.1",
50
- "shopify-api-node": "^3.14.0",
50
+ "shopify-api-node": "^3.15.0",
51
51
  "shopify-token": "^4.1.0",
52
52
  "typeorm": "^0.2.45"
53
53
  },
54
54
  "devDependencies": {
55
- "@faker-js/faker": "^9.1.0",
55
+ "@faker-js/faker": "^9.9.0",
56
56
  "@pamls/eslint-config": "^0.2.24",
57
57
  "@types/chai": "^4.3.20",
58
58
  "@types/color-name": "^1.1.5",
59
59
  "@types/connect-timeout": "^0.0.39",
60
- "@types/cors": "^2.8.17",
61
- "@types/express": "^5.0.0",
60
+ "@types/cors": "^2.8.19",
61
+ "@types/express": "^5.0.3",
62
62
  "@types/glob": "^8.1.0",
63
- "@types/lodash": "^4.17.12",
64
- "@types/luxon": "^3.4.2",
65
- "@types/mocha": "^10.0.9",
66
- "@types/mustache": "^4.2.5",
67
- "@types/node": "^22.8.2",
63
+ "@types/lodash": "^4.17.20",
64
+ "@types/luxon": "^3.7.1",
65
+ "@types/mocha": "^10.0.10",
66
+ "@types/mustache": "^4.2.6",
67
+ "@types/node": "^22.18.8",
68
68
  "@types/node-mailjet": "^3.3.12",
69
69
  "@types/prettyjson": "^0.0.33",
70
70
  "@types/retry": "^0.12.5",
71
71
  "@types/sinon": "^10.0.20",
72
- "@types/webpack-env": "^1.18.5",
72
+ "@types/webpack-env": "^1.18.8",
73
73
  "chai": "^4.5.0",
74
74
  "copy-webpack-plugin": "^12.0.2",
75
- "mocha": "^10.7.3",
76
- "nock": "^13.5.5",
75
+ "mocha": "^10.8.2",
76
+ "nock": "^13.5.6",
77
77
  "sinon": "^15.2.0",
78
- "source-map-support": "^0.5.21",
79
- "ts-loader": "^9.5.1",
80
- "ts-node": "^10.9.2",
81
- "tsconfig-paths": "^4.2.0",
82
- "tsconfig-paths-webpack-plugin": "^4.1.0",
83
- "typescript": "^5.6.3",
84
- "webpack": "^5.95.0",
78
+ "ts-loader": "^9.5.4",
79
+ "tsconfig-paths-webpack-plugin": "^4.2.0",
80
+ "tsx": "^4.20.6",
81
+ "typescript": "^5.9.3",
82
+ "webpack": "^5.102.0",
85
83
  "webpack-cli": "^5.1.4",
86
84
  "webpack-node-externals": "^3.0.0"
87
85
  },