@spaceinvoices/js-sdk 9.1.0 → 9.2.0

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.
@@ -596,7 +596,7 @@ export type getPosDailyReportResponse404 = {
596
596
  status: 404;
597
597
  };
598
598
  export type getPosDailyReportResponse422 = {
599
- data: void;
599
+ data: Error;
600
600
  status: 422;
601
601
  };
602
602
  export type getPosDailyReportResponse500 = {
@@ -690,8 +690,7 @@ export type enrolPosOperatorResponse = (enrolPosOperatorResponseSuccess | enrolP
690
690
  export declare const getEnrolPosOperatorUrl: () => string;
691
691
  export declare const enrolPosOperator: (enrolPosOperatorBody: EnrolPosOperatorBody, options?: RequestInit) => Promise<enrolPosOperatorResponse>;
692
692
  /**
693
- * Deprecated: use `POST /pos/operators/enrol`, where the staff member signs in with their own credentials and the device keeps the token; the PIN is then local to the device. Verifies the PIN and returns a shift-length token for that member, so the sales they ring up carry their own fiscal operator identity. Requires an existing valid session for the same entity. Repeated failures lock the PIN with an escalating backoff.
694
- * @deprecated
693
+ * Verifies the PIN and returns a token for that member, so the sales they ring up carry their own fiscal operator identity. The calling session must administer this business, and the member switched to must not: the token acts as them and carries their permissions, so a three-digit PIN is not a way for one member to become another. Removing the member, or changing their role on this business or its account, ends the token immediately. Repeated failures lock the PIN with an escalating backoff.
695
694
  * @summary Switch the acting operator
696
695
  */
697
696
  export type switchPosOperatorResponse200 = {
@@ -737,7 +736,6 @@ export declare const getSwitchPosOperatorUrl: () => string;
737
736
  export declare const switchPosOperator: (switchPosOperatorBody: SwitchPosOperatorBody, options?: RequestInit) => Promise<switchPosOperatorResponse>;
738
737
  /**
739
738
  * Sets the PIN used to switch to this member on a shared device. Callers may set their own PIN; entity admins may set anyone's. The PIN identifies who is acting, it does not grant access: the device must already hold a valid session for the same entity. Exactly three digits, so a till can act on the last one without a confirm step.
740
- * @deprecated
741
739
  * @summary Set an operator PIN
742
740
  */
743
741
  export type setPosOperatorPinResponse204 = {
@@ -778,7 +776,6 @@ export type setPosOperatorPinResponse = (setPosOperatorPinResponseSuccess | setP
778
776
  export declare const getSetPosOperatorPinUrl: (userId: string) => string;
779
777
  export declare const setPosOperatorPin: (userId: string, setPosOperatorPinBody: SetPosOperatorPinBody, options?: RequestInit) => Promise<setPosOperatorPinResponse>;
780
778
  /**
781
- * @deprecated
782
779
  * @summary Remove an operator PIN
783
780
  */
784
781
  export type clearPosOperatorPinResponse204 = {
@@ -596,7 +596,7 @@ export type getPosDailyReportResponse404 = {
596
596
  status: 404;
597
597
  };
598
598
  export type getPosDailyReportResponse422 = {
599
- data: void;
599
+ data: Error;
600
600
  status: 422;
601
601
  };
602
602
  export type getPosDailyReportResponse500 = {
@@ -690,8 +690,7 @@ export type enrolPosOperatorResponse = (enrolPosOperatorResponseSuccess | enrolP
690
690
  export declare const getEnrolPosOperatorUrl: () => string;
691
691
  export declare const enrolPosOperator: (enrolPosOperatorBody: EnrolPosOperatorBody, options?: RequestInit) => Promise<enrolPosOperatorResponse>;
692
692
  /**
693
- * Deprecated: use `POST /pos/operators/enrol`, where the staff member signs in with their own credentials and the device keeps the token; the PIN is then local to the device. Verifies the PIN and returns a shift-length token for that member, so the sales they ring up carry their own fiscal operator identity. Requires an existing valid session for the same entity. Repeated failures lock the PIN with an escalating backoff.
694
- * @deprecated
693
+ * Verifies the PIN and returns a token for that member, so the sales they ring up carry their own fiscal operator identity. The calling session must administer this business, and the member switched to must not: the token acts as them and carries their permissions, so a three-digit PIN is not a way for one member to become another. Removing the member, or changing their role on this business or its account, ends the token immediately. Repeated failures lock the PIN with an escalating backoff.
695
694
  * @summary Switch the acting operator
696
695
  */
697
696
  export type switchPosOperatorResponse200 = {
@@ -737,7 +736,6 @@ export declare const getSwitchPosOperatorUrl: () => string;
737
736
  export declare const switchPosOperator: (switchPosOperatorBody: SwitchPosOperatorBody, options?: RequestInit) => Promise<switchPosOperatorResponse>;
738
737
  /**
739
738
  * Sets the PIN used to switch to this member on a shared device. Callers may set their own PIN; entity admins may set anyone's. The PIN identifies who is acting, it does not grant access: the device must already hold a valid session for the same entity. Exactly three digits, so a till can act on the last one without a confirm step.
740
- * @deprecated
741
739
  * @summary Set an operator PIN
742
740
  */
743
741
  export type setPosOperatorPinResponse204 = {
@@ -778,7 +776,6 @@ export type setPosOperatorPinResponse = (setPosOperatorPinResponseSuccess | setP
778
776
  export declare const getSetPosOperatorPinUrl: (userId: string) => string;
779
777
  export declare const setPosOperatorPin: (userId: string, setPosOperatorPinBody: SetPosOperatorPinBody, options?: RequestInit) => Promise<setPosOperatorPinResponse>;
780
778
  /**
781
- * @deprecated
782
779
  * @summary Remove an operator PIN
783
780
  */
784
781
  export type clearPosOperatorPinResponse204 = {
@@ -722,8 +722,7 @@ export declare const EnrolPosOperatorResponse: zod.ZodObject<{
722
722
  created_at: zod.z.ZodISODateTime;
723
723
  }, zod.z.core.$strip>;
724
724
  /**
725
- * Deprecated: use `POST /pos/operators/enrol`, where the staff member signs in with their own credentials and the device keeps the token; the PIN is then local to the device. Verifies the PIN and returns a shift-length token for that member, so the sales they ring up carry their own fiscal operator identity. Requires an existing valid session for the same entity. Repeated failures lock the PIN with an escalating backoff.
726
- * @deprecated
725
+ * Verifies the PIN and returns a token for that member, so the sales they ring up carry their own fiscal operator identity. The calling session must administer this business, and the member switched to must not: the token acts as them and carries their permissions, so a three-digit PIN is not a way for one member to become another. Removing the member, or changing their role on this business or its account, ends the token immediately. Repeated failures lock the PIN with an escalating backoff.
727
726
  * @summary Switch the acting operator
728
727
  */
729
728
  export declare const SwitchPosOperatorHeader: zod.ZodObject<{
@@ -743,7 +742,6 @@ export declare const SwitchPosOperatorResponse: zod.ZodObject<{
743
742
  }, zod.z.core.$strip>;
744
743
  /**
745
744
  * Sets the PIN used to switch to this member on a shared device. Callers may set their own PIN; entity admins may set anyone's. The PIN identifies who is acting, it does not grant access: the device must already hold a valid session for the same entity. Exactly three digits, so a till can act on the last one without a confirm step.
746
- * @deprecated
747
745
  * @summary Set an operator PIN
748
746
  */
749
747
  export declare const SetPosOperatorPinParams: zod.ZodObject<{
@@ -756,7 +754,6 @@ export declare const SetPosOperatorPinBody: zod.ZodObject<{
756
754
  pin: zod.ZodString;
757
755
  }, zod.z.core.$strip>;
758
756
  /**
759
- * @deprecated
760
757
  * @summary Remove an operator PIN
761
758
  */
762
759
  export declare const ClearPosOperatorPinParams: zod.ZodObject<{
@@ -722,8 +722,7 @@ export declare const EnrolPosOperatorResponse: zod.ZodObject<{
722
722
  created_at: zod.z.ZodISODateTime;
723
723
  }, zod.z.core.$strip>;
724
724
  /**
725
- * Deprecated: use `POST /pos/operators/enrol`, where the staff member signs in with their own credentials and the device keeps the token; the PIN is then local to the device. Verifies the PIN and returns a shift-length token for that member, so the sales they ring up carry their own fiscal operator identity. Requires an existing valid session for the same entity. Repeated failures lock the PIN with an escalating backoff.
726
- * @deprecated
725
+ * Verifies the PIN and returns a token for that member, so the sales they ring up carry their own fiscal operator identity. The calling session must administer this business, and the member switched to must not: the token acts as them and carries their permissions, so a three-digit PIN is not a way for one member to become another. Removing the member, or changing their role on this business or its account, ends the token immediately. Repeated failures lock the PIN with an escalating backoff.
727
726
  * @summary Switch the acting operator
728
727
  */
729
728
  export declare const SwitchPosOperatorHeader: zod.ZodObject<{
@@ -743,7 +742,6 @@ export declare const SwitchPosOperatorResponse: zod.ZodObject<{
743
742
  }, zod.z.core.$strip>;
744
743
  /**
745
744
  * Sets the PIN used to switch to this member on a shared device. Callers may set their own PIN; entity admins may set anyone's. The PIN identifies who is acting, it does not grant access: the device must already hold a valid session for the same entity. Exactly three digits, so a till can act on the last one without a confirm step.
746
- * @deprecated
747
745
  * @summary Set an operator PIN
748
746
  */
749
747
  export declare const SetPosOperatorPinParams: zod.ZodObject<{
@@ -756,7 +754,6 @@ export declare const SetPosOperatorPinBody: zod.ZodObject<{
756
754
  pin: zod.ZodString;
757
755
  }, zod.z.core.$strip>;
758
756
  /**
759
- * @deprecated
760
757
  * @summary Remove an operator PIN
761
758
  */
762
759
  export declare const ClearPosOperatorPinParams: zod.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaceinvoices/js-sdk",
3
- "version": "9.1.0",
3
+ "version": "9.2.0",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Space Invoices API",
5
5
  "author": "Space Invoices <support@spaceinvoices.com>",
6
6
  "license": "MIT",