@mxpicture/gcp-functions-common 1.1.85 → 1.1.86
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deco.routes.d.ts","sourceRoot":"","sources":["../../src/decorator/deco.routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,GACrB,SAAS,MAAM,KACd,MAAM,CAAC,aAAa,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"deco.routes.d.ts","sourceRoot":"","sources":["../../src/decorator/deco.routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,GACrB,SAAS,MAAM,KACd,MAAM,CAAC,aAAa,EAAE,eAAe,CAoCtC,CAAC"}
|
|
@@ -12,21 +12,37 @@ export const crudRoutes = (docName) => ({
|
|
|
12
12
|
create: {
|
|
13
13
|
requestType: `CreateInput<${docName}>`,
|
|
14
14
|
responseType: docName,
|
|
15
|
+
_internalIsCrud: true,
|
|
15
16
|
},
|
|
16
17
|
update: {
|
|
17
18
|
requestType: `UpdateInput<${docName}>`,
|
|
18
19
|
responseType: docName,
|
|
20
|
+
_internalIsCrud: true,
|
|
21
|
+
},
|
|
22
|
+
delete: {
|
|
23
|
+
requestType: "DocumentKey",
|
|
24
|
+
responseType: "{ deleted: true }",
|
|
25
|
+
_internalIsCrud: true,
|
|
26
|
+
},
|
|
27
|
+
get: {
|
|
28
|
+
requestType: "DocumentKey",
|
|
29
|
+
responseType: docName,
|
|
30
|
+
_internalIsCrud: true,
|
|
19
31
|
},
|
|
20
|
-
delete: { requestType: "DocumentKey", responseType: "{ deleted: true }" },
|
|
21
|
-
get: { requestType: "DocumentKey", responseType: docName },
|
|
22
32
|
query: {
|
|
23
33
|
requestType: "ApiFilter | undefined | null | never",
|
|
24
34
|
responseType: `${docName}[]`,
|
|
35
|
+
_internalIsCrud: true,
|
|
25
36
|
},
|
|
26
37
|
count: {
|
|
27
38
|
requestType: "ApiFilter | undefined | null | never",
|
|
28
39
|
responseType: "{ count: number }",
|
|
40
|
+
_internalIsCrud: true,
|
|
41
|
+
},
|
|
42
|
+
exists: {
|
|
43
|
+
requestType: "DocumentKey",
|
|
44
|
+
responseType: "{ exists: boolean }",
|
|
45
|
+
_internalIsCrud: true,
|
|
29
46
|
},
|
|
30
|
-
exists: { requestType: "DocumentKey", responseType: "{ exists: boolean }" },
|
|
31
47
|
});
|
|
32
48
|
//# sourceMappingURL=deco.routes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deco.routes.js","sourceRoot":"","sources":["../../src/decorator/deco.routes.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,OAAe,EACyB,EAAE,CAAC,CAAC;IAC5C,MAAM,EAAE;QACN,WAAW,EAAE,eAAe,OAAO,GAAG;QACtC,YAAY,EAAE,OAAO;KACtB;IACD,MAAM,EAAE;QACN,WAAW,EAAE,eAAe,OAAO,GAAG;QACtC,YAAY,EAAE,OAAO;KACtB;IACD,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"deco.routes.js","sourceRoot":"","sources":["../../src/decorator/deco.routes.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,OAAe,EACyB,EAAE,CAAC,CAAC;IAC5C,MAAM,EAAE;QACN,WAAW,EAAE,eAAe,OAAO,GAAG;QACtC,YAAY,EAAE,OAAO;QACrB,eAAe,EAAE,IAAI;KACtB;IACD,MAAM,EAAE;QACN,WAAW,EAAE,eAAe,OAAO,GAAG;QACtC,YAAY,EAAE,OAAO;QACrB,eAAe,EAAE,IAAI;KACtB;IACD,MAAM,EAAE;QACN,WAAW,EAAE,aAAa;QAC1B,YAAY,EAAE,mBAAmB;QACjC,eAAe,EAAE,IAAI;KACtB;IACD,GAAG,EAAE;QACH,WAAW,EAAE,aAAa;QAC1B,YAAY,EAAE,OAAO;QACrB,eAAe,EAAE,IAAI;KACtB;IACD,KAAK,EAAE;QACL,WAAW,EAAE,sCAAsC;QACnD,YAAY,EAAE,GAAG,OAAO,IAAI;QAC5B,eAAe,EAAE,IAAI;KACtB;IACD,KAAK,EAAE;QACL,WAAW,EAAE,sCAAsC;QACnD,YAAY,EAAE,mBAAmB;QACjC,eAAe,EAAE,IAAI;KACtB;IACD,MAAM,EAAE;QACN,WAAW,EAAE,aAAa;QAC1B,YAAY,EAAE,qBAAqB;QACnC,eAAe,EAAE,IAAI;KACtB;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.deco.common.d.ts","sourceRoot":"","sources":["../../src/types/types.deco.common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE3D;;;;;GAKG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,IACxB;IACE,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,IAAI,CAAC,EAAE,CAAC,CAAC;CACV,GACD,CAAC,CAAC;AAEN;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,kDAAkD;IAClD,gBAAgB,EAAE,MAAM,CAAC;IACzB,qDAAqD;IACrD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kDAAkD;IAClD,UAAU,EAAE,SAAS,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,wDAAwD;IACxD,WAAW,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,YAAY,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.deco.common.d.ts","sourceRoot":"","sources":["../../src/types/types.deco.common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE3D;;;;;GAKG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,IACxB;IACE,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,IAAI,CAAC,EAAE,CAAC,CAAC;CACV,GACD,CAAC,CAAC;AAEN;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,kDAAkD;IAClD,gBAAgB,EAAE,MAAM,CAAC;IACzB,qDAAqD;IACrD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kDAAkD;IAClD,UAAU,EAAE,SAAS,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,wDAAwD;IACxD,WAAW,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,+BAA+B;IAC/B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
|