@matochmat/api-client 1.3.2-next.4 → 1.3.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.
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * API endpoint slug.
5
+ */
6
+ const apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug = 'crawling-configuration-text-content-strategy-types';
7
+
8
+ exports.apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug = apiV2CrawlingConfigurationTextContentStrategyTypeApiEndpointSlug;
9
+ //# sourceMappingURL=index.cjs.js.map
package/package.json CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "name": "@matochmat/api-client",
3
3
  "description": "API types and helper functionality for the Mat och Mat API.",
4
- "version": "1.3.2-next.4",
5
- "main": "index.js",
4
+ "version": "1.3.2",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.esm.js",
7
+ "types": "dist/index.d.ts",
6
8
  "repository": {
7
9
  "type": "git",
8
10
  "url": "git+ssh://git@bitbucket.org/mat-och-mat/matochmat-api-client.git"
@@ -19,13 +21,15 @@
19
21
  "engines": {
20
22
  "node": ">=20.9"
21
23
  },
22
- "types": "index.ts",
23
24
  "files": [
24
- "index.ts",
25
25
  "src"
26
26
  ],
27
27
  "devDependencies": {
28
28
  "@matochmat/eslint-plugin": "^1.3.0",
29
+ "@rollup/plugin-commonjs": "^28.0.1",
30
+ "@rollup/plugin-json": "^6.1.0",
31
+ "@rollup/plugin-node-resolve": "^15.3.0",
32
+ "@rollup/plugin-typescript": "^12.1.1",
29
33
  "@types/node": "^22.7.4",
30
34
  "@typescript-eslint/eslint-plugin": "^8.8.1",
31
35
  "eslint": "^8.57.1",
@@ -36,16 +40,18 @@
36
40
  "eslint-plugin-jsdoc": "^50.3.1",
37
41
  "eslint-plugin-sort-destructure-keys": "^2.0.0",
38
42
  "eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
43
+ "rollup": "^4.24.4",
39
44
  "standard-version": "^9.5.0",
40
45
  "tsx": "^4.19.1",
41
46
  "typedoc": "^0.26.8",
42
47
  "typescript": "^5.6.2"
43
48
  },
44
49
  "scripts": {
50
+ "build": "tsx scripts/generateMainIndexFile.ts && rollup -c",
45
51
  "docs:generate": "typedoc 2> /dev/null && git add docs && git commit --no-verify -m 'docs: Autogenerated documentation'",
46
52
  "lint": "eslint ./src --ext .ts",
47
- "release": "( npm whoami || npm login ) && git checkout main && git merge develop --no-ff -m \"chore: Merge branch 'develop' into 'main'\" && tsx scripts/generateRootTypeDefinition.ts && git add index.ts && git commit --no-verify -m 'chore: Autogenerated root type definitions'; npm run docs:generate; standard-version --no-verify && git push origin main develop --tags && npm publish --access public && npm run update-next-tag && git checkout develop && git merge main --ff-only",
48
- "release:next": "( npm whoami || npm login ) && git checkout main && git merge develop --no-ff -m \"chore: Merge branch 'develop' into 'main'\" && tsx scripts/generateRootTypeDefinition.ts && git add index.ts && git commit --no-verify -m 'chore: Autogenerated root type definitions'; npm run docs:generate; standard-version --prerelease next --no-verify && git push origin main develop --tags && npm publish --tag next --access public && git checkout develop && git merge main --ff-only",
53
+ "release": "( npm whoami || npm login ) && git checkout main && git merge develop --no-ff -m \"chore: Merge branch 'develop' into 'main'\" && npm run build && git add dist src && git commit --no-verify -m 'chore: Built dist files and types'; npm run docs:generate; standard-version --no-verify && git push origin main develop --tags && npm publish --access public && npm run update-next-tag && git checkout develop && git merge main --ff-only",
54
+ "release:next": "( npm whoami || npm login ) && git checkout main && git merge develop --no-ff -m \"chore: Merge branch 'develop' into 'main'\" && npm run build && git add dist src && git commit --no-verify -m 'chore: Built dist files and types'; npm run docs:generate; standard-version --prerelease next --no-verify && git push origin main develop --tags && npm publish --tag next --access public && git checkout develop && git merge main --ff-only",
49
55
  "update-next-tag": "npm dist-tag add $(node -p \"require('./package.json').name\")@$(node -p \"require('./package.json').version\") next"
50
56
  },
51
57
  "type": "module"
package/src/index.ts ADDED
@@ -0,0 +1,37 @@
1
+ // Auto-generated index.ts file
2
+
3
+ export * from './v2/baseResponse';
4
+ export * from './v2/cateringFunctionality';
5
+ export * from './v2/city';
6
+ export * from './v2/cityUploadConnection';
7
+ export * from './v2/cityUploadGrouping';
8
+ export * from './v2/crawlingConfiguration';
9
+ export * from './v2/crawlingConfigurationTextContentStrategyType';
10
+ export * from './v2/date';
11
+ export * from './v2/day';
12
+ export * from './v2/deliveryInfo';
13
+ export * from './v2/dinnerFunctionality';
14
+ export * from './v2/foodItem';
15
+ export * from './v2/geodata';
16
+ export * from './v2/integrationV1Configuration';
17
+ export * from './v2/integrationV2Configuration';
18
+ export * from './v2/lunchBoxFunctionality';
19
+ export * from './v2/lunchDish';
20
+ export * from './v2/lunchFunctionality';
21
+ export * from './v2/lunchMenu';
22
+ export * from './v2/month';
23
+ export * from './v2/monthSet';
24
+ export * from './v2/openingHour';
25
+ export * from './v2/restaurant';
26
+ export * from './v2/restaurantFunctionalityType';
27
+ export * from './v2/restaurantUploadConnection';
28
+ export * from './v2/restaurantUploadGrouping';
29
+ export * from './v2/tableBooking';
30
+ export * from './v2/takeAway';
31
+ export * from './v2/upload';
32
+ export * from './v2/uploadConnection';
33
+ export * from './v2/uploadGrouping';
34
+ export * from './v2/version';
35
+ export * from './v2/week';
36
+ export * from './v2/year';
37
+ export * from './v2/yearSet';
package/index.ts DELETED
@@ -1,37 +0,0 @@
1
- // Auto-generated index.ts file
2
-
3
- export * from './src/v2/baseResponse';
4
- export * from './src/v2/cateringFunctionality';
5
- export * from './src/v2/city';
6
- export * from './src/v2/cityUploadConnection';
7
- export * from './src/v2/cityUploadGrouping';
8
- export * from './src/v2/crawlingConfiguration';
9
- export * from './src/v2/crawlingConfigurationTextContentStrategyType';
10
- export * from './src/v2/date';
11
- export * from './src/v2/day';
12
- export * from './src/v2/deliveryInfo';
13
- export * from './src/v2/dinnerFunctionality';
14
- export * from './src/v2/foodItem';
15
- export * from './src/v2/geodata';
16
- export * from './src/v2/integrationV1Configuration';
17
- export * from './src/v2/integrationV2Configuration';
18
- export * from './src/v2/lunchBoxFunctionality';
19
- export * from './src/v2/lunchDish';
20
- export * from './src/v2/lunchFunctionality';
21
- export * from './src/v2/lunchMenu';
22
- export * from './src/v2/month';
23
- export * from './src/v2/monthSet';
24
- export * from './src/v2/openingHour';
25
- export * from './src/v2/restaurant';
26
- export * from './src/v2/restaurantFunctionalityType';
27
- export * from './src/v2/restaurantUploadConnection';
28
- export * from './src/v2/restaurantUploadGrouping';
29
- export * from './src/v2/tableBooking';
30
- export * from './src/v2/takeAway';
31
- export * from './src/v2/upload';
32
- export * from './src/v2/uploadConnection';
33
- export * from './src/v2/uploadGrouping';
34
- export * from './src/v2/version';
35
- export * from './src/v2/week';
36
- export * from './src/v2/year';
37
- export * from './src/v2/yearSet';