@keystrokehq/pointagram 0.1.0 → 0.1.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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-score.cjs +4 -4
- package/dist/actions/add-score.cjs.map +1 -1
- package/dist/actions/add-score.d.cts +40 -3
- package/dist/actions/add-score.d.cts.map +1 -1
- package/dist/actions/add-score.d.mts +40 -3
- package/dist/actions/add-score.d.mts.map +1 -1
- package/dist/actions/add-score.mjs +4 -4
- package/dist/actions/add-score.mjs.map +1 -1
- package/dist/actions/list-competition-players.cjs +2 -2
- 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 +2 -2
- package/dist/actions/list-competition-players.mjs.map +1 -1
- package/dist/actions/list-competitions.cjs +3 -3
- 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 +3 -3
- package/dist/actions/list-competitions.mjs.map +1 -1
- package/dist/actions/list-players.cjs +5 -5
- 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 +5 -5
- package/dist/actions/list-players.mjs.map +1 -1
- package/dist/actions/list-score-series-history.cjs +2 -2
- 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 +2 -2
- package/dist/actions/list-score-series-history.mjs.map +1 -1
- package/dist/actions/list-score-series-point-types.cjs +2 -2
- 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 +2 -2
- package/dist/actions/list-score-series-point-types.mjs.map +1 -1
- package/dist/actions/list-score-series.cjs +2 -2
- 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 +2 -2
- package/dist/actions/list-score-series.mjs.map +1 -1
- package/dist/actions/list-teams.cjs +5 -5
- 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 +5 -5
- 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"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/add-score.ts
|
|
4
4
|
const PointagramAddScoreInput = zod.z.object({
|
|
5
|
-
tags: zod.z.array(zod.z.object({ name: zod.z.string().describe("Tag name to display with points.") }).describe("Tag to be displayed with points.")).describe("Tags displayed with points. Each tag should have a 'name' field.").optional(),
|
|
5
|
+
tags: zod.z.array(zod.z.object({ name: zod.z.string().describe("Tag name to display with points.") }).passthrough().describe("Tag to be displayed with points.")).describe("Tags displayed with points. Each tag should have a 'name' field.").optional(),
|
|
6
6
|
points: zod.z.number().int().describe("Number of points to award. Use this OR pointtype_name.").optional(),
|
|
7
7
|
comment: zod.z.string().describe("Description visible in the news feed about this score entry.").optional(),
|
|
8
8
|
player_id: zod.z.string().describe("Internal Pointagram player identifier. Use this if you have the player's ID.").optional(),
|
|
@@ -17,10 +17,10 @@ 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
|
-
}).describe("Response model for add_score action. The API primarily returns HTTP status codes.");
|
|
23
|
+
}).passthrough().describe("Response model for add_score action. The API primarily returns HTTP status codes.");
|
|
24
24
|
const pointagramAddScore = require_action.action("POINTAGRAM_ADD_SCORE", {
|
|
25
25
|
slug: "pointagram-add-score",
|
|
26
26
|
name: "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}).passthrough().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}).passthrough().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,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EACvB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,EAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACnJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,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C,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mFAAmF;AAE7G,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,46 @@
|
|
|
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.$loose>>>;
|
|
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.$loose>;
|
|
26
|
+
declare const pointagramAddScore: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
tags?: {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
name: string;
|
|
30
|
+
}[] | undefined;
|
|
31
|
+
points?: number | undefined;
|
|
32
|
+
comment?: string | undefined;
|
|
33
|
+
player_id?: string | undefined;
|
|
34
|
+
score_time?: string | undefined;
|
|
35
|
+
player_name?: string | undefined;
|
|
36
|
+
player_email?: string | undefined;
|
|
37
|
+
create_player?: number | undefined;
|
|
38
|
+
pointtype_name?: string | undefined;
|
|
39
|
+
scoreseries_id?: string | undefined;
|
|
40
|
+
source_score_id?: string | undefined;
|
|
41
|
+
scoreseries_name?: string | undefined;
|
|
42
|
+
player_external_id?: string | undefined;
|
|
43
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
44
|
//#endregion
|
|
8
45
|
export { pointagramAddScore };
|
|
9
46
|
//# 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,46 @@
|
|
|
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.$loose>>>;
|
|
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.$loose>;
|
|
26
|
+
declare const pointagramAddScore: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
tags?: {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
name: string;
|
|
30
|
+
}[] | undefined;
|
|
31
|
+
points?: number | undefined;
|
|
32
|
+
comment?: string | undefined;
|
|
33
|
+
player_id?: string | undefined;
|
|
34
|
+
score_time?: string | undefined;
|
|
35
|
+
player_name?: string | undefined;
|
|
36
|
+
player_email?: string | undefined;
|
|
37
|
+
create_player?: number | undefined;
|
|
38
|
+
pointtype_name?: string | undefined;
|
|
39
|
+
scoreseries_id?: string | undefined;
|
|
40
|
+
source_score_id?: string | undefined;
|
|
41
|
+
scoreseries_name?: string | undefined;
|
|
42
|
+
player_external_id?: string | undefined;
|
|
43
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
44
|
//#endregion
|
|
8
45
|
export { pointagramAddScore };
|
|
9
46
|
//# 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"}
|
|
@@ -5,7 +5,7 @@ const pointagramAddScore = action("POINTAGRAM_ADD_SCORE", {
|
|
|
5
5
|
name: "Add Score",
|
|
6
6
|
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.",
|
|
7
7
|
input: z.object({
|
|
8
|
-
tags: z.array(z.object({ name: z.string().describe("Tag name to display with points.") }).describe("Tag to be displayed with points.")).describe("Tags displayed with points. Each tag should have a 'name' field.").optional(),
|
|
8
|
+
tags: z.array(z.object({ name: z.string().describe("Tag name to display with points.") }).passthrough().describe("Tag to be displayed with points.")).describe("Tags displayed with points. Each tag should have a 'name' field.").optional(),
|
|
9
9
|
points: z.number().int().describe("Number of points to award. Use this OR pointtype_name.").optional(),
|
|
10
10
|
comment: z.string().describe("Description visible in the news feed about this score entry.").optional(),
|
|
11
11
|
player_id: z.string().describe("Internal Pointagram player identifier. Use this if you have the player's ID.").optional(),
|
|
@@ -20,10 +20,10 @@ 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
|
-
}).describe("Response model for add_score action. The API primarily returns HTTP status codes.")
|
|
26
|
+
}).passthrough().describe("Response model for add_score action. The API primarily returns HTTP status codes.")
|
|
27
27
|
});
|
|
28
28
|
//#endregion
|
|
29
29
|
export { pointagramAddScore };
|
|
@@ -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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EACnJ,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACrG,SAAS,EAAE,OAAO,CAAC,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z.string().describe("Email address of the player.").nullable().optional(),
|
|
27
27
|
competition_id: zod.z.string().describe("Competition identifier that the player is participating in.").nullable().optional(),
|
|
28
28
|
competition_name: zod.z.string().describe("Name of the competition.").nullable().optional()
|
|
29
|
-
}).describe("Model representing a player's competition data including rankings and scores.");
|
|
30
|
-
const PointagramListCompetitionPlayersOutput = zod.z.object({ players: zod.z.array(PointagramListCompetitionPlayers_CompetitionPlayerItemSchema).describe("List of players with their competition participation, rankings, and scores.").nullable().optional() }).describe("Response model for listing competition players. Returns an array of player competition data.");
|
|
29
|
+
}).passthrough().describe("Model representing a player's competition data including rankings and scores.");
|
|
30
|
+
const PointagramListCompetitionPlayersOutput = zod.z.object({ players: zod.z.array(PointagramListCompetitionPlayers_CompetitionPlayerItemSchema).describe("List of players with their competition participation, rankings, and scores.").nullable().optional() }).passthrough().describe("Response model for listing competition players. Returns an array of player competition data.");
|
|
31
31
|
const pointagramListCompetitionPlayers = require_action.action("POINTAGRAM_LIST_COMPETITION_PLAYERS", {
|
|
32
32
|
slug: "pointagram-list-competition-players",
|
|
33
33
|
name: "List Competition Players",
|
|
@@ -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}).passthrough().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}).passthrough().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,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CAAC,CAAC,SAAS;CACvH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AACzG,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,YAAY,CAAC,CAAC,SAAS,8FAA8F;AAExH,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.$loose>>>>;
|
|
23
|
+
}, z.core.$loose>;
|
|
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.$loose>>>>;
|
|
23
|
+
}, z.core.$loose>;
|
|
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"}
|
|
@@ -26,13 +26,13 @@ const PointagramListCompetitionPlayers_CompetitionPlayerItemSchema = z.object({
|
|
|
26
26
|
player_email: z.string().describe("Email address of the player.").nullable().optional(),
|
|
27
27
|
competition_id: z.string().describe("Competition identifier that the player is participating in.").nullable().optional(),
|
|
28
28
|
competition_name: z.string().describe("Name of the competition.").nullable().optional()
|
|
29
|
-
}).describe("Model representing a player's competition data including rankings and scores.");
|
|
29
|
+
}).passthrough().describe("Model representing a player's competition data including rankings and scores.");
|
|
30
30
|
const pointagramListCompetitionPlayers = action("POINTAGRAM_LIST_COMPETITION_PLAYERS", {
|
|
31
31
|
slug: "pointagram-list-competition-players",
|
|
32
32
|
name: "List Competition Players",
|
|
33
33
|
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.",
|
|
34
34
|
input: PointagramListCompetitionPlayersInput,
|
|
35
|
-
output: z.object({ players: z.array(PointagramListCompetitionPlayers_CompetitionPlayerItemSchema).describe("List of players with their competition participation, rankings, and scores.").nullable().optional() }).describe("Response model for listing competition players. Returns an array of player competition data.")
|
|
35
|
+
output: z.object({ players: z.array(PointagramListCompetitionPlayers_CompetitionPlayerItemSchema).describe("List of players with their competition participation, rankings, and scores.").nullable().optional() }).passthrough().describe("Response model for listing competition players. Returns an array of player competition data.")
|
|
36
36
|
});
|
|
37
37
|
//#endregion
|
|
38
38
|
export { pointagramListCompetitionPlayers };
|
|
@@ -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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAKzG,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,YAAY,CAAC,CAAC,SAAS,8FAOhB;AACV,CAAC"}
|
|
@@ -16,7 +16,7 @@ const PointagramListCompetitions_CompetitionRankingSchema = zod.z.object({
|
|
|
16
16
|
score: zod.z.union([zod.z.number().int(), zod.z.number()]).nullable().optional(),
|
|
17
17
|
player_id: zod.z.string().describe("Unique identifier of the player.").nullable().optional(),
|
|
18
18
|
player_name: zod.z.string().describe("Name of the player.").nullable().optional()
|
|
19
|
-
}).describe("Model representing a player's ranking within a competition.");
|
|
19
|
+
}).passthrough().describe("Model representing a player's ranking within a competition.");
|
|
20
20
|
const PointagramListCompetitions_CompetitionItemSchema = zod.z.object({
|
|
21
21
|
id: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
|
|
22
22
|
name: zod.z.string().describe("Name of the competition.").nullable().optional(),
|
|
@@ -26,8 +26,8 @@ const PointagramListCompetitions_CompetitionItemSchema = zod.z.object({
|
|
|
26
26
|
accesskey: zod.z.string().describe("Access key associated with the competition.").nullable().optional(),
|
|
27
27
|
start_date: zod.z.string().describe("Start date of the competition.").nullable().optional(),
|
|
28
28
|
description: zod.z.string().describe("Description of the competition.").nullable().optional()
|
|
29
|
-
}).describe("Model representing a single competition in Pointagram.");
|
|
30
|
-
const PointagramListCompetitionsOutput = zod.z.object({ competitions: zod.z.array(PointagramListCompetitions_CompetitionItemSchema).describe("List of competitions matching the search criteria, including rankings and scores.").nullable().optional() }).describe("Response model for listing competitions. Returns an array of competition objects.");
|
|
29
|
+
}).passthrough().describe("Model representing a single competition in Pointagram.");
|
|
30
|
+
const PointagramListCompetitionsOutput = zod.z.object({ competitions: zod.z.array(PointagramListCompetitions_CompetitionItemSchema).describe("List of competitions matching the search criteria, including rankings and scores.").nullable().optional() }).passthrough().describe("Response model for listing competitions. Returns an array of competition objects.");
|
|
31
31
|
const pointagramListCompetitions = require_action.action("POINTAGRAM_LIST_COMPETITIONS", {
|
|
32
32
|
slug: "pointagram-list-competitions",
|
|
33
33
|
name: "List Competitions",
|
|
@@ -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}).passthrough().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}).passthrough().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}).passthrough().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,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,MAAM,CAACA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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.$loose>>>>;
|
|
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.$loose>>>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
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.$loose>>>>;
|
|
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.$loose>>>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
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"}
|
|
@@ -16,7 +16,7 @@ const PointagramListCompetitions_CompetitionRankingSchema = z.object({
|
|
|
16
16
|
score: z.union([z.number().int(), z.number()]).nullable().optional(),
|
|
17
17
|
player_id: z.string().describe("Unique identifier of the player.").nullable().optional(),
|
|
18
18
|
player_name: z.string().describe("Name of the player.").nullable().optional()
|
|
19
|
-
}).describe("Model representing a player's ranking within a competition.");
|
|
19
|
+
}).passthrough().describe("Model representing a player's ranking within a competition.");
|
|
20
20
|
const PointagramListCompetitions_CompetitionItemSchema = z.object({
|
|
21
21
|
id: z.union([z.number().int(), z.string()]).nullable().optional(),
|
|
22
22
|
name: z.string().describe("Name of the competition.").nullable().optional(),
|
|
@@ -26,13 +26,13 @@ const PointagramListCompetitions_CompetitionItemSchema = z.object({
|
|
|
26
26
|
accesskey: z.string().describe("Access key associated with the competition.").nullable().optional(),
|
|
27
27
|
start_date: z.string().describe("Start date of the competition.").nullable().optional(),
|
|
28
28
|
description: z.string().describe("Description of the competition.").nullable().optional()
|
|
29
|
-
}).describe("Model representing a single competition in Pointagram.");
|
|
29
|
+
}).passthrough().describe("Model representing a single competition in Pointagram.");
|
|
30
30
|
const pointagramListCompetitions = action("POINTAGRAM_LIST_COMPETITIONS", {
|
|
31
31
|
slug: "pointagram-list-competitions",
|
|
32
32
|
name: "List Competitions",
|
|
33
33
|
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.",
|
|
34
34
|
input: PointagramListCompetitionsInput,
|
|
35
|
-
output: z.object({ competitions: z.array(PointagramListCompetitions_CompetitionItemSchema).describe("List of competitions matching the search criteria, including rankings and scores.").nullable().optional() }).describe("Response model for listing competitions. Returns an array of competition objects.")
|
|
35
|
+
output: z.object({ competitions: z.array(PointagramListCompetitions_CompetitionItemSchema).describe("List of competitions matching the search criteria, including rankings and scores.").nullable().optional() }).passthrough().describe("Response model for listing competitions. Returns an array of competition objects.")
|
|
36
36
|
});
|
|
37
37
|
//#endregion
|
|
38
38
|
export { pointagramListCompetitions };
|