@dual-os/dynamics-api 0.0.0-stage → 8.0.3
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/LICENSE +4 -0
- package/Runner.js +5771 -0
- package/Runner.js.map +63 -0
- package/bundle-inventory.json +1 -0
- package/dist/_virtual/_rolldown/runtime.js +10 -0
- package/dist/_virtual/_rolldown/runtime.js.map +9 -0
- package/dist/auth.d.ts +35 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +16 -0
- package/dist/auth.js.map +9 -0
- package/dist/generated/http.d.ts +81 -0
- package/dist/generated/http.d.ts.map +1 -0
- package/dist/generated/http.js +64 -0
- package/dist/generated/http.js.map +9 -0
- package/dist/generated/operations.d.ts +113 -0
- package/dist/generated/operations.d.ts.map +1 -0
- package/dist/generated/operations.js +46 -0
- package/dist/generated/operations.js.map +9 -0
- package/dist/generated/plugin.d.ts +55 -0
- package/dist/generated/plugin.d.ts.map +1 -0
- package/dist/generated/plugin.js +95 -0
- package/dist/generated/plugin.js.map +10 -0
- package/dist/triggers.d.ts +92 -0
- package/dist/triggers.d.ts.map +1 -0
- package/dist/triggers.js +17 -0
- package/dist/triggers.js.map +9 -0
- package/dual-plugin.json +1 -0
- package/licenses/@dual-os_sdk@0.8.1/LICENSE +4 -0
- package/licenses/@effect_platform-node-shared@4.1.2/LICENSE +21 -0
- package/licenses/@effect_platform-node@4.1.2/LICENSE +21 -0
- package/licenses/effect@4.1.2/LICENSE +21 -0
- package/package.json +1 -6
- package/plugin-13g044ny.js +197 -0
- package/plugin-13g044ny.js.map +10 -0
- package/plugin-2jdfj02n.js +18 -0
- package/plugin-2jdfj02n.js.map +10 -0
- package/plugin-72zm9ftz.js +19124 -0
- package/plugin-72zm9ftz.js.map +159 -0
- package/plugin-dpa3d1wz.js +172 -0
- package/plugin-dpa3d1wz.js.map +10 -0
- package/plugin-ma04jcpp.js +62 -0
- package/plugin-ma04jcpp.js.map +10 -0
- package/plugin-y6mf6hx3.js +1362 -0
- package/plugin-y6mf6hx3.js.map +18 -0
- package/plugin.json +26 -0
- package/README.md +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"format":1,"toolchain":{"bun":"1.4.2","lockfile_sha512":"5a33b7f1f025a7c482045f64ed93b52c9f6c8674d0133fd234234f876c0b7bb9a9956e0a731f50fe53250544fbdef0d0dd06ea6ae4a4d8669149f9cb8315e121"},"packages":[{"name":"@dual-os/sdk","version":"0.8.1","license":"UNLICENSED","licenses":["licenses/@dual-os_sdk@0.8.1/LICENSE"]},{"name":"@effect/platform-node-shared","version":"4.1.2","license":"MIT","licenses":["licenses/@effect_platform-node-shared@4.1.2/LICENSE"]},{"name":"@effect/platform-node","version":"4.1.2","license":"MIT","licenses":["licenses/@effect_platform-node@4.1.2/LICENSE"]},{"name":"effect","version":"4.1.2","license":"MIT","licenses":["licenses/effect@4.1.2/LICENSE"]}]}
|
package/dist/auth.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { HttpClient } from "effect/http";
|
|
3
|
+
import { Action, AuthMethod } from "@dual-os/sdk";
|
|
4
|
+
//#region src/auth.d.ts
|
|
5
|
+
export declare const authMethods: readonly [AuthMethod.AuthMethod<"oauth", Schema.Struct<{
|
|
6
|
+
readonly clientId: Schema.String;
|
|
7
|
+
readonly clientSecret: Schema.String;
|
|
8
|
+
readonly organizationUrl: Schema.String;
|
|
9
|
+
readonly tenantId: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
10
|
+
}>, undefined, Schema.Struct<{
|
|
11
|
+
readonly accessToken: Schema.String;
|
|
12
|
+
readonly expiresAt: Schema.optional<Schema.Number>;
|
|
13
|
+
readonly expiresIn: Schema.optional<Schema.Number>;
|
|
14
|
+
readonly raw: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
15
|
+
readonly refreshToken: Schema.optional<Schema.String>;
|
|
16
|
+
readonly scope: Schema.optional<Schema.String>;
|
|
17
|
+
readonly tokenType: Schema.optional<Schema.String>;
|
|
18
|
+
}>, Schema.Struct<{
|
|
19
|
+
readonly accessToken: Schema.String;
|
|
20
|
+
readonly organizationUrl: Schema.String;
|
|
21
|
+
}>, AuthMethod.Service>, AuthMethod.AuthMethod<"application", Schema.Struct<{
|
|
22
|
+
readonly clientId: Schema.NonEmptyString;
|
|
23
|
+
readonly clientSecret: Schema.NonEmptyString;
|
|
24
|
+
readonly organizationUrl: Schema.String;
|
|
25
|
+
readonly tenantId: Schema.String;
|
|
26
|
+
}>, Schema.Struct<{}>, Schema.Struct<{
|
|
27
|
+
readonly accessToken: Schema.String;
|
|
28
|
+
readonly expiresAt: Schema.Finite;
|
|
29
|
+
}>, Schema.Struct<{
|
|
30
|
+
readonly accessToken: Schema.String;
|
|
31
|
+
readonly organizationUrl: Schema.String;
|
|
32
|
+
}>, HttpClient.HttpClient>];
|
|
33
|
+
export declare function authorize(client: HttpClient.HttpClient, context: Action.HandlerContext<typeof authMethods>): HttpClient.HttpClient.With<import("effect/http/HttpClientError").HttpClientError, never>;
|
|
34
|
+
//#endregion
|
|
35
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","names":[],"sources":["../src/auth.ts"],"mappings":";;;;qBA2Ga,uBAAW,WAAA,oBAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAoC,WAAA;wBAE5C,UACd,QAAQ,WAAW,YACnB,SAAS,OAAO,sBAAsB,eAAY,WAAA,WAAA,2CAAA"}
|
package/dist/auth.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
auth_exports2,
|
|
4
|
+
authMethods2,
|
|
5
|
+
authorize2
|
|
6
|
+
} from "../plugin-y6mf6hx3.js";
|
|
7
|
+
import"../plugin-2jdfj02n.js";
|
|
8
|
+
import"../plugin-72zm9ftz.js";
|
|
9
|
+
export {
|
|
10
|
+
authMethods2 as authMethods,
|
|
11
|
+
auth_exports2 as auth_exports,
|
|
12
|
+
authorize2 as authorize
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
//# debugId=934107102A41AC6964756E2164756E21
|
|
16
|
+
//# sourceMappingURL=auth.js.map
|
package/dist/auth.js.map
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { authMethods } from "../auth.js";
|
|
2
|
+
import "./http.js";
|
|
3
|
+
import { Action, Http } from "@dual-os/sdk";
|
|
4
|
+
import { Base64FromFile, Base64UrlFromFile, DataUriFromFile, DateTimeFromRfc2822, DateTimeFromUnixSeconds, File, FileFromBase64, FileFromBase64Url, FileFromDataUri, Rfc2822FromDateTime, UnixSecondsFromDateTime, continuation, decoded, form, literal, params, path, preauthenticated, segments } from "@dual-os/sdk/Http";
|
|
5
|
+
declare namespace http_d_exports {
|
|
6
|
+
export { Base64FromFile, Base64UrlFromFile, Context, DataUriFromFile, DateTimeFromRfc2822, DateTimeFromUnixSeconds, File, FileFromBase64, FileFromBase64Url, FileFromDataUri, Handler, http_d_exports as Http, Rfc2822FromDateTime, UnixSecondsFromDateTime, continuation, decoded, endpoint, execute, form, googleUpload, graphql, literal, mcp, params, path, preauthenticated, segments, variants };
|
|
7
|
+
}
|
|
8
|
+
export type Handler<Input, Output> = Http.Handler<typeof authMethods, Input, Output>;
|
|
9
|
+
export interface Context extends Action.HandlerContext<typeof authMethods> {}
|
|
10
|
+
declare const { endpoint, execute, googleUpload, graphql, mcp, variants }: {
|
|
11
|
+
endpoint: {
|
|
12
|
+
<const Input extends import("effect/Schema").Top, const Output extends import("effect/Schema").Top>(contract: {
|
|
13
|
+
readonly input: Input;
|
|
14
|
+
readonly output: Output;
|
|
15
|
+
}, run: (input: Input["Type"], context: Context, output: Output) => import("effect/Effect").Effect<Output["Type"], Action.ActionHandlerFailure, import("effect/http/HttpClient").HttpClient>): Http.Endpoint<Context, Input, Output>;
|
|
16
|
+
<const Input extends import("effect/Schema").Top, const Wire extends import("effect/Schema").Top>(contract: {
|
|
17
|
+
readonly input: Input;
|
|
18
|
+
readonly output: Http.Decoded<Wire>;
|
|
19
|
+
}, run: (input: Input["Type"], context: Context, output: Wire) => import("effect/Effect").Effect<Wire["Type"], Action.ActionHandlerFailure, import("effect/http/HttpClient").HttpClient>): Http.DecodedEndpoint<Context, Input, Wire>;
|
|
20
|
+
};
|
|
21
|
+
execute: <Output extends import("effect/Schema").Top>(context: Context | undefined, output: Output, request: import("effect/Effect").Effect<import("effect/http/HttpClientRequest").HttpClientRequest, Action.ActionHandlerError, never> | import("effect/http/HttpClientRequest").HttpClientRequest, body: "binary" | "file" | "json" | "text" | "unknown" | "void") => import("effect/Effect").Effect<Output["Type"], Action.ActionHandlerError | Action.RetryableActionHandlerError, import("effect/http/HttpClient").HttpClient | Output["DecodingServices"]>;
|
|
22
|
+
googleUpload: <Output extends import("effect/Schema").Top>(context: Context, output: Output, request: import("effect/http/HttpClientRequest").HttpClientRequest, payload: {
|
|
23
|
+
readonly mode: "media";
|
|
24
|
+
readonly media: {
|
|
25
|
+
readonly _tag: "File";
|
|
26
|
+
readonly contentType: string;
|
|
27
|
+
readonly id: string;
|
|
28
|
+
readonly name: string;
|
|
29
|
+
readonly sizeBytes: number;
|
|
30
|
+
} | {
|
|
31
|
+
readonly contentBase64: Uint8Array;
|
|
32
|
+
readonly contentType?: string | null;
|
|
33
|
+
};
|
|
34
|
+
} | {
|
|
35
|
+
readonly mode: "multipart";
|
|
36
|
+
readonly media: {
|
|
37
|
+
readonly _tag: "File";
|
|
38
|
+
readonly contentType: string;
|
|
39
|
+
readonly id: string;
|
|
40
|
+
readonly name: string;
|
|
41
|
+
readonly sizeBytes: number;
|
|
42
|
+
} | {
|
|
43
|
+
readonly contentBase64: Uint8Array;
|
|
44
|
+
readonly contentType?: string | null;
|
|
45
|
+
};
|
|
46
|
+
readonly metadata: unknown;
|
|
47
|
+
} | {
|
|
48
|
+
readonly mode: "start";
|
|
49
|
+
readonly contentType: string;
|
|
50
|
+
readonly metadata?: unknown;
|
|
51
|
+
readonly totalBytes: number;
|
|
52
|
+
} | {
|
|
53
|
+
readonly mode: "chunk";
|
|
54
|
+
readonly sessionUrl: string;
|
|
55
|
+
readonly totalBytes: number;
|
|
56
|
+
readonly offset: number;
|
|
57
|
+
readonly media: {
|
|
58
|
+
readonly _tag: "File";
|
|
59
|
+
readonly contentType: string;
|
|
60
|
+
readonly id: string;
|
|
61
|
+
readonly name: string;
|
|
62
|
+
readonly sizeBytes: number;
|
|
63
|
+
} | {
|
|
64
|
+
readonly contentBase64: Uint8Array;
|
|
65
|
+
readonly contentType?: string | null;
|
|
66
|
+
};
|
|
67
|
+
} | {
|
|
68
|
+
readonly mode: "status";
|
|
69
|
+
readonly sessionUrl: string;
|
|
70
|
+
readonly totalBytes: number;
|
|
71
|
+
}, options: {
|
|
72
|
+
readonly maxSize?: number;
|
|
73
|
+
readonly resumable?: string;
|
|
74
|
+
}) => import("effect/Effect").Effect<Output["Type"], Action.ActionHandlerError | Action.RetryableActionHandlerError, import("effect/http/HttpClient").HttpClient | Output["DecodingServices"]>;
|
|
75
|
+
graphql: <Output extends import("effect/Schema").Top>(context: Context, output: Output, request: import("effect/Effect").Effect<import("effect/http/HttpClientRequest").HttpClientRequest, Action.ActionHandlerError, never> | import("effect/http/HttpClientRequest").HttpClientRequest, field: string) => import("effect/Effect").Effect<Output["Type"], Action.ActionHandlerError | Action.RetryableActionHandlerError, import("effect/http/HttpClient").HttpClient | Output["DecodingServices"]>;
|
|
76
|
+
mcp: <Output extends import("effect/Schema").Top>(context: Context, output: Output, server: string, tool: string, args: unknown, structured: boolean) => import("effect/Effect").Effect<Output["Type"], Action.ActionHandlerError | Action.RetryableActionHandlerError, import("effect/http/HttpClient").HttpClient | Exclude<Output["DecodingServices"], import("effect/Scope").Scope>>;
|
|
77
|
+
variants: <Output extends import("effect/Schema").Top>(context: Context | undefined, output: Output, request: import("effect/Effect").Effect<import("effect/http/HttpClientRequest").HttpClientRequest, Action.ActionHandlerError, never> | import("effect/http/HttpClientRequest").HttpClientRequest, declared: readonly Http.Variant[], media?: boolean | undefined) => import("effect/Effect").Effect<Output["Type"], Action.ActionHandlerError | Action.RetryableActionHandlerError, import("effect/http/HttpClient").HttpClient | Output["DecodingServices"]>;
|
|
78
|
+
};
|
|
79
|
+
//#endregion
|
|
80
|
+
export { Base64FromFile, Base64UrlFromFile, DataUriFromFile, DateTimeFromRfc2822, DateTimeFromUnixSeconds, File, FileFromBase64, FileFromBase64Url, FileFromDataUri, http_d_exports as Http, Rfc2822FromDateTime, UnixSecondsFromDateTime, continuation, decoded, endpoint, execute, form, googleUpload, graphql, literal, mcp, params, path, preauthenticated, segments, variants };
|
|
81
|
+
//# sourceMappingURL=http.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.d.ts","names":["Auth.authMethods"],"sources":["../../src/generated/http.ts"],"mappings":";;;;;;;YA4BY,QAAQ,OAAO,UAAU,KAAK,eAAeA,aAAkB,OAAO;iBAEjE,gBAAgB,OAAO,sBAAsBA;cAEjD,EAAE,UAAU,SAAS,cAAc,SAAS,KAAK"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
http_exports,
|
|
4
|
+
endpoint2,
|
|
5
|
+
execute2,
|
|
6
|
+
googleUpload2,
|
|
7
|
+
graphql2,
|
|
8
|
+
mcp2,
|
|
9
|
+
variants2
|
|
10
|
+
} from "../../plugin-ma04jcpp.js";
|
|
11
|
+
import {
|
|
12
|
+
File2,
|
|
13
|
+
FileFromBase642,
|
|
14
|
+
FileFromBase64Url2,
|
|
15
|
+
Base64FromFile2,
|
|
16
|
+
Base64UrlFromFile2,
|
|
17
|
+
FileFromDataUri2,
|
|
18
|
+
DataUriFromFile2,
|
|
19
|
+
DateTimeFromUnixSeconds2,
|
|
20
|
+
UnixSecondsFromDateTime2,
|
|
21
|
+
DateTimeFromRfc28222,
|
|
22
|
+
Rfc2822FromDateTime2,
|
|
23
|
+
decoded2,
|
|
24
|
+
path2,
|
|
25
|
+
literal2,
|
|
26
|
+
segments2,
|
|
27
|
+
params2,
|
|
28
|
+
form2,
|
|
29
|
+
continuation2,
|
|
30
|
+
preauthenticated2
|
|
31
|
+
} from "../../plugin-y6mf6hx3.js";
|
|
32
|
+
import"../../plugin-2jdfj02n.js";
|
|
33
|
+
import"../../plugin-72zm9ftz.js";
|
|
34
|
+
export {
|
|
35
|
+
Base64FromFile2 as Base64FromFile,
|
|
36
|
+
Base64UrlFromFile2 as Base64UrlFromFile,
|
|
37
|
+
DataUriFromFile2 as DataUriFromFile,
|
|
38
|
+
DateTimeFromRfc28222 as DateTimeFromRfc2822,
|
|
39
|
+
DateTimeFromUnixSeconds2 as DateTimeFromUnixSeconds,
|
|
40
|
+
File2 as File,
|
|
41
|
+
FileFromBase642 as FileFromBase64,
|
|
42
|
+
FileFromBase64Url2 as FileFromBase64Url,
|
|
43
|
+
FileFromDataUri2 as FileFromDataUri,
|
|
44
|
+
http_exports as Http,
|
|
45
|
+
Rfc2822FromDateTime2 as Rfc2822FromDateTime,
|
|
46
|
+
UnixSecondsFromDateTime2 as UnixSecondsFromDateTime,
|
|
47
|
+
continuation2 as continuation,
|
|
48
|
+
decoded2 as decoded,
|
|
49
|
+
endpoint2 as endpoint,
|
|
50
|
+
execute2 as execute,
|
|
51
|
+
form2 as form,
|
|
52
|
+
googleUpload2 as googleUpload,
|
|
53
|
+
graphql2 as graphql,
|
|
54
|
+
literal2 as literal,
|
|
55
|
+
mcp2 as mcp,
|
|
56
|
+
params2 as params,
|
|
57
|
+
path2 as path,
|
|
58
|
+
preauthenticated2 as preauthenticated,
|
|
59
|
+
segments2 as segments,
|
|
60
|
+
variants2 as variants
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
//# debugId=9CC8B433C3450A1D64756E2164756E21
|
|
64
|
+
//# sourceMappingURL=http.js.map
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Context } from "./http.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
//#region src/generated/operations.d.ts
|
|
4
|
+
export type Row = {
|
|
5
|
+
readonly [key: string]: unknown;
|
|
6
|
+
};
|
|
7
|
+
export declare const Row: Schema.Codec<Row>;
|
|
8
|
+
export type Rows = {
|
|
9
|
+
readonly "@odata.count"?: number;
|
|
10
|
+
readonly "@odata.deltaLink"?: string;
|
|
11
|
+
readonly "@odata.nextLink"?: string;
|
|
12
|
+
readonly value: readonly Row[];
|
|
13
|
+
readonly [key: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
export declare const Rows: Schema.Codec<Rows>;
|
|
16
|
+
export type TableDefinition = {
|
|
17
|
+
readonly Attributes?: readonly {
|
|
18
|
+
readonly [key: string]: unknown;
|
|
19
|
+
}[];
|
|
20
|
+
readonly DisplayName?: {
|
|
21
|
+
readonly [key: string]: unknown;
|
|
22
|
+
};
|
|
23
|
+
readonly EntitySetName?: string;
|
|
24
|
+
readonly LogicalName?: string;
|
|
25
|
+
readonly PrimaryIdAttribute?: string;
|
|
26
|
+
readonly PrimaryNameAttribute?: string;
|
|
27
|
+
readonly [key: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
export declare const TableDefinition: Schema.Codec<TableDefinition>;
|
|
30
|
+
export type ListTablesResponse = {
|
|
31
|
+
readonly value: readonly TableDefinition[];
|
|
32
|
+
readonly [key: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
export declare const ListTablesResponse: Schema.Codec<ListTablesResponse>;
|
|
35
|
+
export type WhoAmIResponse = {
|
|
36
|
+
readonly BusinessUnitId: string;
|
|
37
|
+
readonly OrganizationId: string;
|
|
38
|
+
readonly UserId: string;
|
|
39
|
+
readonly [key: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
export declare const WhoAmIResponse: Schema.Codec<WhoAmIResponse>;
|
|
42
|
+
export type CreateRowResponse = {
|
|
43
|
+
readonly status: 201;
|
|
44
|
+
readonly contentType: "application/json";
|
|
45
|
+
readonly body: Row;
|
|
46
|
+
} | {
|
|
47
|
+
readonly status: 204;
|
|
48
|
+
readonly contentType: "";
|
|
49
|
+
readonly body: {};
|
|
50
|
+
readonly headers: {
|
|
51
|
+
readonly "OData-EntityId"?: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export declare const CreateRowResponse: Schema.Codec<CreateRowResponse>;
|
|
55
|
+
export type EmptyResponse = {};
|
|
56
|
+
export declare const EmptyResponse: Schema.Codec<EmptyResponse>;
|
|
57
|
+
export type AssociateRowsBody = {
|
|
58
|
+
readonly "@odata.id": string;
|
|
59
|
+
readonly [key: string]: unknown;
|
|
60
|
+
};
|
|
61
|
+
export declare const AssociateRowsBody: Schema.Codec<AssociateRowsBody>;
|
|
62
|
+
export declare const tables_listTables: import("@dual-os/sdk/Http").Endpoint<Context, Schema.Struct<{
|
|
63
|
+
readonly $select: Schema.optionalKey<Schema.String>;
|
|
64
|
+
readonly $filter: Schema.optionalKey<Schema.String>;
|
|
65
|
+
}>, Schema.Codec<ListTablesResponse, ListTablesResponse, never, never>>;
|
|
66
|
+
export declare const tables_getTable: import("@dual-os/sdk/Http").Endpoint<Context, Schema.Struct<{
|
|
67
|
+
readonly logicalName: Schema.String;
|
|
68
|
+
readonly $select: Schema.optionalKey<Schema.String>;
|
|
69
|
+
readonly $expand: Schema.optionalKey<Schema.String>;
|
|
70
|
+
}>, Schema.Codec<TableDefinition, TableDefinition, never, never>>;
|
|
71
|
+
export declare const organization_whoAmI: import("@dual-os/sdk/Http").Endpoint<Context, Schema.Struct<{}>, Schema.Codec<WhoAmIResponse, WhoAmIResponse, never, never>>;
|
|
72
|
+
export declare const rows_listRows: import("@dual-os/sdk/Http").Endpoint<Context, Schema.Struct<{
|
|
73
|
+
readonly entitySet: Schema.String;
|
|
74
|
+
readonly $select: Schema.optionalKey<Schema.String>;
|
|
75
|
+
readonly $filter: Schema.optionalKey<Schema.String>;
|
|
76
|
+
readonly $orderby: Schema.optionalKey<Schema.String>;
|
|
77
|
+
readonly $top: Schema.optionalKey<Schema.Int>;
|
|
78
|
+
readonly $expand: Schema.optionalKey<Schema.String>;
|
|
79
|
+
readonly $count: Schema.optionalKey<Schema.Boolean>;
|
|
80
|
+
readonly fetchXml: Schema.optionalKey<Schema.String>;
|
|
81
|
+
readonly Prefer: Schema.optionalKey<Schema.String>;
|
|
82
|
+
readonly nextLink: Schema.optionalKey<Schema.String>;
|
|
83
|
+
}>, Schema.Codec<Rows, Rows, never, never>>;
|
|
84
|
+
export declare const rows_createRow: import("@dual-os/sdk/Http").Endpoint<Context, Schema.Struct<{
|
|
85
|
+
readonly entitySet: Schema.String;
|
|
86
|
+
readonly Prefer: Schema.optionalKey<Schema.String>;
|
|
87
|
+
readonly payload: Schema.suspend<Schema.Codec<Row, Row, never, never>>;
|
|
88
|
+
}>, Schema.Codec<CreateRowResponse, CreateRowResponse, never, never>>;
|
|
89
|
+
export declare const rows_deleteRow: import("@dual-os/sdk/Http").Endpoint<Context, Schema.Struct<{
|
|
90
|
+
readonly entitySet: Schema.String;
|
|
91
|
+
readonly id: Schema.String;
|
|
92
|
+
}>, Schema.Codec<EmptyResponse, EmptyResponse, never, never>>;
|
|
93
|
+
export declare const rows_getRow: import("@dual-os/sdk/Http").Endpoint<Context, Schema.Struct<{
|
|
94
|
+
readonly entitySet: Schema.String;
|
|
95
|
+
readonly id: Schema.String;
|
|
96
|
+
readonly $select: Schema.optionalKey<Schema.String>;
|
|
97
|
+
readonly $expand: Schema.optionalKey<Schema.String>;
|
|
98
|
+
readonly Prefer: Schema.optionalKey<Schema.String>;
|
|
99
|
+
}>, Schema.Codec<Row, Row, never, never>>;
|
|
100
|
+
export declare const rows_updateRow: import("@dual-os/sdk/Http").Endpoint<Context, Schema.Struct<{
|
|
101
|
+
readonly entitySet: Schema.String;
|
|
102
|
+
readonly id: Schema.String;
|
|
103
|
+
readonly "If-Match": Schema.optionalKey<Schema.String>;
|
|
104
|
+
readonly payload: Schema.suspend<Schema.Codec<Row, Row, never, never>>;
|
|
105
|
+
}>, Schema.Codec<EmptyResponse, EmptyResponse, never, never>>;
|
|
106
|
+
export declare const rows_associateRows: import("@dual-os/sdk/Http").Endpoint<Context, Schema.Struct<{
|
|
107
|
+
readonly entitySet: Schema.String;
|
|
108
|
+
readonly id: Schema.String;
|
|
109
|
+
readonly navigationProperty: Schema.String;
|
|
110
|
+
readonly payload: Schema.suspend<Schema.Codec<AssociateRowsBody, AssociateRowsBody, never, never>>;
|
|
111
|
+
}>, Schema.Codec<EmptyResponse, EmptyResponse, never, never>>;
|
|
112
|
+
//#endregion
|
|
113
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","names":["Http.Context"],"sources":["../../src/generated/operations.ts"],"mappings":";;;YAKY;YAAkB;;qBACjB,KAAK,OAAO,MAAM;YAOnB;WACD;WACA;WACA;WACA,gBAAgB;YACf;;qBAEC,MAAM,OAAO,MAAM;YAiBpB;WACD;cAAkC;;WAClC;cAA0B;;WAC1B;WACA;WACA;WACA;YACC;;qBAEC,iBAAiB,OAAO,MAAM;YAkB/B;WACD,gBAAgB;YACf;;qBAEC,oBAAoB,OAAO,MAAM;YAOlC;WACD;WACA;WACA;YACC;;qBAEC,gBAAgB,OAAO,MAAM;YAS9B;WAEG;WACA;WACA,MAAM;;WAGN;WACA;WACA;WACA;aACE;;;qBAGJ,mBAAmB,OAAO,MAAM;YAgBjC;qBACC,eAAe,OAAO,MAAM;YAI7B;WACD;YACC;;qBAEC,mBAAmB,OAAO,MAAM;qBAUhC,+CAAiB,SAAAA,SAAA,OAAA;;;IA8B7B,OAAA,MAAA,oBAAA;qBAEY,6CAAe,SAAAA,SAAA,OAAA;;;;IAuC3B,OAAA,MAAA,iBAAA;qBAEY,iDAAmB,SAAAA,SAAA,OAAA,YAAA,OAAA,MAAA,gBAAA;qBAWnB,2CAAa,SAAAA,SAAA,OAAA;;;;;;;;;;;IA+EzB,OAAA,MAAA,MAAA;qBAEY,4CAAc,SAAAA,SAAA,OAAA;;;;IAiC1B,OAAA,MAAA,mBAAA;qBAEY,4CAAc,SAAAA,SAAA,OAAA;;;IAoB1B,OAAA,MAAA,eAAA;qBAEY,yCAAW,SAAAA,SAAA,OAAA;;;;;;IAiDvB,OAAA,MAAA,KAAA;qBAEY,4CAAc,SAAAA,SAAA,OAAA;;;;;IA0B1B,OAAA,MAAA,eAAA;qBAEY,gDAAkB,SAAAA,SAAA,OAAA;;;;;IA4B9B,OAAA,MAAA,eAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
Row2,
|
|
4
|
+
Rows2,
|
|
5
|
+
TableDefinition2,
|
|
6
|
+
ListTablesResponse2,
|
|
7
|
+
WhoAmIResponse2,
|
|
8
|
+
CreateRowResponse2,
|
|
9
|
+
EmptyResponse2,
|
|
10
|
+
AssociateRowsBody2,
|
|
11
|
+
tables_listTables2,
|
|
12
|
+
tables_getTable2,
|
|
13
|
+
organization_whoAmI2,
|
|
14
|
+
rows_listRows2,
|
|
15
|
+
rows_createRow2,
|
|
16
|
+
rows_deleteRow2,
|
|
17
|
+
rows_getRow2,
|
|
18
|
+
rows_updateRow2,
|
|
19
|
+
rows_associateRows2
|
|
20
|
+
} from "../../plugin-13g044ny.js";
|
|
21
|
+
import"../../plugin-ma04jcpp.js";
|
|
22
|
+
import"../../plugin-y6mf6hx3.js";
|
|
23
|
+
import"../../plugin-2jdfj02n.js";
|
|
24
|
+
import"../../plugin-72zm9ftz.js";
|
|
25
|
+
export {
|
|
26
|
+
AssociateRowsBody2 as AssociateRowsBody,
|
|
27
|
+
CreateRowResponse2 as CreateRowResponse,
|
|
28
|
+
EmptyResponse2 as EmptyResponse,
|
|
29
|
+
ListTablesResponse2 as ListTablesResponse,
|
|
30
|
+
Row2 as Row,
|
|
31
|
+
Rows2 as Rows,
|
|
32
|
+
TableDefinition2 as TableDefinition,
|
|
33
|
+
WhoAmIResponse2 as WhoAmIResponse,
|
|
34
|
+
organization_whoAmI2 as organization_whoAmI,
|
|
35
|
+
rows_associateRows2 as rows_associateRows,
|
|
36
|
+
rows_createRow2 as rows_createRow,
|
|
37
|
+
rows_deleteRow2 as rows_deleteRow,
|
|
38
|
+
rows_getRow2 as rows_getRow,
|
|
39
|
+
rows_listRows2 as rows_listRows,
|
|
40
|
+
rows_updateRow2 as rows_updateRow,
|
|
41
|
+
tables_getTable2 as tables_getTable,
|
|
42
|
+
tables_listTables2 as tables_listTables
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
//# debugId=67C14A86982C714264756E2164756E21
|
|
46
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { authMethods } from "../auth.js";
|
|
2
|
+
import { AssociateRowsBody, CreateRowResponse, EmptyResponse, ListTablesResponse, Row, Rows, TableDefinition, WhoAmIResponse } from "./operations.js";
|
|
3
|
+
import { triggers } from "../triggers.js";
|
|
4
|
+
import { HttpClient } from "effect/http";
|
|
5
|
+
import { Action, Group, Plugin } from "@dual-os/sdk";
|
|
6
|
+
//#region src/generated/plugin.d.ts
|
|
7
|
+
declare const tablesGroup: Group.Group<"tables", readonly [], readonly [Action.Action<"list-tables", import("effect/Schema").Struct<{
|
|
8
|
+
readonly $select: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
9
|
+
readonly $filter: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
10
|
+
}>, import("effect/Schema").Codec<ListTablesResponse, ListTablesResponse, never, never>, true>, Action.Action<"get-table", import("effect/Schema").Struct<{
|
|
11
|
+
readonly logicalName: import("effect/Schema").String;
|
|
12
|
+
readonly $select: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
13
|
+
readonly $expand: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
14
|
+
}>, import("effect/Schema").Codec<TableDefinition, TableDefinition, never, never>, true>], readonly []>;
|
|
15
|
+
declare const organizationGroup: Group.Group<"organization", readonly [], readonly [Action.Action<"who-am-i", import("effect/Schema").Struct<{}>, import("effect/Schema").Codec<WhoAmIResponse, WhoAmIResponse, never, never>, true>], readonly []>;
|
|
16
|
+
declare const rowsGroup: Group.Group<"rows", readonly [], readonly [Action.Action<"list-rows", import("effect/Schema").Struct<{
|
|
17
|
+
readonly entitySet: import("effect/Schema").String;
|
|
18
|
+
readonly $select: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
19
|
+
readonly $filter: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
20
|
+
readonly $orderby: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
21
|
+
readonly $top: import("effect/Schema").optionalKey<import("effect/Schema").Int>;
|
|
22
|
+
readonly $expand: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
23
|
+
readonly $count: import("effect/Schema").optionalKey<import("effect/Schema").Boolean>;
|
|
24
|
+
readonly fetchXml: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
25
|
+
readonly Prefer: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
26
|
+
readonly nextLink: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
27
|
+
}>, import("effect/Schema").Codec<Rows, Rows, never, never>, true>, Action.Action<"create-row", import("effect/Schema").Struct<{
|
|
28
|
+
readonly entitySet: import("effect/Schema").String;
|
|
29
|
+
readonly Prefer: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
30
|
+
readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<Row, Row, never, never>>;
|
|
31
|
+
}>, import("effect/Schema").Codec<CreateRowResponse, CreateRowResponse, never, never>, true>, Action.Action<"delete-row", import("effect/Schema").Struct<{
|
|
32
|
+
readonly entitySet: import("effect/Schema").String;
|
|
33
|
+
readonly id: import("effect/Schema").String;
|
|
34
|
+
}>, import("effect/Schema").Codec<EmptyResponse, EmptyResponse, never, never>, true>, Action.Action<"get-row", import("effect/Schema").Struct<{
|
|
35
|
+
readonly entitySet: import("effect/Schema").String;
|
|
36
|
+
readonly id: import("effect/Schema").String;
|
|
37
|
+
readonly $select: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
38
|
+
readonly $expand: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
39
|
+
readonly Prefer: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
40
|
+
}>, import("effect/Schema").Codec<Row, Row, never, never>, true>, Action.Action<"update-row", import("effect/Schema").Struct<{
|
|
41
|
+
readonly entitySet: import("effect/Schema").String;
|
|
42
|
+
readonly id: import("effect/Schema").String;
|
|
43
|
+
readonly "If-Match": import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
44
|
+
readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<Row, Row, never, never>>;
|
|
45
|
+
}>, import("effect/Schema").Codec<EmptyResponse, EmptyResponse, never, never>, true>, Action.Action<"associate-rows", import("effect/Schema").Struct<{
|
|
46
|
+
readonly entitySet: import("effect/Schema").String;
|
|
47
|
+
readonly id: import("effect/Schema").String;
|
|
48
|
+
readonly navigationProperty: import("effect/Schema").String;
|
|
49
|
+
readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<AssociateRowsBody, AssociateRowsBody, never, never>>;
|
|
50
|
+
}>, import("effect/Schema").Codec<EmptyResponse, EmptyResponse, never, never>, true>], readonly []>;
|
|
51
|
+
export declare const dynamicsApiPluginBase: Plugin.Definition<"dynamics-api", typeof authMethods, readonly [typeof tablesGroup, typeof organizationGroup, typeof rowsGroup], readonly [], typeof triggers>;
|
|
52
|
+
export declare const dynamicsApiPlugin: Plugin.Provided<typeof dynamicsApiPluginBase, Plugin.HandlerServices<typeof dynamicsApiPluginBase> | HttpClient.HttpClient>;
|
|
53
|
+
//#endregion
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","names":["Operations.ListTablesResponse","Operations.TableDefinition","Operations.WhoAmIResponse","Operations.Rows","Operations.Row","Operations.CreateRowResponse","Operations.EmptyResponse","Operations.AssociateRowsBody","Auth.authMethods","Triggers.triggers"],"sources":["../../src/generated/plugin.ts"],"mappings":";;;;;;cA6EM,aAAW,MAAA,uCAAA,OAAA,8CAAA;;;;;;;4BAGhB,MAAAC,iBAAAA;cAEK,mBAAiB,MAAA,6CAAA,OAAA,2CAAA,oCAAA,MAAAC,gBAAAA;cAKjB,WAAS,MAAA,qCAAA,OAAA,4CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAUd,MAAAI,eAAAA;qBAEY,uBAAuB,OAAO,kCAElCE,8BACU,oBAAoB,0BAA0B,gCAExDC;qBAqCI,mBAAmB,OAAO,gBAC9B,uBACP,OAAO,uBAAuB,yBAAyB,WAAW"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"../../plugin-2jdfj02n.js";
|
|
3
|
+
import {
|
|
4
|
+
layer2,
|
|
5
|
+
Action_exports,
|
|
6
|
+
Group_exports,
|
|
7
|
+
Plugin_exports
|
|
8
|
+
} from "../../plugin-72zm9ftz.js";
|
|
9
|
+
import {
|
|
10
|
+
authMethods2
|
|
11
|
+
} from "../../plugin-y6mf6hx3.js";
|
|
12
|
+
import"../../plugin-ma04jcpp.js";
|
|
13
|
+
import {
|
|
14
|
+
tables_listTables2,
|
|
15
|
+
tables_getTable2,
|
|
16
|
+
organization_whoAmI2,
|
|
17
|
+
rows_listRows2,
|
|
18
|
+
rows_createRow2,
|
|
19
|
+
rows_deleteRow2,
|
|
20
|
+
rows_getRow2,
|
|
21
|
+
rows_updateRow2,
|
|
22
|
+
rows_associateRows2
|
|
23
|
+
} from "../../plugin-13g044ny.js";
|
|
24
|
+
import {
|
|
25
|
+
triggers2,
|
|
26
|
+
handlers2
|
|
27
|
+
} from "../../plugin-dpa3d1wz.js";
|
|
28
|
+
|
|
29
|
+
// dist/generated/plugin.js
|
|
30
|
+
var tables_listTables = Action_exports.make("list-tables", {
|
|
31
|
+
...tables_listTables2,
|
|
32
|
+
name: "List table definitions",
|
|
33
|
+
description: "Find a table's EntitySetName and primary columns; filter with, for example, IsValidForAdvancedFind eq true."
|
|
34
|
+
});
|
|
35
|
+
var tables_getTable = Action_exports.make("get-table", {
|
|
36
|
+
...tables_getTable2,
|
|
37
|
+
name: "Get a table definition with its columns",
|
|
38
|
+
description: "Expand Attributes($select=LogicalName,AttributeType,DisplayName) to list the table's columns."
|
|
39
|
+
});
|
|
40
|
+
var organization_whoAmI = Action_exports.make("who-am-i", {
|
|
41
|
+
...organization_whoAmI2,
|
|
42
|
+
name: "Get the signed-in user and organization"
|
|
43
|
+
});
|
|
44
|
+
var rows_listRows = Action_exports.make("list-rows", {
|
|
45
|
+
...rows_listRows2,
|
|
46
|
+
name: "List rows of a table",
|
|
47
|
+
description: "Query with OData ($select, $filter, $orderby, $top, $expand) or with a FetchXML query."
|
|
48
|
+
});
|
|
49
|
+
var rows_createRow = Action_exports.make("create-row", {
|
|
50
|
+
...rows_createRow2,
|
|
51
|
+
name: "Create a row",
|
|
52
|
+
description: 'Set lookups with <navigation property>@odata.bind, such as "parentcustomerid_account@odata.bind": "/accounts(<id>)". Send Prefer return=representation to get the created row back.'
|
|
53
|
+
});
|
|
54
|
+
var rows_deleteRow = Action_exports.make("delete-row", {
|
|
55
|
+
...rows_deleteRow2,
|
|
56
|
+
name: "Delete a row"
|
|
57
|
+
});
|
|
58
|
+
var rows_getRow = Action_exports.make("get-row", {
|
|
59
|
+
...rows_getRow2,
|
|
60
|
+
name: "Get a row"
|
|
61
|
+
});
|
|
62
|
+
var rows_updateRow = Action_exports.make("update-row", {
|
|
63
|
+
...rows_updateRow2,
|
|
64
|
+
name: "Update a row",
|
|
65
|
+
description: "Only the columns you send change. If-Match * fails instead of creating a missing row."
|
|
66
|
+
});
|
|
67
|
+
var rows_associateRows = Action_exports.make("associate-rows", {
|
|
68
|
+
...rows_associateRows2,
|
|
69
|
+
name: "Associate two rows",
|
|
70
|
+
description: "Links a row to another through a collection-valued navigation property."
|
|
71
|
+
});
|
|
72
|
+
var tablesGroup = Group_exports.make("tables").pipe(Group_exports.withName("Tables"), Group_exports.withActions([tables_listTables, tables_getTable]));
|
|
73
|
+
var organizationGroup = Group_exports.make("organization").pipe(Group_exports.withName("Organization"), Group_exports.withActions([organization_whoAmI]));
|
|
74
|
+
var rowsGroup = Group_exports.make("rows").pipe(Group_exports.withName("Rows"), Group_exports.withActions([
|
|
75
|
+
rows_listRows,
|
|
76
|
+
rows_createRow,
|
|
77
|
+
rows_deleteRow,
|
|
78
|
+
rows_getRow,
|
|
79
|
+
rows_updateRow,
|
|
80
|
+
rows_associateRows
|
|
81
|
+
]));
|
|
82
|
+
var dynamicsApiPluginBase = Plugin_exports.make("dynamics-api").pipe(Plugin_exports.withName("Dynamics 365"), Plugin_exports.withDescription("Microsoft Dynamics 365 integration for the Dual SDK"), Plugin_exports.withDocsUrl("https://learn.microsoft.com/power-apps/developer/data-platform/webapi/overview"), Plugin_exports.withCategories(["sales_crm"]), Plugin_exports.withHomepageUrl("https://dynamics.microsoft.com"), Plugin_exports.withIconUrl("https://upload.wikimedia.org/wikipedia/commons/4/44/Microsoft_logo.svg"), Plugin_exports.withAuthMethods(authMethods2), Plugin_exports.withGroups([
|
|
83
|
+
tablesGroup,
|
|
84
|
+
organizationGroup,
|
|
85
|
+
rowsGroup
|
|
86
|
+
]), Plugin_exports.withTriggers(triggers2));
|
|
87
|
+
var live = Plugin_exports.toLayer(dynamicsApiPluginBase, (handlers$1) => handlers$1.group("tables", (handlers) => handlers.action("list-tables", tables_listTables2.run).action("get-table", tables_getTable2.run)).group("organization", (handlers) => handlers.action("who-am-i", organization_whoAmI2.run)).group("rows", (handlers) => handlers.action("list-rows", rows_listRows2.run).action("create-row", rows_createRow2.run).action("delete-row", rows_deleteRow2.run).action("get-row", rows_getRow2.run).action("update-row", rows_updateRow2.run).action("associate-rows", rows_associateRows2.run)).withTriggers(handlers2));
|
|
88
|
+
var dynamicsApiPlugin = dynamicsApiPluginBase.pipe(Plugin_exports.provide(live), Plugin_exports.provide(layer2));
|
|
89
|
+
export {
|
|
90
|
+
dynamicsApiPlugin,
|
|
91
|
+
dynamicsApiPluginBase
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
//# debugId=67B5CFDCFBCB437A64756E2164756E21
|
|
95
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../bundle-input/dist/generated/plugin.js"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import { authMethods } from \"../auth.js\";\nimport { organization_whoAmI as organization_whoAmI$1, rows_associateRows as rows_associateRows$1, rows_createRow as rows_createRow$1, rows_deleteRow as rows_deleteRow$1, rows_getRow as rows_getRow$1, rows_listRows as rows_listRows$1, rows_updateRow as rows_updateRow$1, tables_getTable as tables_getTable$1, tables_listTables as tables_listTables$1 } from \"./operations.js\";\nimport { handlers, triggers } from \"../triggers.js\";\nimport { FetchHttpClient } from \"effect/http\";\nimport { Action, Group, Plugin } from \"@dual-os/sdk\";\n//#region src/generated/plugin.ts\nconst tables_listTables = Action.make(\"list-tables\", {\n\t...tables_listTables$1,\n\tname: \"List table definitions\",\n\tdescription: \"Find a table's EntitySetName and primary columns; filter with, for example, IsValidForAdvancedFind eq true.\"\n});\nconst tables_getTable = Action.make(\"get-table\", {\n\t...tables_getTable$1,\n\tname: \"Get a table definition with its columns\",\n\tdescription: \"Expand Attributes($select=LogicalName,AttributeType,DisplayName) to list the table's columns.\"\n});\nconst organization_whoAmI = Action.make(\"who-am-i\", {\n\t...organization_whoAmI$1,\n\tname: \"Get the signed-in user and organization\"\n});\nconst rows_listRows = Action.make(\"list-rows\", {\n\t...rows_listRows$1,\n\tname: \"List rows of a table\",\n\tdescription: \"Query with OData ($select, $filter, $orderby, $top, $expand) or with a FetchXML query.\"\n});\nconst rows_createRow = Action.make(\"create-row\", {\n\t...rows_createRow$1,\n\tname: \"Create a row\",\n\tdescription: \"Set lookups with <navigation property>@odata.bind, such as \\\"parentcustomerid_account@odata.bind\\\": \\\"/accounts(<id>)\\\". Send Prefer return=representation to get the created row back.\"\n});\nconst rows_deleteRow = Action.make(\"delete-row\", {\n\t...rows_deleteRow$1,\n\tname: \"Delete a row\"\n});\nconst rows_getRow = Action.make(\"get-row\", {\n\t...rows_getRow$1,\n\tname: \"Get a row\"\n});\nconst rows_updateRow = Action.make(\"update-row\", {\n\t...rows_updateRow$1,\n\tname: \"Update a row\",\n\tdescription: \"Only the columns you send change. If-Match * fails instead of creating a missing row.\"\n});\nconst rows_associateRows = Action.make(\"associate-rows\", {\n\t...rows_associateRows$1,\n\tname: \"Associate two rows\",\n\tdescription: \"Links a row to another through a collection-valued navigation property.\"\n});\nconst tablesGroup = Group.make(\"tables\").pipe(Group.withName(\"Tables\"), Group.withActions([tables_listTables, tables_getTable]));\nconst organizationGroup = Group.make(\"organization\").pipe(Group.withName(\"Organization\"), Group.withActions([organization_whoAmI]));\nconst rowsGroup = Group.make(\"rows\").pipe(Group.withName(\"Rows\"), Group.withActions([\n\trows_listRows,\n\trows_createRow,\n\trows_deleteRow,\n\trows_getRow,\n\trows_updateRow,\n\trows_associateRows\n]));\nconst dynamicsApiPluginBase = Plugin.make(\"dynamics-api\").pipe(Plugin.withName(\"Dynamics 365\"), Plugin.withDescription(\"Microsoft Dynamics 365 integration for the Dual SDK\"), Plugin.withDocsUrl(\"https://learn.microsoft.com/power-apps/developer/data-platform/webapi/overview\"), Plugin.withCategories([\"sales_crm\"]), Plugin.withHomepageUrl(\"https://dynamics.microsoft.com\"), Plugin.withIconUrl(\"https://upload.wikimedia.org/wikipedia/commons/4/44/Microsoft_logo.svg\"), Plugin.withAuthMethods(authMethods), Plugin.withGroups([\n\ttablesGroup,\n\torganizationGroup,\n\trowsGroup\n]), Plugin.withTriggers(triggers));\nconst live = Plugin.toLayer(dynamicsApiPluginBase, (handlers$1) => handlers$1.group(\"tables\", (handlers) => handlers.action(\"list-tables\", tables_listTables$1.run).action(\"get-table\", tables_getTable$1.run)).group(\"organization\", (handlers) => handlers.action(\"who-am-i\", organization_whoAmI$1.run)).group(\"rows\", (handlers) => handlers.action(\"list-rows\", rows_listRows$1.run).action(\"create-row\", rows_createRow$1.run).action(\"delete-row\", rows_deleteRow$1.run).action(\"get-row\", rows_getRow$1.run).action(\"update-row\", rows_updateRow$1.run).action(\"associate-rows\", rows_associateRows$1.run)).withTriggers(handlers));\nconst dynamicsApiPlugin = dynamicsApiPluginBase.pipe(Plugin.provide(live), Plugin.provide(FetchHttpClient.layer));\n//#endregion\nexport { dynamicsApiPlugin, dynamicsApiPluginBase };\n\n//# sourceMappingURL=plugin.js.map"
|
|
6
|
+
],
|
|
7
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAM,oBAAoB,eAAO,KAAK,eAAe;AAAA,KACjD;AAAA,EACH,MAAM;AAAA,EACN,aAAa;AACd,CAAC;AACD,IAAM,kBAAkB,eAAO,KAAK,aAAa;AAAA,KAC7C;AAAA,EACH,MAAM;AAAA,EACN,aAAa;AACd,CAAC;AACD,IAAM,sBAAsB,eAAO,KAAK,YAAY;AAAA,KAChD;AAAA,EACH,MAAM;AACP,CAAC;AACD,IAAM,gBAAgB,eAAO,KAAK,aAAa;AAAA,KAC3C;AAAA,EACH,MAAM;AAAA,EACN,aAAa;AACd,CAAC;AACD,IAAM,iBAAiB,eAAO,KAAK,cAAc;AAAA,KAC7C;AAAA,EACH,MAAM;AAAA,EACN,aAAa;AACd,CAAC;AACD,IAAM,iBAAiB,eAAO,KAAK,cAAc;AAAA,KAC7C;AAAA,EACH,MAAM;AACP,CAAC;AACD,IAAM,cAAc,eAAO,KAAK,WAAW;AAAA,KACvC;AAAA,EACH,MAAM;AACP,CAAC;AACD,IAAM,iBAAiB,eAAO,KAAK,cAAc;AAAA,KAC7C;AAAA,EACH,MAAM;AAAA,EACN,aAAa;AACd,CAAC;AACD,IAAM,qBAAqB,eAAO,KAAK,kBAAkB;AAAA,KACrD;AAAA,EACH,MAAM;AAAA,EACN,aAAa;AACd,CAAC;AACD,IAAM,cAAc,cAAM,KAAK,QAAQ,EAAE,KAAK,cAAM,SAAS,QAAQ,GAAG,cAAM,YAAY,CAAC,mBAAmB,eAAe,CAAC,CAAC;AAC/H,IAAM,oBAAoB,cAAM,KAAK,cAAc,EAAE,KAAK,cAAM,SAAS,cAAc,GAAG,cAAM,YAAY,CAAC,mBAAmB,CAAC,CAAC;AAClI,IAAM,YAAY,cAAM,KAAK,MAAM,EAAE,KAAK,cAAM,SAAS,MAAM,GAAG,cAAM,YAAY;AAAA,EACnF;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,CAAC,CAAC;AACF,IAAM,wBAAwB,eAAO,KAAK,cAAc,EAAE,KAAK,eAAO,SAAS,cAAc,GAAG,eAAO,gBAAgB,qDAAqD,GAAG,eAAO,YAAY,gFAAgF,GAAG,eAAO,eAAe,CAAC,WAAW,CAAC,GAAG,eAAO,gBAAgB,gCAAgC,GAAG,eAAO,YAAY,wEAAwE,GAAG,eAAO,gBAAgB,YAAW,GAAG,eAAO,WAAW;AAAA,EACzgB;AAAA,EACA;AAAA,EACA;AACD,CAAC,GAAG,eAAO,aAAa,SAAQ,CAAC;AACjC,IAAM,OAAO,eAAO,QAAQ,uBAAuB,CAAC,eAAe,WAAW,MAAM,UAAU,CAAC,aAAa,SAAS,OAAO,eAAe,mBAAoB,GAAG,EAAE,OAAO,aAAa,iBAAkB,GAAG,CAAC,EAAE,MAAM,gBAAgB,CAAC,aAAa,SAAS,OAAO,YAAY,qBAAsB,GAAG,CAAC,EAAE,MAAM,QAAQ,CAAC,aAAa,SAAS,OAAO,aAAa,eAAgB,GAAG,EAAE,OAAO,cAAc,gBAAiB,GAAG,EAAE,OAAO,cAAc,gBAAiB,GAAG,EAAE,OAAO,WAAW,aAAc,GAAG,EAAE,OAAO,cAAc,gBAAiB,GAAG,EAAE,OAAO,kBAAkB,oBAAqB,GAAG,CAAC,EAAE,aAAa,SAAQ,CAAC;AAC1mB,IAAM,oBAAoB,sBAAsB,KAAK,eAAO,QAAQ,IAAI,GAAG,eAAO,QAAQ,MAAqB,CAAC;",
|
|
8
|
+
"debugId": "67B5CFDCFBCB437A64756E2164756E21",
|
|
9
|
+
"names": []
|
|
10
|
+
}
|