@keystrokehq/pointagram 0.1.0 → 0.1.2
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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-score.cjs +2 -2
- package/dist/actions/add-score.cjs.map +1 -1
- package/dist/actions/add-score.d.cts +39 -3
- package/dist/actions/add-score.d.cts.map +1 -1
- package/dist/actions/add-score.d.mts +39 -3
- package/dist/actions/add-score.d.mts.map +1 -1
- package/dist/actions/add-score.mjs +2 -2
- package/dist/actions/add-score.mjs.map +1 -1
- package/dist/actions/list-competition-players.cjs.map +1 -1
- package/dist/actions/list-competition-players.d.cts +25 -3
- package/dist/actions/list-competition-players.d.cts.map +1 -1
- package/dist/actions/list-competition-players.d.mts +25 -3
- package/dist/actions/list-competition-players.d.mts.map +1 -1
- package/dist/actions/list-competition-players.mjs.map +1 -1
- package/dist/actions/list-competitions.cjs.map +1 -1
- package/dist/actions/list-competitions.d.cts +33 -3
- package/dist/actions/list-competitions.d.cts.map +1 -1
- package/dist/actions/list-competitions.d.mts +33 -3
- package/dist/actions/list-competitions.d.mts.map +1 -1
- package/dist/actions/list-competitions.mjs.map +1 -1
- package/dist/actions/list-players.cjs +3 -3
- package/dist/actions/list-players.cjs.map +1 -1
- package/dist/actions/list-players.d.cts +20 -3
- package/dist/actions/list-players.d.cts.map +1 -1
- package/dist/actions/list-players.d.mts +20 -3
- package/dist/actions/list-players.d.mts.map +1 -1
- package/dist/actions/list-players.mjs +3 -3
- package/dist/actions/list-players.mjs.map +1 -1
- package/dist/actions/list-score-series-history.cjs.map +1 -1
- package/dist/actions/list-score-series-history.d.cts +37 -3
- package/dist/actions/list-score-series-history.d.cts.map +1 -1
- package/dist/actions/list-score-series-history.d.mts +37 -3
- package/dist/actions/list-score-series-history.d.mts.map +1 -1
- package/dist/actions/list-score-series-history.mjs.map +1 -1
- package/dist/actions/list-score-series-point-types.cjs.map +1 -1
- package/dist/actions/list-score-series-point-types.d.cts +11 -3
- package/dist/actions/list-score-series-point-types.d.cts.map +1 -1
- package/dist/actions/list-score-series-point-types.d.mts +11 -3
- package/dist/actions/list-score-series-point-types.d.mts.map +1 -1
- package/dist/actions/list-score-series-point-types.mjs.map +1 -1
- package/dist/actions/list-score-series.cjs.map +1 -1
- package/dist/actions/list-score-series.d.cts +9 -3
- package/dist/actions/list-score-series.d.cts.map +1 -1
- package/dist/actions/list-score-series.d.mts +9 -3
- package/dist/actions/list-score-series.d.mts.map +1 -1
- package/dist/actions/list-score-series.mjs.map +1 -1
- package/dist/actions/list-teams.cjs +3 -3
- package/dist/actions/list-teams.cjs.map +1 -1
- package/dist/actions/list-teams.d.cts +9 -3
- package/dist/actions/list-teams.d.cts.map +1 -1
- package/dist/actions/list-teams.d.mts +9 -3
- package/dist/actions/list-teams.d.mts.map +1 -1
- package/dist/actions/list-teams.mjs +3 -3
- package/dist/actions/list-teams.mjs.map +1 -1
- package/dist/catalog.cjs +13 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +12 -0
- package/dist/catalog.d.mts +12 -0
- package/dist/catalog.mjs +13 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["pointagram","executePointagramTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pointagram } from \"./app\";\nimport { executePointagramTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["pointagram","executePointagramTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pointagram } from \"./app\";\nimport { executePointagramTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return pointagram.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePointagramTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pointagram } from \"./app\";\nimport { executePointagramTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pointagram } from \"./app\";\nimport { executePointagramTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return pointagram.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePointagramTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
|
|
@@ -17,8 +17,8 @@ const PointagramAddScoreInput = zod.z.object({
|
|
|
17
17
|
player_external_id: zod.z.string().describe("Your system's unique player identifier. Use for integration with external systems.").optional()
|
|
18
18
|
}).describe("Request model for adding points to Pointagram. At least one player identification\nfield and one score series identification field are required.");
|
|
19
19
|
const PointagramAddScoreOutput = zod.z.object({
|
|
20
|
-
message: zod.z.string().describe("Response message describing the result of the operation."),
|
|
21
|
-
status_code: zod.z.number().int().describe("HTTP status code returned by the API. 200 indicates success, 409 indicates conflict (e.g., duplicate source_score_id)."),
|
|
20
|
+
message: zod.z.string().describe("Response message describing the result of the operation.").nullable(),
|
|
21
|
+
status_code: zod.z.number().int().describe("HTTP status code returned by the API. 200 indicates success, 409 indicates conflict (e.g., duplicate source_score_id).").nullable(),
|
|
22
22
|
response_text: zod.z.string().describe("Raw response text from the API, if any.").nullable().optional()
|
|
23
23
|
}).describe("Response model for add_score action. The API primarily returns HTTP status codes.");
|
|
24
24
|
const pointagramAddScore = require_action.action("POINTAGRAM_ADD_SCORE", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-score.cjs","names":["z","action"],"sources":["../../src/actions/add-score.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramAddScoreInput
|
|
1
|
+
{"version":3,"file":"add-score.cjs","names":["z","action"],"sources":["../../src/actions/add-score.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramAddScoreInput = z.object({\n tags: z.array(z.object({\n name: z.string().describe(\"Tag name to display with points.\"),\n}).describe(\"Tag to be displayed with points.\")).describe(\"Tags displayed with points. Each tag should have a 'name' field.\").optional(),\n points: z.number().int().describe(\"Number of points to award. Use this OR pointtype_name.\").optional(),\n comment: z.string().describe(\"Description visible in the news feed about this score entry.\").optional(),\n player_id: z.string().describe(\"Internal Pointagram player identifier. Use this if you have the player's ID.\").optional(),\n score_time: z.string().describe(\"Sets transaction timestamp in datetime format (e.g., ISO 8601).\").optional(),\n player_name: z.string().describe(\"Player's display name for identification. Use when player_id is not available.\").optional(),\n player_email: z.string().describe(\"Player's email address for identification. Use when player_id is not available.\").optional(),\n create_player: z.number().int().describe(\"Set to 1 to automatically create missing players. Leave unset or set to 0 to not create players.\").optional(),\n pointtype_name: z.string().describe(\"Named point type to assign. Use this OR points.\").optional(),\n scoreseries_id: z.string().describe(\"ID of the target score series. Use this OR scoreseries_name.\").optional(),\n source_score_id: z.string().describe(\"Transaction identifier. Reusing this ID will revoke the previous entry with the same ID.\").optional(),\n scoreseries_name: z.string().describe(\"Name of the target score series. Use this OR scoreseries_id.\").optional(),\n player_external_id: z.string().describe(\"Your system's unique player identifier. Use for integration with external systems.\").optional(),\n}).describe(\"Request model for adding points to Pointagram. At least one player identification\\nfield and one score series identification field are required.\");\nexport const PointagramAddScoreOutput = z.object({\n message: z.string().describe(\"Response message describing the result of the operation.\").nullable(),\n status_code: z.number().int().describe(\"HTTP status code returned by the API. 200 indicates success, 409 indicates conflict (e.g., duplicate source_score_id).\").nullable(),\n response_text: z.string().describe(\"Raw response text from the API, if any.\").nullable().optional(),\n}).describe(\"Response model for add_score action. The API primarily returns HTTP status codes.\");\n\nexport const pointagramAddScore = action(\"POINTAGRAM_ADD_SCORE\", {\n slug: \"pointagram-add-score\",\n name: \"Add Score\",\n description: \"Tool to add points to Pointagram players in a score series. Use when you need to award points with optional tags, descriptions, and automatic player creation.\",\n input: PointagramAddScoreInput,\n output: PointagramAddScoreOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAA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A,EAAE,OAAO;CAC/C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC1K,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAE/F,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-score.d.ts
|
|
4
|
-
declare const PointagramAddScoreInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PointagramAddScoreInput: z.ZodObject<{
|
|
5
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
}, z.core.$strip>>>;
|
|
8
|
+
points: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
10
|
+
player_id: z.ZodOptional<z.ZodString>;
|
|
11
|
+
score_time: z.ZodOptional<z.ZodString>;
|
|
12
|
+
player_name: z.ZodOptional<z.ZodString>;
|
|
13
|
+
player_email: z.ZodOptional<z.ZodString>;
|
|
14
|
+
create_player: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
pointtype_name: z.ZodOptional<z.ZodString>;
|
|
16
|
+
scoreseries_id: z.ZodOptional<z.ZodString>;
|
|
17
|
+
source_score_id: z.ZodOptional<z.ZodString>;
|
|
18
|
+
scoreseries_name: z.ZodOptional<z.ZodString>;
|
|
19
|
+
player_external_id: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const PointagramAddScoreOutput: z.ZodObject<{
|
|
22
|
+
message: z.ZodNullable<z.ZodString>;
|
|
23
|
+
status_code: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
response_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const pointagramAddScore: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
tags?: {
|
|
28
|
+
name: string;
|
|
29
|
+
}[] | undefined;
|
|
30
|
+
points?: number | undefined;
|
|
31
|
+
comment?: string | undefined;
|
|
32
|
+
player_id?: string | undefined;
|
|
33
|
+
score_time?: string | undefined;
|
|
34
|
+
player_name?: string | undefined;
|
|
35
|
+
player_email?: string | undefined;
|
|
36
|
+
create_player?: number | undefined;
|
|
37
|
+
pointtype_name?: string | undefined;
|
|
38
|
+
scoreseries_id?: string | undefined;
|
|
39
|
+
source_score_id?: string | undefined;
|
|
40
|
+
scoreseries_name?: string | undefined;
|
|
41
|
+
player_external_id?: string | undefined;
|
|
42
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
43
|
//#endregion
|
|
8
44
|
export { pointagramAddScore };
|
|
9
45
|
//# sourceMappingURL=add-score.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-score.d.cts","names":[],"sources":["../../src/actions/add-score.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"add-score.d.cts","names":[],"sources":["../../src/actions/add-score.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-score.d.ts
|
|
4
|
-
declare const PointagramAddScoreInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PointagramAddScoreInput: z.ZodObject<{
|
|
5
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
}, z.core.$strip>>>;
|
|
8
|
+
points: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
10
|
+
player_id: z.ZodOptional<z.ZodString>;
|
|
11
|
+
score_time: z.ZodOptional<z.ZodString>;
|
|
12
|
+
player_name: z.ZodOptional<z.ZodString>;
|
|
13
|
+
player_email: z.ZodOptional<z.ZodString>;
|
|
14
|
+
create_player: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
pointtype_name: z.ZodOptional<z.ZodString>;
|
|
16
|
+
scoreseries_id: z.ZodOptional<z.ZodString>;
|
|
17
|
+
source_score_id: z.ZodOptional<z.ZodString>;
|
|
18
|
+
scoreseries_name: z.ZodOptional<z.ZodString>;
|
|
19
|
+
player_external_id: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const PointagramAddScoreOutput: z.ZodObject<{
|
|
22
|
+
message: z.ZodNullable<z.ZodString>;
|
|
23
|
+
status_code: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
response_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const pointagramAddScore: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
tags?: {
|
|
28
|
+
name: string;
|
|
29
|
+
}[] | undefined;
|
|
30
|
+
points?: number | undefined;
|
|
31
|
+
comment?: string | undefined;
|
|
32
|
+
player_id?: string | undefined;
|
|
33
|
+
score_time?: string | undefined;
|
|
34
|
+
player_name?: string | undefined;
|
|
35
|
+
player_email?: string | undefined;
|
|
36
|
+
create_player?: number | undefined;
|
|
37
|
+
pointtype_name?: string | undefined;
|
|
38
|
+
scoreseries_id?: string | undefined;
|
|
39
|
+
source_score_id?: string | undefined;
|
|
40
|
+
scoreseries_name?: string | undefined;
|
|
41
|
+
player_external_id?: string | undefined;
|
|
42
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
43
|
//#endregion
|
|
8
44
|
export { pointagramAddScore };
|
|
9
45
|
//# sourceMappingURL=add-score.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-score.d.mts","names":[],"sources":["../../src/actions/add-score.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"add-score.d.mts","names":[],"sources":["../../src/actions/add-score.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -20,8 +20,8 @@ const pointagramAddScore = action("POINTAGRAM_ADD_SCORE", {
|
|
|
20
20
|
player_external_id: z.string().describe("Your system's unique player identifier. Use for integration with external systems.").optional()
|
|
21
21
|
}).describe("Request model for adding points to Pointagram. At least one player identification\nfield and one score series identification field are required."),
|
|
22
22
|
output: z.object({
|
|
23
|
-
message: z.string().describe("Response message describing the result of the operation."),
|
|
24
|
-
status_code: z.number().int().describe("HTTP status code returned by the API. 200 indicates success, 409 indicates conflict (e.g., duplicate source_score_id)."),
|
|
23
|
+
message: z.string().describe("Response message describing the result of the operation.").nullable(),
|
|
24
|
+
status_code: z.number().int().describe("HTTP status code returned by the API. 200 indicates success, 409 indicates conflict (e.g., duplicate source_score_id).").nullable(),
|
|
25
25
|
response_text: z.string().describe("Raw response text from the API, if any.").nullable().optional()
|
|
26
26
|
}).describe("Response model for add_score action. The API primarily returns HTTP status codes.")
|
|
27
27
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-score.mjs","names":[],"sources":["../../src/actions/add-score.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramAddScoreInput
|
|
1
|
+
{"version":3,"file":"add-score.mjs","names":[],"sources":["../../src/actions/add-score.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramAddScoreInput = z.object({\n tags: z.array(z.object({\n name: z.string().describe(\"Tag name to display with points.\"),\n}).describe(\"Tag to be displayed with points.\")).describe(\"Tags displayed with points. Each tag should have a 'name' field.\").optional(),\n points: z.number().int().describe(\"Number of points to award. Use this OR pointtype_name.\").optional(),\n comment: z.string().describe(\"Description visible in the news feed about this score entry.\").optional(),\n player_id: z.string().describe(\"Internal Pointagram player identifier. Use this if you have the player's ID.\").optional(),\n score_time: z.string().describe(\"Sets transaction timestamp in datetime format (e.g., ISO 8601).\").optional(),\n player_name: z.string().describe(\"Player's display name for identification. Use when player_id is not available.\").optional(),\n player_email: z.string().describe(\"Player's email address for identification. Use when player_id is not available.\").optional(),\n create_player: z.number().int().describe(\"Set to 1 to automatically create missing players. Leave unset or set to 0 to not create players.\").optional(),\n pointtype_name: z.string().describe(\"Named point type to assign. Use this OR points.\").optional(),\n scoreseries_id: z.string().describe(\"ID of the target score series. Use this OR scoreseries_name.\").optional(),\n source_score_id: z.string().describe(\"Transaction identifier. Reusing this ID will revoke the previous entry with the same ID.\").optional(),\n scoreseries_name: z.string().describe(\"Name of the target score series. Use this OR scoreseries_id.\").optional(),\n player_external_id: z.string().describe(\"Your system's unique player identifier. Use for integration with external systems.\").optional(),\n}).describe(\"Request model for adding points to Pointagram. At least one player identification\\nfield and one score series identification field are required.\");\nexport const PointagramAddScoreOutput = z.object({\n message: z.string().describe(\"Response message describing the result of the operation.\").nullable(),\n status_code: z.number().int().describe(\"HTTP status code returned by the API. 200 indicates success, 409 indicates conflict (e.g., duplicate source_score_id).\").nullable(),\n response_text: z.string().describe(\"Raw response text from the API, if any.\").nullable().optional(),\n}).describe(\"Response model for add_score action. The API primarily returns HTTP status codes.\");\n\nexport const pointagramAddScore = action(\"POINTAGRAM_ADD_SCORE\", {\n slug: \"pointagram-add-score\",\n name: \"Add Score\",\n description: \"Tool to add points to Pointagram players in a score series. Use when you need to award points with optional tags, descriptions, and automatic player creation.\",\n input: PointagramAddScoreInput,\n output: PointagramAddScoreOutput,\n});\n"],"mappings":";;AA2BA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3BqC,EAAE,OAAO;EAC9C,MAAM,EAAE,MAAM,EAAE,OAAO,EACvB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,EAC9D,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EACrI,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACrG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACtG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACxH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EAC5H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC9H,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACtJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAChG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EAC7G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;EAC1I,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EAC/G,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,SAAS,kJAWH;CACP,QAXsC,EAAE,OAAO;EAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAClG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;EAC1K,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,SAAS,mFAOF;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-competition-players.cjs","names":["z","action"],"sources":["../../src/actions/list-competition-players.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramListCompetitionPlayersInput
|
|
1
|
+
{"version":3,"file":"list-competition-players.cjs","names":["z","action"],"sources":["../../src/actions/list-competition-players.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramListCompetitionPlayersInput = z.object({\n player_id: z.string().describe(\"Filter by specific player ID to get their competition participation.\").optional(),\n competition_id: z.string().describe(\"Filter players by specific competition ID. If not provided, returns players from all competitions.\").optional(),\n player_external_id: z.string().describe(\"Filter by external player identifier from your system.\").optional(),\n}).describe(\"Request model for listing competition players with optional filtering.\");\nconst PointagramListCompetitionPlayers_CompetitionPlayerItemSchema = z.object({\n rank: z.union([z.number().int(), z.string()]).nullable().optional(),\n score: z.union([z.number().int(), z.number(), z.string()]).nullable().optional(),\n points: z.union([z.number().int(), z.number(), z.string()]).nullable().optional(),\n team_id: z.string().describe(\"Team identifier if the player is part of a team.\").nullable().optional(),\n player_id: z.string().describe(\"Unique player identifier in Pointagram.\").nullable().optional(),\n team_name: z.string().describe(\"Team name if the player is part of a team.\").nullable().optional(),\n external_id: z.string().describe(\"External identifier for the player from your system.\").nullable().optional(),\n player_name: z.string().describe(\"Name of the player in the competition.\").nullable().optional(),\n player_email: z.string().describe(\"Email address of the player.\").nullable().optional(),\n competition_id: z.string().describe(\"Competition identifier that the player is participating in.\").nullable().optional(),\n competition_name: z.string().describe(\"Name of the competition.\").nullable().optional(),\n}).describe(\"Model representing a player's competition data including rankings and scores.\");\nexport const PointagramListCompetitionPlayersOutput = z.object({\n players: z.array(PointagramListCompetitionPlayers_CompetitionPlayerItemSchema).describe(\"List of players with their competition participation, rankings, and scores.\").nullable().optional(),\n}).describe(\"Response model for listing competition players. Returns an array of player competition data.\");\n\nexport const pointagramListCompetitionPlayers = action(\"POINTAGRAM_LIST_COMPETITION_PLAYERS\", {\n slug: \"pointagram-list-competition-players\",\n name: \"List Competition Players\",\n description: \"Tool to fetch competition players and standings in Pointagram. Returns detailed player rankings, scores, and competition participation data. Use when you need to retrieve player standings, competition leaderboards, or analyze player performance across competitions.\",\n input: PointagramListCompetitionPlayersInput,\n output: PointagramListCompetitionPlayersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAChH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACnJ,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,+DAA+DA,IAAAA,EAAE,OAAO;CAC5E,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA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F,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAC3F,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,SAASA,IAAAA,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7L,CAAC,CAAC,CAAC,SAAS,8FAA8F;AAE1G,MAAa,mCAAmCC,eAAAA,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-competition-players.d.ts
|
|
4
|
-
declare const PointagramListCompetitionPlayersInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PointagramListCompetitionPlayersInput: z.ZodObject<{
|
|
5
|
+
player_id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
competition_id: z.ZodOptional<z.ZodString>;
|
|
7
|
+
player_external_id: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const PointagramListCompetitionPlayersOutput: z.ZodObject<{
|
|
10
|
+
players: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
11
|
+
rank: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
12
|
+
score: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber, z.ZodString]>>>;
|
|
13
|
+
points: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber, z.ZodString]>>>;
|
|
14
|
+
team_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
player_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
team_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
player_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
player_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
competition_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
competition_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$strip>>>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const pointagramListCompetitionPlayers: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
player_id?: string | undefined;
|
|
26
|
+
competition_id?: string | undefined;
|
|
27
|
+
player_external_id?: string | undefined;
|
|
28
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
29
|
//#endregion
|
|
8
30
|
export { pointagramListCompetitionPlayers };
|
|
9
31
|
//# sourceMappingURL=list-competition-players.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-competition-players.d.cts","names":[],"sources":["../../src/actions/list-competition-players.ts"],"mappings":";;;cAIa,qCAAA,
|
|
1
|
+
{"version":3,"file":"list-competition-players.d.cts","names":[],"sources":["../../src/actions/list-competition-players.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;cAkBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAItC,gCAAA,gCAAgC,wBAAA"}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-competition-players.d.ts
|
|
4
|
-
declare const PointagramListCompetitionPlayersInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PointagramListCompetitionPlayersInput: z.ZodObject<{
|
|
5
|
+
player_id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
competition_id: z.ZodOptional<z.ZodString>;
|
|
7
|
+
player_external_id: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const PointagramListCompetitionPlayersOutput: z.ZodObject<{
|
|
10
|
+
players: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
11
|
+
rank: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
12
|
+
score: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber, z.ZodString]>>>;
|
|
13
|
+
points: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber, z.ZodString]>>>;
|
|
14
|
+
team_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
player_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
team_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
player_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
player_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
competition_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
competition_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$strip>>>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const pointagramListCompetitionPlayers: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
player_id?: string | undefined;
|
|
26
|
+
competition_id?: string | undefined;
|
|
27
|
+
player_external_id?: string | undefined;
|
|
28
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
29
|
//#endregion
|
|
8
30
|
export { pointagramListCompetitionPlayers };
|
|
9
31
|
//# sourceMappingURL=list-competition-players.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-competition-players.d.mts","names":[],"sources":["../../src/actions/list-competition-players.ts"],"mappings":";;;cAIa,qCAAA,
|
|
1
|
+
{"version":3,"file":"list-competition-players.d.mts","names":[],"sources":["../../src/actions/list-competition-players.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;cAkBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAItC,gCAAA,gCAAgC,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-competition-players.mjs","names":[],"sources":["../../src/actions/list-competition-players.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramListCompetitionPlayersInput
|
|
1
|
+
{"version":3,"file":"list-competition-players.mjs","names":[],"sources":["../../src/actions/list-competition-players.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramListCompetitionPlayersInput = z.object({\n player_id: z.string().describe(\"Filter by specific player ID to get their competition participation.\").optional(),\n competition_id: z.string().describe(\"Filter players by specific competition ID. If not provided, returns players from all competitions.\").optional(),\n player_external_id: z.string().describe(\"Filter by external player identifier from your system.\").optional(),\n}).describe(\"Request model for listing competition players with optional filtering.\");\nconst PointagramListCompetitionPlayers_CompetitionPlayerItemSchema = z.object({\n rank: z.union([z.number().int(), z.string()]).nullable().optional(),\n score: z.union([z.number().int(), z.number(), z.string()]).nullable().optional(),\n points: z.union([z.number().int(), z.number(), z.string()]).nullable().optional(),\n team_id: z.string().describe(\"Team identifier if the player is part of a team.\").nullable().optional(),\n player_id: z.string().describe(\"Unique player identifier in Pointagram.\").nullable().optional(),\n team_name: z.string().describe(\"Team name if the player is part of a team.\").nullable().optional(),\n external_id: z.string().describe(\"External identifier for the player from your system.\").nullable().optional(),\n player_name: z.string().describe(\"Name of the player in the competition.\").nullable().optional(),\n player_email: z.string().describe(\"Email address of the player.\").nullable().optional(),\n competition_id: z.string().describe(\"Competition identifier that the player is participating in.\").nullable().optional(),\n competition_name: z.string().describe(\"Name of the competition.\").nullable().optional(),\n}).describe(\"Model representing a player's competition data including rankings and scores.\");\nexport const PointagramListCompetitionPlayersOutput = z.object({\n players: z.array(PointagramListCompetitionPlayers_CompetitionPlayerItemSchema).describe(\"List of players with their competition participation, rankings, and scores.\").nullable().optional(),\n}).describe(\"Response model for listing competition players. Returns an array of player competition data.\");\n\nexport const pointagramListCompetitionPlayers = action(\"POINTAGRAM_LIST_COMPETITION_PLAYERS\", {\n slug: \"pointagram-list-competition-players\",\n name: \"List Competition Players\",\n description: \"Tool to fetch competition players and standings in Pointagram. Returns detailed player rankings, scores, and competition participation data. Use when you need to retrieve player standings, competition leaderboards, or analyze player performance across competitions.\",\n input: PointagramListCompetitionPlayersInput,\n output: PointagramListCompetitionPlayersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAChH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACnJ,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,+DAA+D,EAAE,OAAO;CAC5E,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,MAAM;EAAC,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,QAAQ,EAAE,MAAM;EAAC,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAK3F,MAAa,mCAAmC,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,SAAS,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7L,CAAC,CAAC,CAAC,SAAS,8FAOF;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-competitions.cjs","names":["z","action"],"sources":["../../src/actions/list-competitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramListCompetitionsInput
|
|
1
|
+
{"version":3,"file":"list-competitions.cjs","names":["z","action"],"sources":["../../src/actions/list-competitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramListCompetitionsInput = z.object({\n filter: z.string().describe(\"The search value to match against the criteria specified in search_by parameter. Used to filter competitions by player information.\").optional(),\n accesskey: z.string().describe(\"Filter results to show only competitions associated with a specific access key identifier.\").optional(),\n search_by: z.enum([\"Email\", \"Name\", \"External Id\"]).describe(\"Specifies the search criteria type to filter competitions by player. Accepts 'Email', 'Name', or 'External Id'. Used in combination with 'filter' parameter.\").optional(),\n competition_id: z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request model for listing competitions with optional filtering.\");\nconst PointagramListCompetitions_CompetitionRankingSchema = z.object({\n rank: z.number().int().describe(\"Player's rank in the competition.\").nullable().optional(),\n score: z.union([z.number().int(), z.number()]).nullable().optional(),\n player_id: z.string().describe(\"Unique identifier of the player.\").nullable().optional(),\n player_name: z.string().describe(\"Name of the player.\").nullable().optional(),\n}).describe(\"Model representing a player's ranking within a competition.\");\nconst PointagramListCompetitions_CompetitionItemSchema = z.object({\n id: z.union([z.number().int(), z.string()]).nullable().optional(),\n name: z.string().describe(\"Name of the competition.\").nullable().optional(),\n status: z.string().describe(\"Current status of the competition.\").nullable().optional(),\n end_date: z.string().describe(\"End date of the competition.\").nullable().optional(),\n rankings: z.array(PointagramListCompetitions_CompetitionRankingSchema).describe(\"List of player rankings and scores in the competition.\").nullable().optional(),\n accesskey: z.string().describe(\"Access key associated with the competition.\").nullable().optional(),\n start_date: z.string().describe(\"Start date of the competition.\").nullable().optional(),\n description: z.string().describe(\"Description of the competition.\").nullable().optional(),\n}).describe(\"Model representing a single competition in Pointagram.\");\nexport const PointagramListCompetitionsOutput = z.object({\n competitions: z.array(PointagramListCompetitions_CompetitionItemSchema).describe(\"List of competitions matching the search criteria, including rankings and scores.\").nullable().optional(),\n}).describe(\"Response model for listing competitions. Returns an array of competition objects.\");\n\nexport const pointagramListCompetitions = action(\"POINTAGRAM_LIST_COMPETITIONS\", {\n slug: \"pointagram-list-competitions\",\n name: \"List Competitions\",\n description: \"Tool to fetch competitions in Pointagram with optional filtering. Use when you need to retrieve competition information including rankings and scores. Supports filtering by player (email, name, external ID), competition ID, or access key.\",\n input: PointagramListCompetitionsInput,\n output: PointagramListCompetitionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CAC5K,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACtI,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAQ;CAAa,CAAC,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CACtO,gBAAgBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAA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P,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-competitions.d.ts
|
|
4
|
-
declare const PointagramListCompetitionsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PointagramListCompetitionsInput: z.ZodObject<{
|
|
5
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
6
|
+
accesskey: z.ZodOptional<z.ZodString>;
|
|
7
|
+
search_by: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
Email: "Email";
|
|
9
|
+
Name: "Name";
|
|
10
|
+
"External Id": "External Id";
|
|
11
|
+
}>>;
|
|
12
|
+
competition_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const PointagramListCompetitionsOutput: z.ZodObject<{
|
|
15
|
+
competitions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
17
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
end_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
rankings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
21
|
+
rank: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
score: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber]>>>;
|
|
23
|
+
player_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
player_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>>>>;
|
|
26
|
+
accesskey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
start_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, z.core.$strip>>>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
declare const pointagramListCompetitions: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
filter?: string | undefined;
|
|
33
|
+
accesskey?: string | undefined;
|
|
34
|
+
search_by?: "Email" | "Name" | "External Id" | undefined;
|
|
35
|
+
competition_id?: string | number | undefined;
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { pointagramListCompetitions };
|
|
9
39
|
//# sourceMappingURL=list-competitions.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-competitions.d.cts","names":[],"sources":["../../src/actions/list-competitions.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"list-competitions.d.cts","names":[],"sources":["../../src/actions/list-competitions.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;cAsB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-competitions.d.ts
|
|
4
|
-
declare const PointagramListCompetitionsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PointagramListCompetitionsInput: z.ZodObject<{
|
|
5
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
6
|
+
accesskey: z.ZodOptional<z.ZodString>;
|
|
7
|
+
search_by: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
Email: "Email";
|
|
9
|
+
Name: "Name";
|
|
10
|
+
"External Id": "External Id";
|
|
11
|
+
}>>;
|
|
12
|
+
competition_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const PointagramListCompetitionsOutput: z.ZodObject<{
|
|
15
|
+
competitions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
17
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
end_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
rankings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
21
|
+
rank: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
score: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber]>>>;
|
|
23
|
+
player_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
player_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>>>>;
|
|
26
|
+
accesskey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
start_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, z.core.$strip>>>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
declare const pointagramListCompetitions: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
filter?: string | undefined;
|
|
33
|
+
accesskey?: string | undefined;
|
|
34
|
+
search_by?: "Email" | "Name" | "External Id" | undefined;
|
|
35
|
+
competition_id?: string | number | undefined;
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { pointagramListCompetitions };
|
|
9
39
|
//# sourceMappingURL=list-competitions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-competitions.d.mts","names":[],"sources":["../../src/actions/list-competitions.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"list-competitions.d.mts","names":[],"sources":["../../src/actions/list-competitions.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;cAsB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-competitions.mjs","names":[],"sources":["../../src/actions/list-competitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramListCompetitionsInput
|
|
1
|
+
{"version":3,"file":"list-competitions.mjs","names":[],"sources":["../../src/actions/list-competitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramListCompetitionsInput = z.object({\n filter: z.string().describe(\"The search value to match against the criteria specified in search_by parameter. Used to filter competitions by player information.\").optional(),\n accesskey: z.string().describe(\"Filter results to show only competitions associated with a specific access key identifier.\").optional(),\n search_by: z.enum([\"Email\", \"Name\", \"External Id\"]).describe(\"Specifies the search criteria type to filter competitions by player. Accepts 'Email', 'Name', or 'External Id'. Used in combination with 'filter' parameter.\").optional(),\n competition_id: z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request model for listing competitions with optional filtering.\");\nconst PointagramListCompetitions_CompetitionRankingSchema = z.object({\n rank: z.number().int().describe(\"Player's rank in the competition.\").nullable().optional(),\n score: z.union([z.number().int(), z.number()]).nullable().optional(),\n player_id: z.string().describe(\"Unique identifier of the player.\").nullable().optional(),\n player_name: z.string().describe(\"Name of the player.\").nullable().optional(),\n}).describe(\"Model representing a player's ranking within a competition.\");\nconst PointagramListCompetitions_CompetitionItemSchema = z.object({\n id: z.union([z.number().int(), z.string()]).nullable().optional(),\n name: z.string().describe(\"Name of the competition.\").nullable().optional(),\n status: z.string().describe(\"Current status of the competition.\").nullable().optional(),\n end_date: z.string().describe(\"End date of the competition.\").nullable().optional(),\n rankings: z.array(PointagramListCompetitions_CompetitionRankingSchema).describe(\"List of player rankings and scores in the competition.\").nullable().optional(),\n accesskey: z.string().describe(\"Access key associated with the competition.\").nullable().optional(),\n start_date: z.string().describe(\"Start date of the competition.\").nullable().optional(),\n description: z.string().describe(\"Description of the competition.\").nullable().optional(),\n}).describe(\"Model representing a single competition in Pointagram.\");\nexport const PointagramListCompetitionsOutput = z.object({\n competitions: z.array(PointagramListCompetitions_CompetitionItemSchema).describe(\"List of competitions matching the search criteria, including rankings and scores.\").nullable().optional(),\n}).describe(\"Response model for listing competitions. Returns an array of competition objects.\");\n\nexport const pointagramListCompetitions = action(\"POINTAGRAM_LIST_COMPETITIONS\", {\n slug: \"pointagram-list-competitions\",\n name: \"List Competitions\",\n description: \"Tool to fetch competitions in Pointagram with optional filtering. Use when you need to retrieve competition information including rankings and scores. Supports filtering by player (email, name, external ID), competition ID, or access key.\",\n input: PointagramListCompetitionsInput,\n output: PointagramListCompetitionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CAC5K,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACtI,WAAW,EAAE,KAAK;EAAC;EAAS;EAAQ;CAAa,CAAC,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CACtO,gBAAgB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAA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;CACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAKpE,MAAa,6BAA6B,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,cAAc,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC5L,CAAC,CAAC,CAAC,SAAS,mFAOF;AACV,CAAC"}
|
|
@@ -10,10 +10,10 @@ const PointagramListPlayersInput = zod.z.object({
|
|
|
10
10
|
]).describe("Specifies the search field to filter players. Accepts 'Email', 'Name', or 'External Id'. If provided, 'filter' parameter must also be provided.").optional()
|
|
11
11
|
}).describe("Request model for listing players with optional filtering.");
|
|
12
12
|
const PointagramListPlayers_PlayerItemSchema = zod.z.object({
|
|
13
|
-
id: zod.z.string().describe("The internal Pointagram player identifier."),
|
|
14
|
-
Name: zod.z.string().describe("The player's display name in the system."),
|
|
13
|
+
id: zod.z.string().describe("The internal Pointagram player identifier.").nullable(),
|
|
14
|
+
Name: zod.z.string().describe("The player's display name in the system.").nullable(),
|
|
15
15
|
external_id: zod.z.string().describe("Optional custom identifier from your system.").nullable().optional(),
|
|
16
|
-
emailaddress: zod.z.string().describe("The player's email address.")
|
|
16
|
+
emailaddress: zod.z.string().describe("The player's email address.").nullable()
|
|
17
17
|
}).describe("Player information model.");
|
|
18
18
|
const PointagramListPlayersOutput = zod.z.object({ players: zod.z.array(PointagramListPlayers_PlayerItemSchema).describe("List of players matching the search criteria.") }).describe("Response model for listing players. Returns an array of player objects.");
|
|
19
19
|
const pointagramListPlayers = require_action.action("POINTAGRAM_LIST_PLAYERS", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-players.cjs","names":["z","action"],"sources":["../../src/actions/list-players.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramListPlayersInput
|
|
1
|
+
{"version":3,"file":"list-players.cjs","names":["z","action"],"sources":["../../src/actions/list-players.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramListPlayersInput = z.object({\n filter: z.string().describe(\"The search value to match against the specified search_by field. Used in combination with 'search_by' parameter to filter results.\").optional(),\n search_by: z.enum([\"Email\", \"Name\", \"External Id\"]).describe(\"Specifies the search field to filter players. Accepts 'Email', 'Name', or 'External Id'. If provided, 'filter' parameter must also be provided.\").optional(),\n}).describe(\"Request model for listing players with optional filtering.\");\nconst PointagramListPlayers_PlayerItemSchema = z.object({\n id: z.string().describe(\"The internal Pointagram player identifier.\").nullable(),\n Name: z.string().describe(\"The player's display name in the system.\").nullable(),\n external_id: z.string().describe(\"Optional custom identifier from your system.\").nullable().optional(),\n emailaddress: z.string().describe(\"The player's email address.\").nullable(),\n}).describe(\"Player information model.\");\nexport const PointagramListPlayersOutput = z.object({\n players: z.array(PointagramListPlayers_PlayerItemSchema).describe(\"List of players matching the search criteria.\"),\n}).describe(\"Response model for listing players. Returns an array of player objects.\");\n\nexport const pointagramListPlayers = action(\"POINTAGRAM_LIST_PLAYERS\", {\n slug: \"pointagram-list-players\",\n name: \"List Players\",\n description: \"Tool to fetch and list players in Pointagram with optional filtering. Use when you need to retrieve player information including name, email, external ID, and status. Supports filtering by email, name, or external ID.\",\n input: PointagramListPlayersInput,\n output: PointagramListPlayersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CAC3K,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAQ;CAAa,CAAC,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;AAC3N,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,2BAA2B;AACvC,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAASA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,+CAA+C,EACnH,CAAC,CAAC,CAAC,SAAS,yEAAyE;AAErF,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-players.d.ts
|
|
4
|
-
declare const PointagramListPlayersInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PointagramListPlayersInput: z.ZodObject<{
|
|
5
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
6
|
+
search_by: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
Email: "Email";
|
|
8
|
+
Name: "Name";
|
|
9
|
+
"External Id": "External Id";
|
|
10
|
+
}>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const PointagramListPlayersOutput: z.ZodObject<{
|
|
13
|
+
players: z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodString>;
|
|
15
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
16
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
emailaddress: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const pointagramListPlayers: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
|
+
filter?: string | undefined;
|
|
22
|
+
search_by?: "Email" | "Name" | "External Id" | undefined;
|
|
23
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
24
|
//#endregion
|
|
8
25
|
export { pointagramListPlayers };
|
|
9
26
|
//# sourceMappingURL=list-players.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-players.d.cts","names":[],"sources":["../../src/actions/list-players.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"list-players.d.cts","names":[],"sources":["../../src/actions/list-players.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAU1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-players.d.ts
|
|
4
|
-
declare const PointagramListPlayersInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PointagramListPlayersInput: z.ZodObject<{
|
|
5
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
6
|
+
search_by: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
Email: "Email";
|
|
8
|
+
Name: "Name";
|
|
9
|
+
"External Id": "External Id";
|
|
10
|
+
}>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const PointagramListPlayersOutput: z.ZodObject<{
|
|
13
|
+
players: z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodString>;
|
|
15
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
16
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
emailaddress: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const pointagramListPlayers: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
|
+
filter?: string | undefined;
|
|
22
|
+
search_by?: "Email" | "Name" | "External Id" | undefined;
|
|
23
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
24
|
//#endregion
|
|
8
25
|
export { pointagramListPlayers };
|
|
9
26
|
//# sourceMappingURL=list-players.d.mts.map
|