@webiny/api-record-locking 5.40.5 → 5.41.0-dbt.0

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,5 +1,5 @@
1
1
  import { IRecordLockingGetLockRecordParams, IRecordLockingLockRecord } from "../types";
2
- export declare type IGetLockRecordUseCaseExecuteParams = IRecordLockingGetLockRecordParams;
2
+ export type IGetLockRecordUseCaseExecuteParams = IRecordLockingGetLockRecordParams;
3
3
  export interface IGetLockRecordUseCaseExecute {
4
4
  (params: IGetLockRecordUseCaseExecuteParams): Promise<IRecordLockingLockRecord | null>;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { IRecordLockingIsLockedParams, IRecordLockingLockRecord } from "../types";
2
- export declare type IGetLockedEntryLockRecordUseCaseExecuteParams = IRecordLockingIsLockedParams;
2
+ export type IGetLockedEntryLockRecordUseCaseExecuteParams = IRecordLockingIsLockedParams;
3
3
  export interface IGetLockedEntryLockRecordUseCaseExecute {
4
4
  (params: IGetLockedEntryLockRecordUseCaseExecuteParams): Promise<IRecordLockingLockRecord | null>;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { IRecordLockingIsLockedParams } from "../types";
2
- export declare type IIsEntryLockedUseCaseExecuteParams = IRecordLockingIsLockedParams;
2
+ export type IIsEntryLockedUseCaseExecuteParams = IRecordLockingIsLockedParams;
3
3
  export interface IIsEntryLockedUseCaseExecute {
4
4
  (params: IIsEntryLockedUseCaseExecuteParams): Promise<boolean>;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { IRecordLockingLockRecord } from "../types";
2
- export declare type IKickOutCurrentUserUseCaseExecuteParams = IRecordLockingLockRecord;
2
+ export type IKickOutCurrentUserUseCaseExecuteParams = IRecordLockingLockRecord;
3
3
  export interface IKickOutCurrentUserUseCase {
4
4
  execute(params: IKickOutCurrentUserUseCaseExecuteParams): Promise<void>;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { IRecordLockingListAllLockRecordsParams, IRecordLockingListAllLockRecordsResponse } from "../types";
2
- export declare type IListAllLockRecordsUseCaseExecuteParams = IRecordLockingListAllLockRecordsParams;
3
- export declare type IListAllLockRecordsUseCaseExecuteResponse = IRecordLockingListAllLockRecordsResponse;
2
+ export type IListAllLockRecordsUseCaseExecuteParams = IRecordLockingListAllLockRecordsParams;
3
+ export type IListAllLockRecordsUseCaseExecuteResponse = IRecordLockingListAllLockRecordsResponse;
4
4
  export interface IListAllLockRecordsUseCaseExecute {
5
5
  (params: IListAllLockRecordsUseCaseExecuteParams): Promise<IListAllLockRecordsUseCaseExecuteResponse>;
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import { IListAllLockRecordsUseCaseExecuteParams } from "./IListAllLockRecordsUseCase";
2
2
  import { IRecordLockingListAllLockRecordsResponse } from "../types";
3
- export declare type IListLockRecordsUseCaseExecuteParams = IListAllLockRecordsUseCaseExecuteParams;
4
- export declare type IListLockRecordsUseCaseExecuteResponse = IRecordLockingListAllLockRecordsResponse;
3
+ export type IListLockRecordsUseCaseExecuteParams = IListAllLockRecordsUseCaseExecuteParams;
4
+ export type IListLockRecordsUseCaseExecuteResponse = IRecordLockingListAllLockRecordsResponse;
5
5
  export interface IListLockRecordsUseCaseExecute {
6
6
  (params: IListLockRecordsUseCaseExecuteParams): Promise<IListLockRecordsUseCaseExecuteResponse>;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/api-record-locking",
3
- "version": "5.40.5",
3
+ "version": "5.41.0-dbt.0",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,33 +14,33 @@
14
14
  "dependencies": {
15
15
  "@babel/runtime": "7.24.1",
16
16
  "@types/aws-lambda": "8.10.136",
17
- "@webiny/api": "5.40.5",
18
- "@webiny/api-headless-cms": "5.40.5",
19
- "@webiny/api-websockets": "5.40.5",
20
- "@webiny/error": "5.40.5",
21
- "@webiny/handler": "5.40.5",
22
- "@webiny/handler-aws": "5.40.5",
23
- "@webiny/handler-graphql": "5.40.5",
24
- "@webiny/plugins": "5.40.5",
25
- "@webiny/pubsub": "5.40.5",
26
- "@webiny/utils": "5.40.5"
17
+ "@webiny/api": "5.41.0-dbt.0",
18
+ "@webiny/api-headless-cms": "5.41.0-dbt.0",
19
+ "@webiny/api-websockets": "5.41.0-dbt.0",
20
+ "@webiny/error": "5.41.0-dbt.0",
21
+ "@webiny/handler": "5.41.0-dbt.0",
22
+ "@webiny/handler-aws": "5.41.0-dbt.0",
23
+ "@webiny/handler-graphql": "5.41.0-dbt.0",
24
+ "@webiny/plugins": "5.41.0-dbt.0",
25
+ "@webiny/pubsub": "5.41.0-dbt.0",
26
+ "@webiny/utils": "5.41.0-dbt.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@babel/cli": "7.24.1",
30
30
  "@babel/core": "7.24.3",
31
31
  "@babel/preset-env": "7.24.3",
32
32
  "@babel/preset-typescript": "7.24.1",
33
- "@webiny/api-i18n": "5.40.5",
34
- "@webiny/api-security": "5.40.5",
35
- "@webiny/api-tenancy": "5.40.5",
36
- "@webiny/api-wcp": "5.40.5",
37
- "@webiny/cli": "5.40.5",
38
- "@webiny/project-utils": "5.40.5",
33
+ "@webiny/api-i18n": "5.41.0-dbt.0",
34
+ "@webiny/api-security": "5.41.0-dbt.0",
35
+ "@webiny/api-tenancy": "5.41.0-dbt.0",
36
+ "@webiny/api-wcp": "5.41.0-dbt.0",
37
+ "@webiny/cli": "5.41.0-dbt.0",
38
+ "@webiny/project-utils": "5.41.0-dbt.0",
39
39
  "graphql": "15.8.0",
40
40
  "rimraf": "5.0.5",
41
41
  "ttypescript": "1.5.15",
42
42
  "type-fest": "2.19.0",
43
- "typescript": "4.7.4"
43
+ "typescript": "4.9.5"
44
44
  },
45
45
  "publishConfig": {
46
46
  "access": "public",
@@ -50,7 +50,7 @@
50
50
  "build": "yarn webiny run build",
51
51
  "watch": "yarn webiny run watch"
52
52
  },
53
- "gitHead": "f67778732392ed88f28da869ddacbf08a98cdec6",
53
+ "gitHead": "bbaec4dd1685579548c08bbde386aee5d96b80f8",
54
54
  "adio": {
55
55
  "ignore": {
56
56
  "src": [
package/types.d.ts CHANGED
@@ -2,9 +2,9 @@ import { CmsContext, CmsEntry, CmsEntryListParams, CmsEntryMeta, CmsError, CmsId
2
2
  import { Topic } from "@webiny/pubsub/types";
3
3
  import { Context as IWebsocketsContext, IWebsocketsContextObject } from "@webiny/api-websockets/types";
4
4
  export { CmsError, CmsEntry };
5
- export declare type IRecordLockingIdentity = CmsIdentity;
6
- export declare type IRecordLockingModelManager = CmsModelManager<IRecordLockingLockRecordValues>;
7
- export declare type IRecordLockingMeta = CmsEntryMeta;
5
+ export type IRecordLockingIdentity = CmsIdentity;
6
+ export type IRecordLockingModelManager = CmsModelManager<IRecordLockingLockRecordValues>;
7
+ export type IRecordLockingMeta = CmsEntryMeta;
8
8
  export interface IHasFullAccessCallable {
9
9
  (): Promise<boolean>;
10
10
  }
@@ -42,7 +42,7 @@ export interface IRecordLockingLockRecordDeniedAction {
42
42
  createdOn: Date;
43
43
  createdBy: IRecordLockingIdentity;
44
44
  }
45
- export declare type IRecordLockingLockRecordAction = IRecordLockingLockRecordRequestedAction | IRecordLockingLockRecordApprovedAction | IRecordLockingLockRecordDeniedAction;
45
+ export type IRecordLockingLockRecordAction = IRecordLockingLockRecordRequestedAction | IRecordLockingLockRecordApprovedAction | IRecordLockingLockRecordDeniedAction;
46
46
  export interface IRecordLockingLockRecordObject {
47
47
  id: string;
48
48
  targetId: string;
@@ -63,14 +63,14 @@ export interface IRecordLockingLockRecord extends IRecordLockingLockRecordObject
63
63
  /**
64
64
  * Do not use any special chars other than #, as we use this to create lock record IDs.
65
65
  */
66
- export declare type IRecordLockingLockRecordEntryType = string;
67
- export declare type IRecordLockingListAllLockRecordsParams = Pick<CmsEntryListParams, "where" | "limit" | "sort" | "after">;
68
- export declare type IRecordLockingListLockRecordsParams = IRecordLockingListAllLockRecordsParams;
66
+ export type IRecordLockingLockRecordEntryType = string;
67
+ export type IRecordLockingListAllLockRecordsParams = Pick<CmsEntryListParams, "where" | "limit" | "sort" | "after">;
68
+ export type IRecordLockingListLockRecordsParams = IRecordLockingListAllLockRecordsParams;
69
69
  export interface IRecordLockingListAllLockRecordsResponse {
70
70
  items: IRecordLockingLockRecord[];
71
71
  meta: IRecordLockingMeta;
72
72
  }
73
- export declare type IRecordLockingListLockRecordsResponse = IRecordLockingListAllLockRecordsResponse;
73
+ export type IRecordLockingListLockRecordsResponse = IRecordLockingListAllLockRecordsResponse;
74
74
  export interface IRecordLockingGetLockRecordParams {
75
75
  id: string;
76
76
  type: IRecordLockingLockRecordEntryType;
@@ -1,7 +1,7 @@
1
1
  import { CmsEntry, IRecordLockingIdentity } from "../types";
2
2
  import { IRecordLockingLockRecord, IRecordLockingLockRecordAction, IRecordLockingLockRecordApprovedAction, IRecordLockingLockRecordDeniedAction, IRecordLockingLockRecordEntryType, IRecordLockingLockRecordObject, IRecordLockingLockRecordRequestedAction, IRecordLockingLockRecordValues } from "../types";
3
3
  export declare const convertEntryToLockRecord: (entry: CmsEntry<IRecordLockingLockRecordValues>) => IRecordLockingLockRecord;
4
- export declare type IHeadlessCmsLockRecordParams = Pick<CmsEntry<IRecordLockingLockRecordValues>, "entryId" | "values" | "createdBy" | "createdOn" | "savedOn">;
4
+ export type IHeadlessCmsLockRecordParams = Pick<CmsEntry<IRecordLockingLockRecordValues>, "entryId" | "values" | "createdBy" | "createdOn" | "savedOn">;
5
5
  export declare class HeadlessCmsLockRecord implements IRecordLockingLockRecord {
6
6
  private readonly _id;
7
7
  private readonly _targetId;
@@ -1,4 +1,4 @@
1
1
  import { IRecordLockingListLockRecordsParams } from "../types";
2
- declare type IWhere = IRecordLockingListLockRecordsParams["where"] | undefined;
2
+ type IWhere = IRecordLockingListLockRecordsParams["where"] | undefined;
3
3
  export declare const convertWhereCondition: (where: IWhere) => IWhere;
4
4
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ErrorResponse, Response } from "@webiny/handler-graphql";
2
2
  import { IRecordLockingMeta } from "../types";
3
- export declare const resolve: <T>(cb: () => Promise<T>) => Promise<Response<T> | ErrorResponse>;
3
+ export declare const resolve: <T>(cb: () => Promise<T>) => Promise<ErrorResponse | Response<T>>;
4
4
  export interface IListResponse<T> {
5
5
  items: T[];
6
6
  meta: IRecordLockingMeta;