@kontent-ai/delivery-sdk 16.4.3 → 16.4.4
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/.npmignore +15 -15
- package/LICENSE.md +9 -9
- package/dist/bundles/kontent-delivery.umd.js +5077 -4620
- package/dist/bundles/kontent-delivery.umd.js.map +1 -1
- package/dist/bundles/kontent-delivery.umd.min.js +1 -1
- package/dist/bundles/kontent-delivery.umd.min.js.map +1 -1
- package/dist/bundles/report.json +1 -1
- package/dist/bundles/report.min.json +1 -1
- package/dist/bundles/stats.json +7195 -5946
- package/dist/bundles/stats.min.json +11923 -10797
- package/dist/cjs/sdk-info.generated.js +1 -1
- package/dist/es6/sdk-info.generated.js +1 -1
- package/dist/esnext/sdk-info.generated.js +1 -1
- package/lib/client/delivery-client.factory.ts +9 -9
- package/lib/client/delivery-client.ts +163 -163
- package/lib/client/idelivery-client.interface.ts +110 -110
- package/lib/client/index.ts +3 -3
- package/lib/config/delivery-configs.ts +98 -98
- package/lib/config/index.ts +1 -1
- package/lib/contracts/contracts.ts +265 -265
- package/lib/contracts/index.ts +1 -1
- package/lib/elements/element-models.ts +89 -89
- package/lib/elements/element-resolver.ts +3 -3
- package/lib/elements/element-type.ts +16 -16
- package/lib/elements/elements.ts +70 -70
- package/lib/elements/index.ts +4 -4
- package/lib/images/image-url-transformation-builder.factory.ts +5 -5
- package/lib/images/image-url-transformation-builder.ts +181 -181
- package/lib/images/image.models.ts +4 -4
- package/lib/images/index.ts +3 -3
- package/lib/index.ts +12 -12
- package/lib/mappers/element.mapper.ts +504 -504
- package/lib/mappers/generic-element.mapper.ts +20 -20
- package/lib/mappers/index.ts +8 -8
- package/lib/mappers/item.mapper.ts +181 -181
- package/lib/mappers/language.mapper.ts +24 -24
- package/lib/mappers/sync.mapper.ts +32 -32
- package/lib/mappers/taxonomy.mapper.ts +77 -77
- package/lib/mappers/type.mapper.ts +76 -76
- package/lib/mappers/used-in.mapper.ts +20 -20
- package/lib/models/common/base-responses.ts +13 -13
- package/lib/models/common/common-models.ts +118 -118
- package/lib/models/common/filters.ts +280 -280
- package/lib/models/common/headers.ts +5 -5
- package/lib/models/common/index.ts +7 -7
- package/lib/models/common/pagination.class.ts +7 -7
- package/lib/models/common/parameters.ts +189 -189
- package/lib/models/common/sort-order.ts +1 -1
- package/lib/models/content-type-models.ts +42 -42
- package/lib/models/element-models.ts +51 -51
- package/lib/models/index.ts +9 -9
- package/lib/models/item-models.ts +192 -192
- package/lib/models/language-models.ts +17 -17
- package/lib/models/responses.ts +137 -137
- package/lib/models/sync-models.ts +18 -18
- package/lib/models/taxonomy-models.ts +25 -25
- package/lib/query/common/base-item-listing-query.class.ts +274 -274
- package/lib/query/common/base-listing-query.class.ts +95 -95
- package/lib/query/common/base-query.class.ts +148 -148
- package/lib/query/element/element-query.class.ts +45 -45
- package/lib/query/index.ts +13 -13
- package/lib/query/item/multiple-items-query.class.ts +183 -183
- package/lib/query/item/single-item-query.class.ts +106 -106
- package/lib/query/items-feed/items-feed-query.class.ts +191 -191
- package/lib/query/language/languages-query.class.ts +91 -91
- package/lib/query/sync/initialize-sync-query.class.ts +83 -83
- package/lib/query/sync/sync-changes-query.class.ts +56 -56
- package/lib/query/taxonomy/taxonomies-query.class.ts +82 -82
- package/lib/query/taxonomy/taxonomy-query.class.ts +50 -50
- package/lib/query/type/multiple-type-query.class.ts +95 -95
- package/lib/query/type/single-type-query.class.ts +45 -45
- package/lib/query/used-in/used-in-query.class.ts +126 -126
- package/lib/sdk-info.generated.ts +1 -1
- package/lib/services/base-delivery-query.service.ts +375 -375
- package/lib/services/delivery-query.service.ts +336 -336
- package/lib/services/index.ts +2 -2
- package/lib/services/mapping.service.ts +223 -223
- package/lib/utilities/codename.helper.ts +10 -10
- package/lib/utilities/delivery-url.helper.ts +11 -11
- package/lib/utilities/enum.helper.ts +38 -38
- package/lib/utilities/index.ts +3 -3
- package/package.json +96 -96
- package/readme.md +531 -531
package/package.json
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@kontent-ai/delivery-sdk",
|
|
3
|
-
"version": "16.4.
|
|
4
|
-
"repository": {
|
|
5
|
-
"type": "git",
|
|
6
|
-
"url": "https://github.com/kontent-ai/delivery-sdk-js"
|
|
7
|
-
},
|
|
8
|
-
"private": false,
|
|
9
|
-
"author": "richard sustek",
|
|
10
|
-
"license": "MIT",
|
|
11
|
-
"description": "Official Kontent.AI Delivery API SDK",
|
|
12
|
-
"keywords": [
|
|
13
|
-
"Kontent",
|
|
14
|
-
"Kontent.ai",
|
|
15
|
-
"Kontent SDK",
|
|
16
|
-
"Kontent API",
|
|
17
|
-
"Kontent Delivery",
|
|
18
|
-
"Kontent Javascript",
|
|
19
|
-
"Kontent Node.js",
|
|
20
|
-
"Kontent Typescript"
|
|
21
|
-
],
|
|
22
|
-
"engines": {
|
|
23
|
-
"node": ">= 20"
|
|
24
|
-
},
|
|
25
|
-
"main": "./dist/cjs/index.js",
|
|
26
|
-
"module": "./dist/es6/index.js",
|
|
27
|
-
"es2015": "./dist/es6/index.js",
|
|
28
|
-
"types": "./dist/cjs/index.d.ts",
|
|
29
|
-
"standard-version": {
|
|
30
|
-
"scripts": {
|
|
31
|
-
"postchangelog": "npm run set-sdk-version"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"scripts": {
|
|
35
|
-
"release": "npm run lint:check && standard-version",
|
|
36
|
-
"release:major": "npm run lint:check && standard-version --release-as major",
|
|
37
|
-
"release:major:beta": "npm run lint:check && standard-version --prerelease --release-as major",
|
|
38
|
-
"release:beta": "standard-version --prerelease",
|
|
39
|
-
"lint:check": "npx eslint lib",
|
|
40
|
-
"test:browser": "karma start karma.conf.js",
|
|
41
|
-
"test:gh-actions": "karma start karma-gh-actions.conf.js",
|
|
42
|
-
"test:node": "npm run build:commonjs && npx mocha --timeout 15s -- \"test/node/**/*.js\"",
|
|
43
|
-
"test:all": "npm run test:node && npm run test:gh-actions",
|
|
44
|
-
"new-patch": "npm version patch && npm run set-sdk-version && npm run check-version ",
|
|
45
|
-
"new-minor": "npm version minor && npm run set-sdk-version && npm run check-version ",
|
|
46
|
-
"new-major": "npm version major && npm run set-sdk-version && npm run check-version ",
|
|
47
|
-
"prepublishOnly": "npm run lint:check && npm run check-version && npm run build:all && npm run test:all && npm run push:tags",
|
|
48
|
-
"set-sdk-version": "tsx ./misc/set-sdk-version.ts",
|
|
49
|
-
"check-version": "tsx ./misc/verify-sdk-version.ts",
|
|
50
|
-
"webpack:dev": "webpack -- --mode development --config webpack.config.js --progress",
|
|
51
|
-
"webpack:prod": "webpack -- --mode production --config webpack.config.js --progress",
|
|
52
|
-
"publish:beta": "npm publish --tag=next",
|
|
53
|
-
"build:umd": "npm run webpack:dev && npm run webpack:prod",
|
|
54
|
-
"build:es6": "tsc -m es6 --outDir dist/es6 --p tsconfig.prod.json",
|
|
55
|
-
"build:esnext": "tsc -m esnext --outDir dist/esnext --p tsconfig.prod.json",
|
|
56
|
-
"build:commonjs": "tsc -m commonjs --outDir dist/cjs --p tsconfig.prod.json",
|
|
57
|
-
"build:all": "npm run clean && npm run lint:check && npm run build:umd && npm run build:es6 && npm run build:esnext && npm run build:commonjs",
|
|
58
|
-
"bundle-stats:min": "npm run build:umd && webpack-bundle-analyzer dist/bundles/stats.min.json",
|
|
59
|
-
"bundle-stats": "npm run build:umd && webpack-bundle-analyzer dist/bundles/stats.json",
|
|
60
|
-
"push:tags": "git push --tags",
|
|
61
|
-
"clean": "tsx clean.ts"
|
|
62
|
-
},
|
|
63
|
-
"dependencies": {
|
|
64
|
-
"@kontent-ai/core-sdk": "10.12.
|
|
65
|
-
},
|
|
66
|
-
"devDependencies": {
|
|
67
|
-
"@types/jasmine": "5.1.12",
|
|
68
|
-
"@types/node": "24.10.0",
|
|
69
|
-
"colors": "1.4.0",
|
|
70
|
-
"jasmine-core": "5.12.1",
|
|
71
|
-
"jasmine-spec-reporter": "7.0.0",
|
|
72
|
-
"karma": "6.4.4",
|
|
73
|
-
"karma-chrome-launcher": "3.2.0",
|
|
74
|
-
"karma-cli": "2.0.0",
|
|
75
|
-
"karma-coverage-istanbul-reporter": "3.0.3",
|
|
76
|
-
"karma-jasmine": "5.1.0",
|
|
77
|
-
"karma-jasmine-html-reporter": "2.1.0",
|
|
78
|
-
"karma-sourcemap-loader": "0.4.0",
|
|
79
|
-
"karma-typescript": "5.5.4",
|
|
80
|
-
"karma-typescript-es6-transform": "5.5.4",
|
|
81
|
-
"karma-webpack": "5.0.1",
|
|
82
|
-
"lcov-parse": "1.0.0",
|
|
83
|
-
"mocha": "11.7.5",
|
|
84
|
-
"standard-version": "9.5.0",
|
|
85
|
-
"ts-loader": "9.5.4",
|
|
86
|
-
"tsx": "4.20.6",
|
|
87
|
-
"@typescript-eslint/eslint-plugin": "8.39.0",
|
|
88
|
-
"@typescript-eslint/parser": "8.39.0",
|
|
89
|
-
"eslint": "9.32.0",
|
|
90
|
-
"typescript": "5.2.2",
|
|
91
|
-
"webpack": "5.
|
|
92
|
-
"webpack-bundle-analyzer": "4.10.2",
|
|
93
|
-
"webpack-cli": "6.0.1",
|
|
94
|
-
"typescript-eslint": "8.39.0"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@kontent-ai/delivery-sdk",
|
|
3
|
+
"version": "16.4.4",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/kontent-ai/delivery-sdk-js"
|
|
7
|
+
},
|
|
8
|
+
"private": false,
|
|
9
|
+
"author": "richard sustek",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"description": "Official Kontent.AI Delivery API SDK",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"Kontent",
|
|
14
|
+
"Kontent.ai",
|
|
15
|
+
"Kontent SDK",
|
|
16
|
+
"Kontent API",
|
|
17
|
+
"Kontent Delivery",
|
|
18
|
+
"Kontent Javascript",
|
|
19
|
+
"Kontent Node.js",
|
|
20
|
+
"Kontent Typescript"
|
|
21
|
+
],
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">= 20"
|
|
24
|
+
},
|
|
25
|
+
"main": "./dist/cjs/index.js",
|
|
26
|
+
"module": "./dist/es6/index.js",
|
|
27
|
+
"es2015": "./dist/es6/index.js",
|
|
28
|
+
"types": "./dist/cjs/index.d.ts",
|
|
29
|
+
"standard-version": {
|
|
30
|
+
"scripts": {
|
|
31
|
+
"postchangelog": "npm run set-sdk-version"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"release": "npm run lint:check && standard-version",
|
|
36
|
+
"release:major": "npm run lint:check && standard-version --release-as major",
|
|
37
|
+
"release:major:beta": "npm run lint:check && standard-version --prerelease --release-as major",
|
|
38
|
+
"release:beta": "standard-version --prerelease",
|
|
39
|
+
"lint:check": "npx eslint lib",
|
|
40
|
+
"test:browser": "karma start karma.conf.js",
|
|
41
|
+
"test:gh-actions": "karma start karma-gh-actions.conf.js",
|
|
42
|
+
"test:node": "npm run build:commonjs && npx mocha --timeout 15s -- \"test/node/**/*.js\"",
|
|
43
|
+
"test:all": "npm run test:node && npm run test:gh-actions",
|
|
44
|
+
"new-patch": "npm version patch && npm run set-sdk-version && npm run check-version ",
|
|
45
|
+
"new-minor": "npm version minor && npm run set-sdk-version && npm run check-version ",
|
|
46
|
+
"new-major": "npm version major && npm run set-sdk-version && npm run check-version ",
|
|
47
|
+
"prepublishOnly": "npm run lint:check && npm run check-version && npm run build:all && npm run test:all && npm run push:tags",
|
|
48
|
+
"set-sdk-version": "tsx ./misc/set-sdk-version.ts",
|
|
49
|
+
"check-version": "tsx ./misc/verify-sdk-version.ts",
|
|
50
|
+
"webpack:dev": "webpack -- --mode development --config webpack.config.js --progress",
|
|
51
|
+
"webpack:prod": "webpack -- --mode production --config webpack.config.js --progress",
|
|
52
|
+
"publish:beta": "npm publish --tag=next",
|
|
53
|
+
"build:umd": "npm run webpack:dev && npm run webpack:prod",
|
|
54
|
+
"build:es6": "tsc -m es6 --outDir dist/es6 --p tsconfig.prod.json",
|
|
55
|
+
"build:esnext": "tsc -m esnext --outDir dist/esnext --p tsconfig.prod.json",
|
|
56
|
+
"build:commonjs": "tsc -m commonjs --outDir dist/cjs --p tsconfig.prod.json",
|
|
57
|
+
"build:all": "npm run clean && npm run lint:check && npm run build:umd && npm run build:es6 && npm run build:esnext && npm run build:commonjs",
|
|
58
|
+
"bundle-stats:min": "npm run build:umd && webpack-bundle-analyzer dist/bundles/stats.min.json",
|
|
59
|
+
"bundle-stats": "npm run build:umd && webpack-bundle-analyzer dist/bundles/stats.json",
|
|
60
|
+
"push:tags": "git push --tags",
|
|
61
|
+
"clean": "tsx clean.ts"
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@kontent-ai/core-sdk": "10.12.6"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@types/jasmine": "5.1.12",
|
|
68
|
+
"@types/node": "24.10.0",
|
|
69
|
+
"colors": "1.4.0",
|
|
70
|
+
"jasmine-core": "5.12.1",
|
|
71
|
+
"jasmine-spec-reporter": "7.0.0",
|
|
72
|
+
"karma": "6.4.4",
|
|
73
|
+
"karma-chrome-launcher": "3.2.0",
|
|
74
|
+
"karma-cli": "2.0.0",
|
|
75
|
+
"karma-coverage-istanbul-reporter": "3.0.3",
|
|
76
|
+
"karma-jasmine": "5.1.0",
|
|
77
|
+
"karma-jasmine-html-reporter": "2.1.0",
|
|
78
|
+
"karma-sourcemap-loader": "0.4.0",
|
|
79
|
+
"karma-typescript": "5.5.4",
|
|
80
|
+
"karma-typescript-es6-transform": "5.5.4",
|
|
81
|
+
"karma-webpack": "5.0.1",
|
|
82
|
+
"lcov-parse": "1.0.0",
|
|
83
|
+
"mocha": "11.7.5",
|
|
84
|
+
"standard-version": "9.5.0",
|
|
85
|
+
"ts-loader": "9.5.4",
|
|
86
|
+
"tsx": "4.20.6",
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "8.39.0",
|
|
88
|
+
"@typescript-eslint/parser": "8.39.0",
|
|
89
|
+
"eslint": "9.32.0",
|
|
90
|
+
"typescript": "5.2.2",
|
|
91
|
+
"webpack": "5.108.3",
|
|
92
|
+
"webpack-bundle-analyzer": "4.10.2",
|
|
93
|
+
"webpack-cli": "6.0.1",
|
|
94
|
+
"typescript-eslint": "8.39.0"
|
|
95
|
+
}
|
|
96
|
+
}
|