@viamrobotics/sdk 0.23.1 → 0.24.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.
@@ -1 +1 @@
1
- export declare const apiVersion = "v0.1.338";
1
+ export declare const apiVersion = "v0.1.339";
@@ -299,7 +299,7 @@ export declare class DataClient {
299
299
  * uploaded, all tied to the same metadata.
300
300
  * @returns The file ID of the uploaded data
301
301
  */
302
- tabularDataCaptureUpload(tabularData: Record<string, googleStructPb.JavaScriptValue>[], partId: string, componentType: string, componentName: string, methodName: string, tags?: string[], dataRequestTimes?: [Date, Date][]): Promise<string>;
302
+ tabularDataCaptureUpload(tabularData: Record<string, googleStructPb.JavaScriptValue>[], partId: string, componentType: string, componentName: string, methodName: string, dataRequestTimes: [Date, Date][], tags?: string[]): Promise<string>;
303
303
  /**
304
304
  * Uploads the content and metadata for binary data.
305
305
  *
@@ -324,7 +324,7 @@ export declare class DataClient {
324
324
  * appropriate sensor.
325
325
  * @returns The file ID of the uploaded data
326
326
  */
327
- binaryDataCaptureUpload(binaryData: Uint8Array, partId: string, componentType: string, componentName: string, methodName: string, fileExtension: string, tags?: string[], dataRequestTimes?: [Date, Date]): Promise<string>;
327
+ binaryDataCaptureUpload(binaryData: Uint8Array, partId: string, componentType: string, componentName: string, methodName: string, fileExtension: string, dataRequestTimes: [Date, Date], tags?: string[]): Promise<string>;
328
328
  createFilter(options: FilterOptions): dataPb.Filter;
329
329
  }
330
330
  export {};
@@ -1,5 +1,10 @@
1
1
  import { grpc } from '@improbable-eng/grpc-web';
2
2
  import { MetadataTransport } from '../utils';
3
+ /**
4
+ * Credentials are either used to obtain an access token or provide an existing
5
+ * one
6
+ */
7
+ export type Credentials = Credential | AccessToken;
3
8
  /** A credential that can be exchanged to obtain an access token */
4
9
  export interface Credential {
5
10
  authEntity: string;
@@ -12,7 +17,7 @@ export interface AccessToken {
12
17
  type: 'access-token';
13
18
  payload: string;
14
19
  }
15
- export declare const isCredential: (object: Credential | AccessToken) => object is Credential;
20
+ export declare const isCredential: (object: Credentials) => object is Credential;
16
21
  /**
17
22
  * Initialize an authenticated transport factory that can access protected
18
23
  * resources.
@@ -410,6 +410,46 @@ export namespace GetInvoicePdfResponse {
410
410
  }
411
411
  }
412
412
 
413
+ export class SendPaymentRequiredEmailRequest extends jspb.Message {
414
+ getCustomerOrgId(): string;
415
+ setCustomerOrgId(value: string): void;
416
+
417
+ getBillingOwnerOrgId(): string;
418
+ setBillingOwnerOrgId(value: string): void;
419
+
420
+ serializeBinary(): Uint8Array;
421
+ toObject(includeInstance?: boolean): SendPaymentRequiredEmailRequest.AsObject;
422
+ static toObject(includeInstance: boolean, msg: SendPaymentRequiredEmailRequest): SendPaymentRequiredEmailRequest.AsObject;
423
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
424
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
425
+ static serializeBinaryToWriter(message: SendPaymentRequiredEmailRequest, writer: jspb.BinaryWriter): void;
426
+ static deserializeBinary(bytes: Uint8Array): SendPaymentRequiredEmailRequest;
427
+ static deserializeBinaryFromReader(message: SendPaymentRequiredEmailRequest, reader: jspb.BinaryReader): SendPaymentRequiredEmailRequest;
428
+ }
429
+
430
+ export namespace SendPaymentRequiredEmailRequest {
431
+ export type AsObject = {
432
+ customerOrgId: string,
433
+ billingOwnerOrgId: string,
434
+ }
435
+ }
436
+
437
+ export class SendPaymentRequiredEmailResponse extends jspb.Message {
438
+ serializeBinary(): Uint8Array;
439
+ toObject(includeInstance?: boolean): SendPaymentRequiredEmailResponse.AsObject;
440
+ static toObject(includeInstance: boolean, msg: SendPaymentRequiredEmailResponse): SendPaymentRequiredEmailResponse.AsObject;
441
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
442
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
443
+ static serializeBinaryToWriter(message: SendPaymentRequiredEmailResponse, writer: jspb.BinaryWriter): void;
444
+ static deserializeBinary(bytes: Uint8Array): SendPaymentRequiredEmailResponse;
445
+ static deserializeBinaryFromReader(message: SendPaymentRequiredEmailResponse, reader: jspb.BinaryReader): SendPaymentRequiredEmailResponse;
446
+ }
447
+
448
+ export namespace SendPaymentRequiredEmailResponse {
449
+ export type AsObject = {
450
+ }
451
+ }
452
+
413
453
  export interface PaymentMethodTypeMap {
414
454
  PAYMENT_METHOD_TYPE_UNSPECIFIED: 0;
415
455
  PAYMENT_METHOD_TYPE_CARD: 1;
@@ -40,12 +40,22 @@ type BillingServiceGetInvoicePdf = {
40
40
  readonly responseType: typeof app_v1_billing_pb.GetInvoicePdfResponse;
41
41
  };
42
42
 
43
+ type BillingServiceSendPaymentRequiredEmail = {
44
+ readonly methodName: string;
45
+ readonly service: typeof BillingService;
46
+ readonly requestStream: false;
47
+ readonly responseStream: false;
48
+ readonly requestType: typeof app_v1_billing_pb.SendPaymentRequiredEmailRequest;
49
+ readonly responseType: typeof app_v1_billing_pb.SendPaymentRequiredEmailResponse;
50
+ };
51
+
43
52
  export class BillingService {
44
53
  static readonly serviceName: string;
45
54
  static readonly GetCurrentMonthUsage: BillingServiceGetCurrentMonthUsage;
46
55
  static readonly GetOrgBillingInformation: BillingServiceGetOrgBillingInformation;
47
56
  static readonly GetInvoicesSummary: BillingServiceGetInvoicesSummary;
48
57
  static readonly GetInvoicePdf: BillingServiceGetInvoicePdf;
58
+ static readonly SendPaymentRequiredEmail: BillingServiceSendPaymentRequiredEmail;
49
59
  }
50
60
 
51
61
  export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
@@ -108,5 +118,14 @@ export class BillingServiceClient {
108
118
  callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.GetInvoicesSummaryResponse|null) => void
109
119
  ): UnaryResponse;
110
120
  getInvoicePdf(requestMessage: app_v1_billing_pb.GetInvoicePdfRequest, metadata?: grpc.Metadata): ResponseStream<app_v1_billing_pb.GetInvoicePdfResponse>;
121
+ sendPaymentRequiredEmail(
122
+ requestMessage: app_v1_billing_pb.SendPaymentRequiredEmailRequest,
123
+ metadata: grpc.Metadata,
124
+ callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.SendPaymentRequiredEmailResponse|null) => void
125
+ ): UnaryResponse;
126
+ sendPaymentRequiredEmail(
127
+ requestMessage: app_v1_billing_pb.SendPaymentRequiredEmailRequest,
128
+ callback: (error: ServiceError|null, responseMessage: app_v1_billing_pb.SendPaymentRequiredEmailResponse|null) => void
129
+ ): UnaryResponse;
111
130
  }
112
131