Skip to content

Commit 50bb8a3

Browse files
feat: minor version change (#10)
[create-pull-request] automated change Co-authored-by: GamingEventapiBot <GamingEventapiBot@users.noreply.github.com>
1 parent 3adab8d commit 50bb8a3

File tree

8 files changed

+2
-293
lines changed

8 files changed

+2
-293
lines changed

configs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"template_last_version": "0.5.21",
3-
"document_last_version": "0.4.0"
3+
"document_last_version": "0.5.0"
44
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/channels/V0RustServersServerIdEventsStopped.ts

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/index.ts

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,18 @@ import {
55
} from './NatsTypescriptTemplateError';
66
import * as Nats from 'nats';
77
import * as v0RustServersServerIdEventsStartedChannel from "./channels/V0RustServersServerIdEventsStarted";
8-
import * as v0RustServersServerIdEventsStoppedChannel from "./channels/V0RustServersServerIdEventsStopped";
98
import * as v0RustServersServerIdEventsPlayerSteamIdChattedChannel from "./channels/V0RustServersServerIdEventsPlayerSteamIdChatted";
109
import ServerStarted from "./models/ServerStarted";
11-
import ServerStopped from "./models/ServerStopped";
1210
import ChatMessage from "./models/ChatMessage";
1311
export {
1412
v0RustServersServerIdEventsStartedChannel
1513
};
16-
export {
17-
v0RustServersServerIdEventsStoppedChannel
18-
};
1914
export {
2015
v0RustServersServerIdEventsPlayerSteamIdChattedChannel
2116
};
2217
export {
2318
ServerStarted
2419
};
25-
export {
26-
ServerStopped
27-
};
2820
export {
2921
ChatMessage
3022
};
@@ -169,44 +161,6 @@ export class NatsAsyncApiClient {
169161
}
170162
});
171163
}
172-
/**
173-
* Subscribe to the `v0/rust/servers/{server_id}/events/stopped`
174-
*
175-
* Channel for the API to process for when a server has stopped
176-
*
177-
* @param onDataCallback to call when messages are received
178-
* @param server_id parameter to use in topic
179-
* @param flush ensure client is force flushed after subscribing
180-
* @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified
181-
*/
182-
public subscribeToV0RustServersServerIdEventsStopped(
183-
onDataCallback: (
184-
err ? : NatsTypescriptTemplateError,
185-
msg ? : ServerStopped, server_id ? : string) => void, server_id: string,
186-
flush ? : boolean,
187-
options ? : Nats.SubscriptionOptions
188-
): Promise < Nats.Subscription > {
189-
return new Promise(async (resolve, reject) => {
190-
if (!this.isClosed() && this.nc !== undefined && this.codec !== undefined) {
191-
try {
192-
const sub = await v0RustServersServerIdEventsStoppedChannel.subscribe(
193-
onDataCallback,
194-
this.nc,
195-
this.codec, server_id,
196-
options
197-
);
198-
if (flush) {
199-
await this.nc.flush();
200-
}
201-
resolve(sub);
202-
} catch (e: any) {
203-
reject(e);
204-
}
205-
} else {
206-
reject(NatsTypescriptTemplateError.errorForCode(ErrorCode.NOT_CONNECTED));
207-
}
208-
});
209-
}
210164
/**
211165
* Subscribe to the `v0/rust/servers/{server_id}/events/player/{steam_id}/chatted`
212166
*

src/models/ServerStopped.ts

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/testclient/index.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,18 @@ import {
44
} from '../NatsTypescriptTemplateError';
55
import * as Nats from 'nats';
66
import * as v0RustServersServerIdEventsStartedChannel from "./testchannels/V0RustServersServerIdEventsStarted";
7-
import * as v0RustServersServerIdEventsStoppedChannel from "./testchannels/V0RustServersServerIdEventsStopped";
87
import * as v0RustServersServerIdEventsPlayerSteamIdChattedChannel from "./testchannels/V0RustServersServerIdEventsPlayerSteamIdChatted";
98
import ServerStarted from "../models/ServerStarted";
10-
import ServerStopped from "../models/ServerStopped";
119
import ChatMessage from "../models/ChatMessage";
1210
export {
1311
v0RustServersServerIdEventsStartedChannel
1412
};
15-
export {
16-
v0RustServersServerIdEventsStoppedChannel
17-
};
1813
export {
1914
v0RustServersServerIdEventsPlayerSteamIdChattedChannel
2015
};
2116
export {
2217
ServerStarted
2318
};
24-
export {
25-
ServerStopped
26-
};
2719
export {
2820
ChatMessage
2921
};
@@ -146,29 +138,6 @@ export class NatsAsyncApiTestClient {
146138
return Promise.reject(NatsTypescriptTemplateError.errorForCode(ErrorCode.NOT_CONNECTED));
147139
}
148140
}
149-
/**
150-
* Publish to the `v0/rust/servers/{server_id}/events/stopped` channel
151-
*
152-
* Channel for the API to process for when a server has stopped
153-
*
154-
* @param message to publish
155-
* @param server_id parameter to use in topic
156-
*/
157-
public publishToV0RustServersServerIdEventsStopped(
158-
message: ServerStopped, server_id: string,
159-
options ? : Nats.PublishOptions
160-
): Promise < void > {
161-
if (!this.isClosed() && this.nc !== undefined && this.codec !== undefined) {
162-
return v0RustServersServerIdEventsStoppedChannel.publish(
163-
message,
164-
this.nc,
165-
this.codec, server_id,
166-
options
167-
);
168-
} else {
169-
return Promise.reject(NatsTypescriptTemplateError.errorForCode(ErrorCode.NOT_CONNECTED));
170-
}
171-
}
172141
/**
173142
* Publish to the `v0/rust/servers/{server_id}/events/player/{steam_id}/chatted` channel
174143
*

src/testclient/testchannels/V0RustServersServerIdEventsStopped.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

tests/integration/V0RustServersServerIdEventsStopped.spec.ts

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)