Comparing version 0.0.28 to 0.0.29
@@ -56,8 +56,8 @@ import { ClientBase, Pool, QueryConfig } from 'pg'; | ||
queryResourceAccess: import("@duely/core").GenericFunction<Promise<AccessLevel>, [] | [client: ClientBase, id: string] | [id: string]>; | ||
queryResource<K extends "subdomain" | "agency" | "theme" | "image" | "user" | "sign up" | "password reset" | "product" | "markdown" | "membership" | "notification definition" | "form" | "agency thank you page setting" | "page block definition" | "product thank you page setting" | "form field" | "page block" | "transaction fee" | "page definition" | "page" | "stripe account" | "subscription plan" | "customer" | "webhook event" | "price" | "order" | "credential" | "integration" | "order item">(resource_name: K, id_or_filter: string | Partial<Resources[K]>): Promise<Resources[K]>; | ||
queryResourceAll<K_1 extends "subdomain" | "agency" | "theme" | "image" | "user" | "sign up" | "password reset" | "product" | "markdown" | "membership" | "notification definition" | "form" | "agency thank you page setting" | "page block definition" | "product thank you page setting" | "form field" | "page block" | "transaction fee" | "page definition" | "page" | "stripe account" | "subscription plan" | "customer" | "webhook event" | "price" | "order" | "credential" | "integration" | "order item">(resource_name: K_1, filter?: Partial<Resources[K_1]> | undefined): Promise<Resources[K_1][]>; | ||
createResource<K_2 extends "subdomain" | "agency" | "theme" | "image" | "user" | "sign up" | "password reset" | "product" | "markdown" | "membership" | "notification definition" | "form" | "agency thank you page setting" | "page block definition" | "product thank you page setting" | "form field" | "page block" | "transaction fee" | "page definition" | "page" | "stripe account" | "subscription plan" | "customer" | "webhook event" | "price" | "order" | "credential" | "integration" | "order item">(resource_name: K_2, data: Partial<Resources[K_2]>): Promise<Resources[K_2]>; | ||
upsertResource<K_3 extends "subdomain" | "agency" | "theme" | "image" | "user" | "sign up" | "password reset" | "product" | "markdown" | "membership" | "notification definition" | "form" | "agency thank you page setting" | "page block definition" | "product thank you page setting" | "form field" | "page block" | "transaction fee" | "page definition" | "page" | "stripe account" | "subscription plan" | "customer" | "webhook event" | "price" | "order" | "credential" | "integration" | "order item">(resource_name: K_3, data: Partial<Resources[K_3]>): Promise<Resources[K_3]>; | ||
updateResource<K_4 extends "subdomain" | "agency" | "theme" | "image" | "user" | "sign up" | "password reset" | "product" | "markdown" | "membership" | "notification definition" | "form" | "agency thank you page setting" | "page block definition" | "product thank you page setting" | "form field" | "page block" | "transaction fee" | "page definition" | "page" | "stripe account" | "subscription plan" | "customer" | "webhook event" | "price" | "order" | "credential" | "integration" | "order item">(resource_name: K_4, id: string, data: Partial<Resources[K_4]>): Promise<Resources[K_4]>; | ||
deleteResource<K_5 extends "subdomain" | "agency" | "theme" | "image" | "user" | "sign up" | "password reset" | "product" | "markdown" | "membership" | "notification definition" | "form" | "agency thank you page setting" | "page block definition" | "product thank you page setting" | "form field" | "page block" | "transaction fee" | "page definition" | "page" | "stripe account" | "subscription plan" | "customer" | "webhook event" | "price" | "order" | "credential" | "integration" | "order item">(resource_name: K_5, id: string): Promise<Resources[K_5]>; | ||
queryResource<K extends "subdomain" | "agency" | "theme" | "image" | "user" | "sign up" | "password reset" | "product" | "markdown" | "membership" | "notification definition" | "form" | "agency thank you page setting" | "page block definition" | "product thank you page setting" | "form field" | "page block" | "transaction fee" | "page definition" | "page" | "stripe account" | "subscription plan" | "customer" | "webhook event" | "price" | "order" | "credential" | "integration type" | "integration" | "order item">(resource_name: K, id_or_filter: string | Partial<Resources[K]>): Promise<Resources[K]>; | ||
queryResourceAll<K_1 extends "subdomain" | "agency" | "theme" | "image" | "user" | "sign up" | "password reset" | "product" | "markdown" | "membership" | "notification definition" | "form" | "agency thank you page setting" | "page block definition" | "product thank you page setting" | "form field" | "page block" | "transaction fee" | "page definition" | "page" | "stripe account" | "subscription plan" | "customer" | "webhook event" | "price" | "order" | "credential" | "integration type" | "integration" | "order item">(resource_name: K_1, filter?: Partial<Resources[K_1]> | undefined): Promise<Resources[K_1][]>; | ||
createResource<K_2 extends "subdomain" | "agency" | "theme" | "image" | "user" | "sign up" | "password reset" | "product" | "markdown" | "membership" | "notification definition" | "form" | "agency thank you page setting" | "page block definition" | "product thank you page setting" | "form field" | "page block" | "transaction fee" | "page definition" | "page" | "stripe account" | "subscription plan" | "customer" | "webhook event" | "price" | "order" | "credential" | "integration type" | "integration" | "order item">(resource_name: K_2, data: Partial<Resources[K_2]>): Promise<Resources[K_2]>; | ||
upsertResource<K_3 extends "subdomain" | "agency" | "theme" | "image" | "user" | "sign up" | "password reset" | "product" | "markdown" | "membership" | "notification definition" | "form" | "agency thank you page setting" | "page block definition" | "product thank you page setting" | "form field" | "page block" | "transaction fee" | "page definition" | "page" | "stripe account" | "subscription plan" | "customer" | "webhook event" | "price" | "order" | "credential" | "integration type" | "integration" | "order item">(resource_name: K_3, data: Partial<Resources[K_3]>): Promise<Resources[K_3]>; | ||
updateResource<K_4 extends "subdomain" | "agency" | "theme" | "image" | "user" | "sign up" | "password reset" | "product" | "markdown" | "membership" | "notification definition" | "form" | "agency thank you page setting" | "page block definition" | "product thank you page setting" | "form field" | "page block" | "transaction fee" | "page definition" | "page" | "stripe account" | "subscription plan" | "customer" | "webhook event" | "price" | "order" | "credential" | "integration type" | "integration" | "order item">(resource_name: K_4, id: string, data: Partial<Resources[K_4]>): Promise<Resources[K_4]>; | ||
deleteResource<K_5 extends "subdomain" | "agency" | "theme" | "image" | "user" | "sign up" | "password reset" | "product" | "markdown" | "membership" | "notification definition" | "form" | "agency thank you page setting" | "page block definition" | "product thank you page setting" | "form field" | "page block" | "transaction fee" | "page definition" | "page" | "stripe account" | "subscription plan" | "customer" | "webhook event" | "price" | "order" | "credential" | "integration type" | "integration" | "order item">(resource_name: K_5, id: string): Promise<Resources[K_5]>; | ||
}; | ||
@@ -64,0 +64,0 @@ export declare type ProcessingState = 'pending' | 'processing' | 'processed' | 'failed'; |
@@ -240,5 +240,10 @@ declare type FilteredKeys<T, U> = { | ||
}; | ||
export declare type IntegrationTypeResource = { | ||
id: ResourceId<'integration type'>; | ||
name: string; | ||
form_id: ResourceId<'form'>; | ||
}; | ||
export declare type IntegrationResource = { | ||
id: ResourceId<'integration'>; | ||
name: string; | ||
integration_type_id: ResourceId<'integration type'>; | ||
agency_id: ResourceId<'agency'>; | ||
@@ -423,2 +428,8 @@ credential_id?: ResourceId<'credential'> | null; | ||
}; | ||
'integration type': { | ||
name: 'integration type'; | ||
prefix: 'intetype'; | ||
table_name: 'integration_type'; | ||
resource: IntegrationTypeResource; | ||
}; | ||
integration: { | ||
@@ -425,0 +436,0 @@ name: 'integration'; |
{ | ||
"name": "@duely/db", | ||
"version": "0.0.28", | ||
"version": "0.0.29", | ||
"description": "Client for querying duely-postgres database.", | ||
@@ -5,0 +5,0 @@ "repository": "github:uoleevi/duely", |
@@ -278,5 +278,11 @@ type FilteredKeys<T, U> = { [P in keyof T]: T[P] extends U ? P : never }[keyof T]; | ||
export type IntegrationTypeResource = { | ||
id: ResourceId<'integration type'>; | ||
name: string; | ||
form_id: ResourceId<'form'>; | ||
}; | ||
export type IntegrationResource = { | ||
id: ResourceId<'integration'>; | ||
name: string; | ||
integration_type_id: ResourceId<'integration type'>; | ||
agency_id: ResourceId<'agency'>; | ||
@@ -463,2 +469,8 @@ credential_id?: ResourceId<'credential'> | null; | ||
}; | ||
'integration type': { | ||
name: 'integration type'; | ||
prefix: 'intetype'; | ||
table_name: 'integration_type'; | ||
resource: IntegrationTypeResource; | ||
}; | ||
integration: { | ||
@@ -465,0 +477,0 @@ name: 'integration'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1113702
12076