@squidcloud/client 1.0.162 → 1.0.163
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/cjs/index.js
CHANGED
|
@@ -28036,7 +28036,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28036
28036
|
IntegrationSchemaType: () => (/* reexport */ IntegrationSchemaType),
|
|
28037
28037
|
IntegrationType: () => (/* reexport */ IntegrationType),
|
|
28038
28038
|
JoinQueryBuilder: () => (/* reexport */ JoinQueryBuilder),
|
|
28039
|
-
|
|
28039
|
+
MutationContext: () => (/* reexport */ MutationContext),
|
|
28040
28040
|
NativeQueryContext: () => (/* reexport */ NativeQueryContext),
|
|
28041
28041
|
ObservabilityIntegrationTypes: () => (/* reexport */ ObservabilityIntegrationTypes),
|
|
28042
28042
|
Pagination: () => (/* reexport */ Pagination),
|
|
@@ -28525,7 +28525,7 @@ var lodash_default = /*#__PURE__*/__webpack_require__.n(lodash);
|
|
|
28525
28525
|
;// CONCATENATED MODULE: ../internal-common/src/public-types/mutation.public-context.ts
|
|
28526
28526
|
|
|
28527
28527
|
/** The mutation context that will be provided to the security function. */
|
|
28528
|
-
class
|
|
28528
|
+
class MutationContext {
|
|
28529
28529
|
/**
|
|
28530
28530
|
* @internal
|
|
28531
28531
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MutationContext } from './mutation.public-context';
|
|
2
2
|
import { ApiCallContext } from './api-call.public-context';
|
|
3
3
|
import { QueryContext } from './query.public-context';
|
|
4
4
|
import { AiChatbotActionType, DatabaseActionType, TopicActionType } from './bundle-data.public-types';
|
|
@@ -11,7 +11,7 @@ import { NativeQueryContext } from './native-query.public-context';
|
|
|
11
11
|
import { DistributedLockContext } from './distributed-lock.public-context';
|
|
12
12
|
import { GraphqlContext } from './graphql.public-context';
|
|
13
13
|
import { AiChatbotChatContext, AiChatbotMutationContext } from './ai-chatbot.public-context';
|
|
14
|
-
export type SecureDatabaseAction<T extends DatabaseActionType> = T extends 'all' ? () => boolean | Promise<boolean> : T extends 'read' ? ((context: QueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : ((context:
|
|
14
|
+
export type SecureDatabaseAction<T extends DatabaseActionType> = T extends 'all' ? () => boolean | Promise<boolean> : T extends 'read' ? ((context: QueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : ((context: MutationContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
15
15
|
export type SecureTopicAction<T extends TopicActionType> = T extends 'all' ? () => boolean | Promise<boolean> : T extends 'read' ? ((context: TopicReadContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : ((context: TopicWriteContext<T>) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
16
16
|
export type SecureApiAction = ((context: ApiCallContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
17
17
|
export type SecureNativeQueryAction = ((context: NativeQueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
@@ -2,7 +2,7 @@ import { Paths } from './typescript.public-types';
|
|
|
2
2
|
import { BeforeAndAfterDocs } from './document.public-types';
|
|
3
3
|
import { Mutation, MutationType } from './mutation.public-types';
|
|
4
4
|
/** The mutation context that will be provided to the security function. */
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class MutationContext<T = any> {
|
|
6
6
|
readonly mutation: Mutation<T>;
|
|
7
7
|
readonly beforeAndAfterDocs: BeforeAndAfterDocs<T>;
|
|
8
8
|
readonly serverTimeStamp: Date;
|