@purpleschool/gptbot 0.11.2 → 0.11.4

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.
@@ -12,7 +12,7 @@ export const TEAM_ACCOUNT_ROUTES = {
12
12
  GET_ME: 'me',
13
13
  GET_MEMBERS: 'members',
14
14
  GET_OPERATIONS: 'operations',
15
- GET_PRODUCTS: 'products',
15
+ GET_CURRENT_PRODUCTS: 'products/current',
16
16
  GET_CURRENT_SUBSCRIPTIONS: 'subscriptions/current',
17
17
  CANCEL_TRIAL_SUBSCRIPTION: 'subscriptions/trial/cancel',
18
18
  GET_BALANCE: 'balance',
package/api/routes.ts CHANGED
@@ -195,7 +195,7 @@ export const REST_API = {
195
195
  GET_ME: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_ME}`,
196
196
  GET_MEMBERS: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_MEMBERS}`,
197
197
  GET_OPERATIONS: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_OPERATIONS}`,
198
- GET_PRODUCTS: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_PRODUCTS}`,
198
+ GET_CURRENT_PRODUCTS: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_CURRENT_PRODUCTS}`,
199
199
  GET_CURRENT_SUBSCRIPTIONS: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_CURRENT_SUBSCRIPTIONS}`,
200
200
  CANCEL_TRIAL_SUBSCRIPTION: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.CANCEL_TRIAL_SUBSCRIPTION}`,
201
201
  GET_BALANCE: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_BALANCE}`,
@@ -14,7 +14,7 @@ exports.TEAM_ACCOUNT_ROUTES = {
14
14
  GET_ME: 'me',
15
15
  GET_MEMBERS: 'members',
16
16
  GET_OPERATIONS: 'operations',
17
- GET_PRODUCTS: 'products',
17
+ GET_CURRENT_PRODUCTS: 'products/current',
18
18
  GET_CURRENT_SUBSCRIPTIONS: 'subscriptions/current',
19
19
  CANCEL_TRIAL_SUBSCRIPTION: 'subscriptions/trial/cancel',
20
20
  GET_BALANCE: 'balance',
@@ -194,7 +194,7 @@ exports.REST_API = {
194
194
  GET_ME: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_ME}`,
195
195
  GET_MEMBERS: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_MEMBERS}`,
196
196
  GET_OPERATIONS: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_OPERATIONS}`,
197
- GET_PRODUCTS: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_PRODUCTS}`,
197
+ GET_CURRENT_PRODUCTS: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_CURRENT_PRODUCTS}`,
198
198
  GET_CURRENT_SUBSCRIPTIONS: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_CURRENT_SUBSCRIPTIONS}`,
199
199
  CANCEL_TRIAL_SUBSCRIPTION: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.CANCEL_TRIAL_SUBSCRIPTION}`,
200
200
  GET_BALANCE: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_BALANCE}`,
@@ -9,5 +9,6 @@ var GetSubscriptionsSummaryCommand;
9
9
  features: zod_1.z.array(models_1.SubscriptionFeatureSchema),
10
10
  subscriptions: zod_1.z.array(models_1.UserToSubscriptionWithDowngradeSubscriptionSchema),
11
11
  products: zod_1.z.array(models_1.UserToProductWithProductSchema),
12
+ teamSubscription: models_1.TeamToSubscriptionWithSubscriptionSchema.nullable(),
12
13
  });
13
14
  })(GetSubscriptionsSummaryCommand || (exports.GetSubscriptionsSummaryCommand = GetSubscriptionsSummaryCommand = {}));
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import {
3
3
  SubscriptionFeatureSchema,
4
+ TeamToSubscriptionWithSubscriptionSchema,
4
5
  UserToProductWithProductSchema,
5
6
  UserToSubscriptionWithDowngradeSubscriptionSchema,
6
7
  } from '../../models';
@@ -10,6 +11,7 @@ export namespace GetSubscriptionsSummaryCommand {
10
11
  features: z.array(SubscriptionFeatureSchema),
11
12
  subscriptions: z.array(UserToSubscriptionWithDowngradeSubscriptionSchema),
12
13
  products: z.array(UserToProductWithProductSchema),
14
+ teamSubscription: TeamToSubscriptionWithSubscriptionSchema.nullable(),
13
15
  });
14
16
 
15
17
  export type Response = z.infer<typeof ResponseSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",