ggez-banking-sdk 0.2.40 → 0.2.41

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.
@@ -7,9 +7,9 @@ class ProgramClient extends BaseClient {
7
7
  programService;
8
8
  constructor(clientData, errorHandler) {
9
9
  super(clientData, errorHandler);
10
- const { token, baseUrl, lang, installationId, userId } = clientData;
10
+ const { token, baseUrl, lang, installationId, userId, programId } = clientData;
11
11
  const config = AxiosHelper.GetAxiosConfig(token, baseUrl, lang, installationId);
12
- this.programService = new ProgramService({ config, userId }, errorHandler);
12
+ this.programService = new ProgramService({ config, userId, programId }, errorHandler);
13
13
  }
14
14
  GetSystemFeatures = async (programId, options) => {
15
15
  try {
@@ -3,6 +3,7 @@ import type { Program, ProgramServiceParameter, RequestOptions } from "../../typ
3
3
  declare class ProgramService extends BaseService {
4
4
  userId: number;
5
5
  endpoint: string;
6
+ private programId;
6
7
  constructor(data: ProgramServiceParameter, errorHandler: (error: any) => void);
7
8
  getSystemFeatures(programId: number, options?: RequestOptions): Promise<import("axios").AxiosResponse<Program.ProgramData, any, {}>>;
8
9
  getBin(programID: number, options?: RequestOptions): Promise<import("axios").AxiosResponse<Program.ProgramData, any, {}>>;
@@ -3,9 +3,11 @@ import { Endpoints, ProgramEndpoints } from "../../constants";
3
3
  class ProgramService extends BaseService {
4
4
  userId;
5
5
  endpoint = Endpoints.Program;
6
+ programId;
6
7
  constructor(data, errorHandler) {
7
8
  super(data, errorHandler);
8
9
  this.userId = data.userId;
10
+ this.programId = data.programId;
9
11
  }
10
12
  //#region "GET"
11
13
  getSystemFeatures(programId, options) {
@@ -2,6 +2,7 @@ type ProgramClientData = {
2
2
  token: string;
3
3
  baseUrl: string;
4
4
  userId: number;
5
+ programId: number;
5
6
  lang?: string;
6
7
  installationId?: string;
7
8
  };
@@ -1,3 +1,5 @@
1
1
  import { BaseServiceParameters } from "./base";
2
- type ProgramServiceParameter = BaseServiceParameters;
2
+ type ProgramServiceParameter = BaseServiceParameters & {
3
+ programId: number;
4
+ };
3
5
  export type { ProgramServiceParameter };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.2.40",
3
+ "version": "0.2.41",
4
4
  "description": "A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",