@mxpicture/gcp-functions-common 0.2.20 → 0.2.21
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/helper/helper.document.d.ts +3 -1
- package/dist/helper/helper.document.d.ts.map +1 -1
- package/dist/helper/helper.document.js +6 -0
- package/dist/helper/helper.document.js.map +1 -1
- package/dist/helper/index.d.ts +1 -1
- package/dist/helper/index.d.ts.map +1 -1
- package/dist/helper/index.js +1 -1
- package/dist/helper/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types.document.d.ts +2 -2
- package/dist/types/types.document.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import { CallbackAble, DocumentData } from "../types/types.document.js";
|
|
1
|
+
import { CallbackAble, DocumentData, DocumentKeyAdmin } from "../types/types.document.js";
|
|
2
2
|
export declare const callableUnwrap: <T extends DocumentData>(c: CallbackAble<T>) => Promise<T>;
|
|
3
|
+
export declare const documentKeyAdmin: Required<DocumentKeyAdmin>;
|
|
4
|
+
export declare const DOCUMENT_KEY_ADMIN_KEYS: string[];
|
|
3
5
|
//# sourceMappingURL=helper.document.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.document.d.ts","sourceRoot":"","sources":["../../src/helper/helper.document.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"helper.document.d.ts","sourceRoot":"","sources":["../../src/helper/helper.document.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,cAAc,GAAU,CAAC,SAAS,YAAY,EACzD,GAAG,YAAY,CAAC,CAAC,CAAC,eAC0B,CAAC;AAE/C,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB,CAIvD,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAAgC,CAAC"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export const callableUnwrap = async (c) => (typeof c === "function" ? await c() : c);
|
|
2
|
+
export const documentKeyAdmin = {
|
|
3
|
+
id: undefined,
|
|
4
|
+
createTime: undefined,
|
|
5
|
+
updateTime: undefined,
|
|
6
|
+
};
|
|
7
|
+
export const DOCUMENT_KEY_ADMIN_KEYS = Object.keys(documentKeyAdmin);
|
|
2
8
|
//# sourceMappingURL=helper.document.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.document.js","sourceRoot":"","sources":["../../src/helper/helper.document.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helper.document.js","sourceRoot":"","sources":["../../src/helper/helper.document.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EACjC,CAAkB,EAClB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/C,MAAM,CAAC,MAAM,gBAAgB,GAA+B;IAC1D,EAAE,EAAE,SAAU;IACd,UAAU,EAAE,SAAU;IACtB,UAAU,EAAE,SAAU;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC"}
|
package/dist/helper/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helper/index.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helper/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/helper/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// This file is auto-generated. Do not edit manually.
|
|
2
|
-
export { callableUnwrap } from "./helper.document.js";
|
|
2
|
+
export { callableUnwrap, DOCUMENT_KEY_ADMIN_KEYS, documentKeyAdmin, } from "./helper.document.js";
|
|
3
3
|
export { stripObject } from "./helper.object.js";
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/helper/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helper/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helper/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { AnnotationsHeader, AnnotationsProperty, AnnotationsRoute, stripAnnotationsHeader, stripAnnotationsProperty, stripAnnotationsRoute, } from "./types.annotation.js";
|
|
2
|
-
export { CallbackAble, DocumentAdmin, DocumentData, DocumentFieldValue, DocumentKey, WithKey, WithoutKey,
|
|
2
|
+
export { CallbackAble, DocumentAdmin, DocumentData, DocumentFieldValue, DocumentKey, DocumentKeyAdmin, WithKey, WithoutKey, } from "./types.document.js";
|
|
3
3
|
export { ApiFilter, ApiFilterItem, ApiFilterItems } from "./types.filter.js";
|
|
4
4
|
export { FunctionFromRoutes, FunctionRequest, FunctionResponse, } from "./types.function.js";
|
|
5
5
|
export { MetaArrayOptions, MetaBooleanOptions, MetaCreateTimeOptions, MetaDateOptions, MetaFile, MetaHeadBaseOptions, MetaHeadInterfaceOptions, MetaImport, MetaInterfaceOptions, MetaKeyOptions, metaNameProperties, MetaNames, MetaNamesFromMap, MetaNamesMap, MetaNamesNoTarget, MetaNumberOptions, MetaObjectOptions, MetaPropertyBaseOptions, MetaRouteParams, MetaStringOptions, MetaUpdateTimeOptions, WithMap, WithoutBase, WithoutBaseIgnore, withoutBaseIgnoreValues, WithoutType, WithoutTypeIgnore, withoutTypeIgnoreValues, } from "./types.meta.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,OAAO,EACP,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,OAAO,EACP,UAAU,GACX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,QAAQ,EACR,mBAAmB,EACnB,wBAAwB,EACxB,UAAU,EACV,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,uBAAuB,EACvB,WAAW,EACX,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,aAAa,EACb,UAAU,EACV,QAAQ,EACR,SAAS,EACT,UAAU,GACX,MAAM,mBAAmB,CAAC"}
|
|
@@ -9,8 +9,8 @@ export interface DocumentAdmin {
|
|
|
9
9
|
createTime?: Date;
|
|
10
10
|
updateTime?: Date;
|
|
11
11
|
}
|
|
12
|
+
export type DocumentKeyAdmin = DocumentKey & DocumentAdmin;
|
|
12
13
|
export type WithKey<DTO extends DocumentData> = DocumentKey & DocumentAdmin & DTO;
|
|
13
|
-
export type
|
|
14
|
-
export type WithoutKey<DTO extends DocumentData> = Omit<DTO, WithoutKeyType>;
|
|
14
|
+
export type WithoutKey<DTO extends DocumentData> = Omit<DTO, keyof DocumentKeyAdmin>;
|
|
15
15
|
export type CallbackAble<T extends DocumentData> = T | (() => T) | (() => Promise<T>);
|
|
16
16
|
//# sourceMappingURL=types.document.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.document.d.ts","sourceRoot":"","sources":["../../src/types/types.document.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC;AACrC,MAAM,MAAM,YAAY,GAAG;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,kBAAkB,CAAA;CAAE,CAAC;AAEnE,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,UAAU,CAAC,EAAE,IAAI,CAAC;CACnB;AAED,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"types.document.d.ts","sourceRoot":"","sources":["../../src/types/types.document.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC;AACrC,MAAM,MAAM,YAAY,GAAG;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,kBAAkB,CAAA;CAAE,CAAC;AAEnE,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,UAAU,CAAC,EAAE,IAAI,CAAC;CACnB;AAED,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,aAAa,CAAC;AAE3D,MAAM,MAAM,OAAO,CAAC,GAAG,SAAS,YAAY,IAAI,WAAW,GACzD,aAAa,GACb,GAAG,CAAC;AAEN,MAAM,MAAM,UAAU,CAAC,GAAG,SAAS,YAAY,IAAI,IAAI,CACrD,GAAG,EACH,MAAM,gBAAgB,CACvB,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,YAAY,IAC3C,CAAC,GACD,CAAC,MAAM,CAAC,CAAC,GACT,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC"}
|