@paakd/api 0.0.1
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/dist/src/index.js +21 -0
- package/package.json +59 -0
- package/src/address.spec.ts +662 -0
- package/src/address.ts +300 -0
- package/src/auth.spec.ts +771 -0
- package/src/auth.ts +168 -0
- package/src/compressor/brotli.ts +26 -0
- package/src/index.ts +5 -0
- package/src/interceptors.spec.ts +1343 -0
- package/src/interceptors.ts +224 -0
- package/src/policies.spec.ts +595 -0
- package/src/policies.ts +431 -0
- package/src/products.spec.ts +710 -0
- package/src/products.ts +112 -0
- package/src/profile.spec.ts +626 -0
- package/src/profile.ts +169 -0
- package/src/proto/auth/v1/entities/auth.proto +140 -0
- package/src/proto/auth/v1/entities/policy.proto +57 -0
- package/src/proto/auth/v1/service.proto +26 -0
- package/src/proto/customers/v1/entities/address.proto +101 -0
- package/src/proto/customers/v1/entities/profile.proto +118 -0
- package/src/proto/customers/v1/service.proto +36 -0
- package/src/proto/files/v1/entities/file.proto +62 -0
- package/src/proto/files/v1/service.proto +19 -0
- package/src/proto/products/v1/entities/category.proto +98 -0
- package/src/proto/products/v1/entities/collection.proto +72 -0
- package/src/proto/products/v1/entities/product/create.proto +41 -0
- package/src/proto/products/v1/entities/product/option.proto +17 -0
- package/src/proto/products/v1/entities/product/shared.proto +255 -0
- package/src/proto/products/v1/entities/product/update.proto +66 -0
- package/src/proto/products/v1/entities/tag.proto +73 -0
- package/src/proto/products/v1/entities/taxonomy.proto +146 -0
- package/src/proto/products/v1/entities/type.proto +98 -0
- package/src/proto/products/v1/entities/variant.proto +127 -0
- package/src/proto/products/v1/service.proto +78 -0
- package/src/proto/promotions/v1/entities/campaign.proto +145 -0
- package/src/proto/promotions/v1/service.proto +17 -0
- package/src/proto/stocknodes/v1/entities/stocknode.proto +167 -0
- package/src/proto/stocknodes/v1/service.proto +21 -0
- package/src/registration.ts +170 -0
- package/src/test-utils.ts +176 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./address"), exports);
|
|
18
|
+
__exportStar(require("./auth"), exports);
|
|
19
|
+
__exportStar(require("./policies"), exports);
|
|
20
|
+
__exportStar(require("./profile"), exports);
|
|
21
|
+
__exportStar(require("./registration"), exports);
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@paakd/api",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/shipheat/paakd.git"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"src"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./dist/src/index.js"
|
|
14
|
+
},
|
|
15
|
+
"main": "dist/src/index.js",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"brotli": "1.3.3",
|
|
18
|
+
"@paakd/entities": "0.1.0"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@bufbuild/buf": "^1.60.0",
|
|
22
|
+
"@bufbuild/protobuf": "^2.10.1",
|
|
23
|
+
"@bufbuild/protoc-gen-es": "^2.10.1",
|
|
24
|
+
"@connectrpc/connect": "^2.1.0",
|
|
25
|
+
"@connectrpc/connect-node": "^2.1.0",
|
|
26
|
+
"@connectrpc/protoc-gen-connect-query": "2.2.0",
|
|
27
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
28
|
+
"@eslint/js": "^9.26.0",
|
|
29
|
+
"@types/node": "20.19.25",
|
|
30
|
+
"@types/react": "19.2.5",
|
|
31
|
+
"@types/react-dom": "19.2.3",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^8.46.4",
|
|
33
|
+
"@typescript-eslint/parser": "^8.46.4",
|
|
34
|
+
"@vitest/coverage-v8": "4.0.16",
|
|
35
|
+
"babel-eslint": "10.1.0",
|
|
36
|
+
"eslint": "^9.39.1",
|
|
37
|
+
"eslint-config-prettier": "^9.1.2",
|
|
38
|
+
"eslint-plugin-prettier": "^5.4.1",
|
|
39
|
+
"eslint-plugin-react": "7.37.3",
|
|
40
|
+
"lint-staged": "16.1.2",
|
|
41
|
+
"prettier": "^3.5.3",
|
|
42
|
+
"typescript": "^5.8.3",
|
|
43
|
+
"vitest": "4.0.16",
|
|
44
|
+
"@paakd/config": "0.0.1",
|
|
45
|
+
"@paakd/typescript-config": "0.0.0",
|
|
46
|
+
"@paakd/eslint-config": "0.0.0"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"generate": "buf generate --debug --disable-symlinks",
|
|
50
|
+
"build": "tsc",
|
|
51
|
+
"start:dev": "tsc --watch",
|
|
52
|
+
"dev:checkout": "tsc --watch",
|
|
53
|
+
"test": "vitest",
|
|
54
|
+
"test:ci": "vitest run --coverage",
|
|
55
|
+
"lint": "eslint ./src",
|
|
56
|
+
"check-types": "tsc --noEmit",
|
|
57
|
+
"lint-staged": "lint-staged"
|
|
58
|
+
}
|
|
59
|
+
}
|