Skip to content

Commit 269fb58

Browse files
Automatically update staging NodeJS SDK
1 parent c81b4da commit 269fb58

11 files changed

Lines changed: 71 additions & 0 deletions

api/types/PointsTrigger.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ export interface PointsTrigger {
2121
timeUnit?: TrophyApi.PointsTriggerTimeUnit;
2222
/** If the trigger has type 'time', the numer of units of timeUnit after which to award points */
2323
timeInterval?: number;
24+
/** If the trigger has type 'metric', the event attributes that must match for the trigger to award points. Null when the trigger is metric-based and has no event attribute filters. Omitted for non-metric triggers. */
25+
eventAttributes?: TrophyApi.PointsTriggerEventAttributesItem[];
2426
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
export interface PointsTriggerEventAttributesItem {
5+
/** The key of the event attribute. */
6+
key: string;
7+
/** The required value of the event attribute. */
8+
value: string;
9+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"use strict";
2+
/**
3+
* This file was auto-generated by Fern from our API Definition.
4+
*/
5+
Object.defineProperty(exports, "__esModule", { value: true });

api/types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export * from "./StreakResponseStreakHistoryItem";
2323
export * from "./StreakResponse";
2424
export * from "./PointsTriggerType";
2525
export * from "./PointsTriggerTimeUnit";
26+
export * from "./PointsTriggerEventAttributesItem";
2627
export * from "./PointsTrigger";
2728
export * from "./PointsAward";
2829
export * from "./PointsBoostStatus";

api/types/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ __exportStar(require("./StreakResponseStreakHistoryItem"), exports);
3939
__exportStar(require("./StreakResponse"), exports);
4040
__exportStar(require("./PointsTriggerType"), exports);
4141
__exportStar(require("./PointsTriggerTimeUnit"), exports);
42+
__exportStar(require("./PointsTriggerEventAttributesItem"), exports);
4243
__exportStar(require("./PointsTrigger"), exports);
4344
__exportStar(require("./PointsAward"), exports);
4445
__exportStar(require("./PointsBoostStatus"), exports);

serialization/types/PointsTrigger.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ export declare namespace PointsTrigger {
1616
achievementName?: string | null;
1717
timeUnit?: serializers.PointsTriggerTimeUnit.Raw | null;
1818
timeInterval?: number | null;
19+
eventAttributes?: serializers.PointsTriggerEventAttributesItem.Raw[] | null;
1920
}
2021
}

serialization/types/PointsTrigger.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,7 @@ exports.PointsTrigger = core.serialization.object({
4747
achievementName: core.serialization.string().optional(),
4848
timeUnit: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).PointsTriggerTimeUnit; })).optional(),
4949
timeInterval: core.serialization.number().optional(),
50+
eventAttributes: core.serialization
51+
.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).PointsTriggerEventAttributesItem; })))
52+
.optional(),
5053
});
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
import * as serializers from "..";
5+
import * as TrophyApi from "../../api";
6+
import * as core from "../../core";
7+
export declare const PointsTriggerEventAttributesItem: core.serialization.ObjectSchema<serializers.PointsTriggerEventAttributesItem.Raw, TrophyApi.PointsTriggerEventAttributesItem>;
8+
export declare namespace PointsTriggerEventAttributesItem {
9+
interface Raw {
10+
key: string;
11+
value: string;
12+
}
13+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
"use strict";
2+
/**
3+
* This file was auto-generated by Fern from our API Definition.
4+
*/
5+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6+
if (k2 === undefined) k2 = k;
7+
var desc = Object.getOwnPropertyDescriptor(m, k);
8+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9+
desc = { enumerable: true, get: function() { return m[k]; } };
10+
}
11+
Object.defineProperty(o, k2, desc);
12+
}) : (function(o, m, k, k2) {
13+
if (k2 === undefined) k2 = k;
14+
o[k2] = m[k];
15+
}));
16+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17+
Object.defineProperty(o, "default", { enumerable: true, value: v });
18+
}) : function(o, v) {
19+
o["default"] = v;
20+
});
21+
var __importStar = (this && this.__importStar) || function (mod) {
22+
if (mod && mod.__esModule) return mod;
23+
var result = {};
24+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25+
__setModuleDefault(result, mod);
26+
return result;
27+
};
28+
Object.defineProperty(exports, "__esModule", { value: true });
29+
exports.PointsTriggerEventAttributesItem = void 0;
30+
const core = __importStar(require("../../core"));
31+
exports.PointsTriggerEventAttributesItem = core.serialization.object({
32+
key: core.serialization.string(),
33+
value: core.serialization.string(),
34+
});

serialization/types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export * from "./StreakResponseStreakHistoryItem";
2323
export * from "./StreakResponse";
2424
export * from "./PointsTriggerType";
2525
export * from "./PointsTriggerTimeUnit";
26+
export * from "./PointsTriggerEventAttributesItem";
2627
export * from "./PointsTrigger";
2728
export * from "./PointsAward";
2829
export * from "./PointsBoostStatus";

0 commit comments

Comments
 (0)