Skip to content

Commit

Permalink
feat: attach generated schema 'apiVersion' to each request
Browse files Browse the repository at this point in the history
  • Loading branch information
eransakal committed Aug 13, 2017
1 parent c866ca2 commit 5e5e2c8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/kaltura-request-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { KalturaBaseResponseProfile } from './types/KalturaBaseResponseProfile';
import { KalturaObjectBase, KalturaObjectBaseArgs } from './kaltura-object-base';

export interface KalturaRequestBaseArgs extends KalturaObjectBaseArgs {
acceptedTypes? : { new() : KalturaObjectBase}[];
acceptedTypes? : KalturaObjectBase[];
partnerId? : number;
ks? : string;
responseProfile? : KalturaBaseResponseProfile;
Expand All @@ -13,7 +13,7 @@ export interface KalturaRequestBaseArgs extends KalturaObjectBaseArgs {

export class KalturaRequestBase extends KalturaObjectBase {

acceptedTypes? : { new() : KalturaObjectBase}[];
acceptedTypes : KalturaObjectBase[];
partnerId : number;
ks : string;
responseProfile : KalturaBaseResponseProfile;
Expand All @@ -30,7 +30,8 @@ export class KalturaRequestBase extends KalturaObjectBase {
Object.assign(
result.properties,
{
partnerId : { type : 'n' },
apiVersion : { type : 'c', default : '3.3.0' },
partnerId : { type : 'n' },
ks : { type : 's' },
responseProfile : { type : 'o', subTypeConstructor : KalturaBaseResponseProfile, subType : 'KalturaBaseResponseProfile' }
}
Expand Down

0 comments on commit 5e5e2c8

Please sign in to comment.